Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 102800

Automation Assistance - Newbie

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 102800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>