Last notification doesn't update entity unless I open the corresponding app menu
See original GitHub issueHome Assistant Android version: 2021.10.0.full
Android version: 11
Phone model: Pixel 2 XL
Home Assistant version: core-2021.10.6
Last working Home Assistant release (if known): Don’t remember 😦
Description of problem:
I have an automation based on the “Last notification” sensor. It used to work quite well.
Now it’s like the entity sensor.pixel_2_xl_last_notification
doesn’t update unless I manually go in the HA Android App > App Configuration > Manage Sensors > Last Notification.
Here’s a screen recording to demonstrate the problem.
Key elements to look for are:
1- In the Developer Tools, the entity sensor.pixel_2_xl_last_notification
has Last updated set to October 18, 2021, 9:24:22 AM
(time I installed the latest HA core-2021.10.6 and rebooted the system).
2- After going in the App Configuration menu, the entity sensor.pixel_2_xl_last_notification
has now Last updated set to October 18, 2021, 6:40:35 PM
(corresponding time of the Android system).
Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):
Screenshot of problem: Please see screen recording
Additional information:
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Thanks for the advice. I now have Tasker posting a reset notification at a given time and added it to the Allow list.
I would have prefer an automation to reset the state but I totally get it’s an edge case being that the original notification always has the same text.
This was really helpful Daniel. I’ve been wonderingly about that problem for a while now. Closing the issue.
You might find it easier to use tasker to post a notification to the device and have the app pick that up. Not sure if you can set the state via automation unless you store the state in a input_text and modify that.