Argo
(Argo)
1
Hi everyone. Here is what I have got
I choose 22:00 on my inpute datetime and see + 3 hours when I try to use it
As you can check 79200 is 22, not 1, so smth is going wrong here
I just need to start an automation in choosed from UI time:
trigger:
platform: template
value_template: "{{ states('sensor.time') == (states.input_datetime.alarm_morning.attributes.timestamp | int | timestamp_custom('%H:%M', 'False')) }}"
And yes, I am from Moscow (+3) and maybe thats the issue. But this automation was working earlyer (6 months ago)
I am on 105.5 now
tom_l
2
Change your template to:
value_template: "{{ states('sensor.time') == (states.input_datetime.alarm_morning.attributes.timestamp | int | timestamp_custom('%H:%M', 'True')) }}"
petro
(Petro)
4
Remove the quotes around the True
Edit: also you have quotes around the false. Remove it in both instances and choose the one with the time you expect
Argo
(Argo)
5
Thank you! That worked. Really appriciate help in this community
{{ states('sensor.time') ==
(states.input_datetime.alarm_morning.attributes.timestamp | int |
timestamp_custom('%H:%M', False)) }}