Hi, I have an Automation that is triggered via a “telegram_callback” event, with the following actions, the “input_text” updates as expected, but the “input_number” does not, any ideas?
FYI, the “input_text” is just to see what the return command is.
action:
- service: input_number.set_value
data_template:
value: |
{% if "trigger.event.data.command" == "/porch_30mins" %}
30
{% elif "trigger.event.data.command" == "/porch_1hr" %}
60
{% elif "trigger.event.data.command" == "/porch_3hrs" %}
180
{% elif "trigger.event.data.command" == "/porch_6hrs" %}
360
{% elif "trigger.event.data.command" == "/porch_12hrs" %}
720
{% elif "trigger.event.data.command" == "/porch_24hrs" %}
1440
{% else %}
0
{% endif %}
target:
entity_id: input_number.porch_automation_delay_timer
- service: input_text.set_value
target:
entity_id: input_text.porch_automation_delay_timer
data_template:
value: |
{{ trigger.event.data.command }}
Sensor States after callback command