Hi Folks,
I’ve got a sonoff th16 with humidity and temp sensor in a bathroom. I’m trying to start a fan (not connected to the th16) when the humidity hi a threashold.
I’ve got this automation but this is not working… Would appreciate some help!
Note: This sensor is connected through the official sonoff integration. Not sure if that makes a difference. It is not flashed and at this stage, unless I am told what I am trying to do does require for the th16 to be flashed, I prefer to stay with the stock firmware.
alias: Ensuite humidity check
description: Check humidity sensor and turn on the fan
trigger:
- platform: numeric_state
entity_id: sensor.10010316f3_h
above: '85'
condition:
- condition: time
after: '07:59:00'
before: '23:30:00'
action:
- type: turn_on
device_id: e759623024797cac350d03da505b81a2
entity_id: switch.tybf99e793f61fc690560kpq_3
domain: switch
mode: single
I tried removong the hours, changing the 85 to 0.8 or even 0, but nothing gets triggered.
I can read on the doc that sonoff can’t be added as devices, only entity. And I need to first create a scene. Problem is that I can’t add the sensor.10010316f3_h in a scene, only sensor.10010316f3, which is the on/off switch…
Thanks for your help!