Hello, I am using the latest version of home assistant and I cannot get an automation to be done automatically with the number_state trigger and the mqtt.service action if I get the temperature data from a sonoff th16 with no flashing. If I run it manually, it works, but only that way.
I need to interact between commercials firmwares and nodeMCU programming.
I am doing it from the graphical editor, not from automation.yaml.
- id: '1587486833172'
alias: Condicional
description: ''
trigger:
- below: '28'
entity_id: sensor.sonoff_1000beaf0c_temperature
platform: numeric_state
condition: []
action:
- data:
payload: 'ON'
qos: 0
retain: false
topic: Encender
service: mqtt.publish
The entity.ide sensor.sonoff_1000beaf0c_temperature is a temperature value from a sonoff th16. it should be activated because i’m much less than 28 degrees
I know this can be done with the thermostat card, but I want to learn how to do this kind of automation to control other things like power with sonoff pow.