Automation has this:
action:
- choose:
- conditions:
- type: is_humidity
condition: device
device_id: 95ce28e14d943dee6a3af327c9e968b9
entity_id: sensor.ble_humidity_th_gostinaya
domain: sensor
above: "{{ states('input_number.vlazhnost')| int }}"
sequence:
- service: switch.turn_off
data: {}
entity_id: switch.rozetkauvlazhnitelvladin
I get an error
Error executing script. Invalid data for choose at pos 1: expected float for dictionary value @ data[‘above’]
what is wrong in the line?
above: "{{ states('input_number.vlazhnost')| int }}"