Hi. I am trying to make this automation to work. But without any luck.
sensors.yaml configuration:
- platform: mqtt
name: "Toilet Luftfugtighed 162"
state_topic: "tele/toiletventilator/SENSOR"
value_template: "{{ ((value_json.AM2301.Humidity)|round(1) + 1) }}"
unit_of_measurement: "%"
The config checks out ok. But the automation won’t trigger.
automations.yaml configuration:
- alias: "Bathroom Humidity High"
trigger:
platform: numeric_state
entity_id: sensor.toilet_luftfugtighed_162
above: 60
action:
- service: homeassistant.turn_on
entity_id: switch.toilet_ventilator_162
- alias: "Bathroom Humidity OK"
trigger:
platform: numeric_state
entity_id: sensor.toilet_luftfugtighed_162
below: 55
action:
- service: homeassistant.turn_off
entity_id: switch.toilet_ventilator_162
Any ideas?
Regards,
Kenneth