Hey Folks!
I have a Sonoff s20, flashed with Tasmota.
Now I have connected a motion detector decoupled from the relay.
In the Tasmota console I now get e.g.
13:31:46.996 MQT: tele/tasmota_9E55AE/SENSOR = {"Time": "2024-04-01T13:31:46", "Switch1": "ON"}
13:31:51.158 MQT: tele/tasmota_9E55AE/SENSOR = {"Time": "2024-04-01T13:31:51", "Switch1": "OFF"}
I have entered the following Code in HomeAsistant Config.yaml
mqtt:
sensor:
- name: "Corridor light motion detector"
state_topic: "tele/tasmota_9E55AE/SENSOR"
icon: mdi:motion-sensor
Now I have a sensor that brings me ON or OFF.
But now I don’t know how to insert it into an automation.
If I create an automation and switch any lamp there when the sensor delivers “ON” - nothing happens.
Do you have a solution? Or would you solve it differently?
I need your help…