I want to create an automation where value of sensor.thermal_comfort_absolutehumidity is higher by 4 as compared to sensor.thermal_comfort_outside_absolutehumidity then an automation is triggered. I am trying to do it the following way but its not working. Getting error Message malformed: expected float for dictionary value @ data[‘condition’][0][‘above’]. Any help?
description: " "
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.thermal_comfort_absolutehumidity
attribute: humidity
above: 4
condition:
- condition: numeric_state
entity_id: sensor.thermal_comfort_absolutehumidity
above: >-
sensor.thermal_comfort_outside_absolutehumidity {{
states('sensor.sensor_b') | float + 4 }}"