-
Notifications
You must be signed in to change notification settings - Fork 4
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
Sensors become Unavailable after 15 minutes #10
Comments
I think thats the regular behaviour for sensors that arent continuously active. This also happens for other devices if I unplug them. (the showerhead loses power if its not running) |
I have seen other integrations have implemented ways to restore the state of the sensor after a restart. If you think it is too difficult to add in this integration, do you have any examples of your approach in your instance of HA to get around this limitation? Thanks. |
Also, the sensors of the native Xiaomi BLE integration keep their last state after a restart. |
@chkuendig a solution for something similar was implemented in codyc1515/ha-yeelock#17 for the ha-yeelock custom integration. |
@chkuendig thank you for this integration. I have recently began using it and it works like a charm. Regarding the topic of this issue, I have to agree with @mihsu81, I think the expected behavior for bluetooth sensors that are not always connected is to retain the last value available. One official integration that comes to my mind that has this behavior is oral-b. It tracks quite similar sensors (time, and others) while the tooth brush is working, then keeps them until the next time they are used, even if there are reboots. Would you consider again adding this feature, or at least accepting PRs adding it? I would be happy to do the later if you are willing to accept it. |
Happy to merge a PR, I so far just didnt have time to look into this myself. |
Hi @chkuendig,
The sensors become Unavailable after 15 minutes of not receiving data from the shower head. HA shows a notification that the integration amphiro_ble doesn't provide these entities anymore.
Is this expected behaviour? Is there any way to have the sensors keep their values?
Thanks in advance.
The text was updated successfully, but these errors were encountered: