Hi, I would like to add the chance to change a default timing set for an automation, creating a slicer on lovelace. I’ve seen that is possible using the input_number. I’ve tried with the following configuration but I’m getting this error:
Invalid config for [automation]: expected float for dictionary value @ data['for']['hours']. Got None expected float for dictionary value @ data['for']['minutes']. Got None.
- id: '1670488106467'
alias: Termocoperta_1ora
description: Spengo la termocoperta dopo 1 ora dall'accensione
trigger:
- platform: state
entity_id: switch.termocoperta
to: 'on'
for:
hours: "{{ states('input_number.hours') | int }}"
minutes: "{{ states('input_number.minutes') | int }}"
condition: []
action:
- type: turn_off
device_id: 84a0f117d9dfe632aa10123865117f47
entity_id: switch.termocoperta
domain: switch
mode: single
Now I’ve to found an alternative solution that guarantee me to change the running timer when the device has already been activated. Because with this structure using a ‘for’ I haven’t any leverage on timing once it has been turned on.