I'm trying to multiply by an !input number, but I keep getting various errors...
Here is my input...
input:
start_before:
name: Minutes Before Alarm
description: How many minutes before the alarm time to start the automation.
selector:
number:
min: 1
max: 60
default: 30
And my action...
action:
- action: light.turn_on
data:
color_temp_kelvin: !input start_kelvin_temp
brightness_pct: 1
entity_id: !input target_light
- delay:
seconds: 5
- action: !input alarm_script
data:
target_kelvin: !input target_kelvin_1
start_kelvin: !input start_kelvin_temp
max_brightness_pct: !input max_brightness_1
alarm_length: "{{ (start_before - 2) }}"
steps_per_minute: !input steps_per_minute
light_timeout: 0
target_light: !input target_light
I just want to be able to multiply or subtract from the start_before value.