Hi,
I have an MQTT sensor that reports Humidity to HA every 30mins and a WeMo switch connected a humidifier. What I want to do:
Between the hours of 19:00 and 06:00 maintain a humidity of ~50% in the room and not at other times of the day. This is what I currently have
Automation1.yaml
alias: Humidity Trigger On
trigger:
platform: numeric_state
entity_id: sensor.humidity
below: 50
condition:
condition: time
after: '19:00:00'
before: '06:00:00'
action:
service: homeassistant.turn_on
entity_id: switch.humidifier
Automation2.yaml
alias: Humidity Trigger Off
trigger:
platform: numeric_state
entity_id: sensor.humidity
above: 51
action:
service: homeassistant.turn_off
entity_id: switch.humidifier
This does what I think it’s meant to, however if the humidifier is on, but the humidity remains below 51 after 06:00:00 say for example because the bedroom door is open an the target can never be achieved then the humidifier will remain on. When in practise during the day I do not care what the humidity is, just that the humidifier shouldn’t be on.
Thanks