Hi All,
I have setup an automation with sonoff zigbee temperature sensor and a sonof zigbee plug.
I am using Zigbee2Mqtt to connect my devices all software is up to date.
When the temperature is above a certain value it must turn on the plug that is connected to a fan.
The automation does not run automatically and if I run it manually then it turns on ignoring the temperature and condition.
I think I may be using the wrong states or something. I would really appreciate it if somebody could help,
Here is the code for my automation
- id: '1651212183531'
alias: Garage - Turn on the inverter fan
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.garage_temperature_sensor_temperature
above: '19'
condition:
- condition: device
type: is_on
device_id: 386743aabbeffd64ba04b17e01a17895
entity_id: switch.garage_inverter_fan
domain: switch
action:
- type: turn_off
device_id: 386743aabbeffd64ba04b17e01a17895
entity_id: switch.garage_inverter_fan
domain: switch
mode: single
1 post - 1 participant