Hello, I am new with HA, wrote script to switch off Air Conditioner.
And now I got a error:
Error initializing 'Kondicionierius OFF' trigger: In 'numeric_state' condition: entity climate.darbo_kambarys state 'heat' cannot be processed as a number
I checked my code and can’t find anything similar… Could you help me to find what could be wrong?
Here is my code:
alias: Kondicionierius OFF
description: Kada isjungti kondicionieriu
trigger:
- platform: numeric_state
entity_id: climate.darbo_kambarys
above: 23.4
condition:
- condition: or
conditions:
- condition: numeric_state
entity_id: climate.darbo_kambarys
attribute: current_temperature
above: 23.4
- condition: numeric_state
entity_id: weather.home
attribute: temperature
below: -5
- condition: and
conditions:
- condition: device
device_id: 5d82bcf32a72ae589bd3783d4d3b9ee8
domain: climate
entity_id: b05a57897a4483d4e29ebad7f0b6983f
type: is_hvac_mode
hvac_mode: heat
- condition: state
entity_id: climate.kondicionierius
state: heat
action:
- delay:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
- service: climate.set_hvac_mode
data:
hvac_mode: "off"
target:
device_id: 5d82bcf32a72ae589bd3783d4d3b9ee8
- service: climate.turn_off
data: {}
target:
device_id: 5d82bcf32a72ae589bd3783d4d3b9ee8
mode: single