-
Notifications
You must be signed in to change notification settings - Fork 29
Use information about running programs to imrpove process sensor #5
Comments
Sorry, I forgot to repy to this issue. I tend to think that when no information about progress is available to the component, "unavailable" is an appropriate status, no? Since the progress is reported only at certain intervals, this could also apply e.g. when HA is started while a program is running, until progress is reported/changed for the first time. |
If the program have started it should be 0%. I think the component needs to trigger certain updates of other sensors when program is started and finished. |
The problem is that triggering the start of a program does not mean the program actually starts. For instance, it could be that the "remote start" on the device is deactivated. So I think it is consistent if the progress starts to be 0% once the API event stream reports that the program is actually running. I think this is not a problem though as this should happen immediately after the program starts (in theory). Not sure this is what you meant. |
When by washing machine is switched on again and returns to my network, all entities still remains unavailable. Is there a change to update the adapter right after wake up again and returned to the network? 'Unavailable' for each entities doesn't look quite nice in the UI. |
I countered that by implementing a template sensor that leverages the switch and the attributes it populates while in operation:
|
Hi David, Sorry for not updating this in a proper time. You should use the information in the API and then build logic around it. If a program starts it will tell you that but it will not send an update about the progress until it reaches 1%. But the component knows that the program started and could update the progress by itself to 0%. Same goes when a program has finished. What I'm saying is that I think this component deserves to be more than API sensors. It should read the events and do some logic as well. It does not makes sense to build extra template sensors when this could be built in to the component. |
The program process in “unavailable” if there is no program running or if the process is below 1%.
I think it should report 0% or off instead of unavailable.
The text was updated successfully, but these errors were encountered: