Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trait Timer and Cook did not appear controler UI on google home app #145

Closed
NomNom1992 opened this issue Sep 10, 2024 · 2 comments
Closed

Comments

@NomNom1992
Copy link

NomNom1992 commented Sep 10, 2024

Hi sir,
Im trying to add more device with other traits. For the outlet device, in addition to the mandatory OnOff trait, I want to add the Timer trait for the scheduling function. The Timer trait configuration when I fill in the add trait interface is as follows:
Attributes:
{
"maxTimerLimitSec": 14400,
"commandOnlyTimer": false
}
Commands:
{
"action.devices.commands.TimerStart": {
"timerTimeSec": "google/home/outlet/AGF65T/setTimer"
}
}
State:
{
"timerRemainingSec": {
"topic": "google/home/outlet/AGF65T/setTimer",
"valueMap": null
}
}
However, when syncing with the Google Home app, the Timer doesn't display any control interface. I tried again with an Microwave device example from Google Cloud with 3 traits: StartStop, Cook, and Timer. I can only control the state of the StartStop trait, and only this trait shows a UI.
Thanks for read

@i8beef
Copy link
Owner

i8beef commented Sep 10, 2024

I have not used the timer trait before, and Google's developer portal is down so I can't check the JSON to see if its correct. Can you actually use voice commands to set times with it?

That said, reminder that Google is very hit or miss on supporting a usable UI for most traits, and if I remember right device type comes into play too (ie, while there ARE controls for Media stuff, I believe they only show up when the device type is specifically certain selections...). In essence, if you are expecting the Google Home interface to be an exhaustive control interface for your devices, I'm afraid it doesn't do that.

Google doesn't seem to think its worth the investment. 🤷

Edit: one other tip, its usually a good idea to separate state and command topics. Don't know how much you know about your target device, but "google/home/outlet/AGF65T/setTimer" being used for BOTH will likely get you into trouble as the "status" publishes will trigger the state to change again, and you get yourself into a loop.

@NomNom1992
Copy link
Author

Thank for your tip, i try to set timer with voice command and value of timer has change. So exactly google does not support UI for it.
have a good day sir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants