-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
Chronometer Notification not working with template #44094
Comments
Can you please share the yaml that you tried? |
I'm running into the same issue. Here's my info and some yaml to reproduce. Home Assistant Android version: 3.0.2-full Android version: 8 Phone model: LG V30 Home Assistant version: 0.118.5 This code needs a running timer called "timer.normalwasche". message: >-
"Wäsche fertig um {{ (as_timestamp(state_attr('timer.normalwasche', 'finishes_at'))) | timestamp_custom('%X') }}"
data:
channel: alarm_stream
tts: 0
priority: high
chronometer: true
when: "{{ as_timestamp(state_attr('timer.normalwasche', 'finishes_at')) | int }}" Steps to reproduce: |
I didn't have time yet to copy my exact setup, hopefully tomorrow, but the bug shows up in the same way for me. So I conclude the following is probably happening: |
Don't just guess, go to app configuration then notification history and look at the data that the app received. That will show the exact data that we got for the notification itself. |
I didn't know that feature existed, sorry! |
We may need to move this issue to HA core as it seems anything under the additional |
Can you transfer this issue or is it best to create a new one in core? |
I am unable to transfer it but I have requested the core team to move it so we can wait a bit for someone to take a look |
This bug only exist in the developer tool. When used in an automation, the template is rendered as expected. |
I did some more testing and I think I found the culprit. I tried using when: "{{ as_timestamp('states.binary_sensor.some_sensor.last_changed') | round }}" What I didn't notice was the Traceback
when: "{{ as_timestamp(states.binary_sensor.some_sensor.last_changed) | round }}" (the exact same as above but without the surrounding |
This helped me find what was going on. Potential fix here #46436. |
Sounds like the fact that This is probably safe to close. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Home Assistant Android version: beta-527-84e6a24-full
Android version: 11
Phone model: Google Pixel 3a
Home Assistant version: 0.118.5
Last working Home Assistant release (if known):
Description of problem: When using a template to get a timestamp for the chronometer when option for a notification, it doesn't render the template, resulting in the chronometer not showing up in the notification.
When the same template is rendered beforehand using the template dev-tool and the timestamp is entered directly for the when option, so when no template is used, it works without any problems.
Traceback (if applicable): n/a
Screenshot of problem:
Additional information: The ISS example from the documentation doesn't work either.
The text was updated successfully, but these errors were encountered: