-
Notifications
You must be signed in to change notification settings - Fork 38
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
Devices in "Unknown" state #496
Comments
I took a look at the code. Currently, all devices without an explicit state logic show the "Unknown" state. I agree that this is misleading. As a first step, instead of "Unknown", I would show no state at all. I wouldn't show "Failure" or "Success" as @FireWizard52 suggested. I think "Success" and "Failure" can also be misleading. A device that shows "Success" might still not work because your network is not configured correctly. A device that shows "Failure" may still work, you just injected a wrong value. Serious errors errors like no config being selected will overwrite the state with an error message anyway. From there, I would go through all traits and/or device types and decide which states are important enough show directly on the status text. I would by no means show all states. This gets too long. If someone wants to see more states, one can still use another node to filter out states from the output and display them on their status text. Or use an external dashboard. For the Start/Stop trait I would show wether its started. For the RunCycle trait, I would show the current cycle. This should give dishwashers, dryers, washing machines and vacuums a meaningful status text. For the NetworkControl trait. it's hard to decide which states are important enough to show. I think none of the states is THE state you absolutely want to know about. For some people it's the network on/off state. Others don't switch their network, but they are more interested in the network speed. But the speed is rather temporary if not continuously updated, so maybe not important enough either. I tend to show no state for routers either. |
hello @Caprico85, You wrote:
With my suggestion of using "Success" and "Failure", I was not very sure, that this would be the best solution.
Agree, as that will be impossible.
One is not more important as the other.
If you update only by means of your Google devices, you are correct. Regards |
Hi, |
Hi, No, I don't think that the status in the node editor is very important, I think that most people use it in order to check that their flow is working. Do not spend too much of your time on it. |
I agree with that... |
Good job. Thanks. One Q: Can you make start/stop trait not to be mandatory on washer, dryer and disher? Mine does not have those. I know Google says it is mandatory, but also on doors and locks there is mandatory PIN, but it works without it. |
I expected Google to give an error. But it actually seems to work. Done, will be included in the next release. |
Thank you. I'm closing this issue. |
Hi Caprico, |
I already did when I changed it in 40440ae. |
Changes published in v0.4.11 |
I tested this. Google wont throw error, but on Home app and Hub it still shows play/stop button, so you can revert changes back. |
Reverted it. I didn't had the start/stop buttons. I had an empty blue circle in the app. I think that was supposed to be the RunCycle indicator. But I wasn't able to show anything on this circle. Maybe because without the StartStop trait, the device isn't actually started and therefore won't show any progress. |
Beside Router/Network device I have several with unknown state;
Although they work as expected, always shows this status.
The text was updated successfully, but these errors were encountered: