Closed sikaiser closed 3 years ago
Hey! I think your webhook should be:
- id: 'hassalarm'
alias: Webhook for Hassalarm
trigger:
platform: webhook
webhook_id: hassalarm-webhook-2323
action:
service: input_datetime.set_datetime
data_template:
entity_id: "{{ trigger.json.entity_id }}"
timestamp: "{{ trigger.json.timestamp}}"
E.g. timestamp
instead of datetime
, as that is what is published from the app (if you check the app logs).
Also, what version of Home Assistant are you using?
Or maybe even:
- id: 'hassalarm'
alias: Webhook for Hassalarm
trigger:
platform: webhook
webhook_id: hassalarm-webhook-2323
action:
service: input_datetime.set_datetime
data_template:
entity_id: "{{ trigger.json.entity_id }}"
timestamp: {{ trigger.json.timestamp}}
E.g. timestamp: {{ trigger.json.timestamp}}
instead of timestamp: "{{ trigger.json.timestamp}}"
Thank you! It works with the "", as per your first reply.
And now I got so confused as to why I even did it differently from how you outline it in the readme, but I see you've just already updated it. Awesome!
@sikaiser Yes I realized that you got it from the Readme and that the Readme was wrong, sorry :)
I just set it up the first time, and feel like I did everything correctly according to the readme, but I'm not getting the proper alarm time and date in home assistant.
My
configuration.yaml
My
automations.yaml
(for webhook). Note, I haven't created any automation to use the alarm yet.The app reports "Published Successfully" and correctly shows what the next scheduled alarm is.
Any ideas? Thanks!