Hi all,
I have a door open/closed sensor connected to an ESP8266 running Espeasy, data is being send via mqtt, and the hass receives it, i can properly see the sensor state in the UI:
binary_sensor:
- platform: mqtt
state_topic: "/ESP_Easy_Spint/magnetcontact/magnetcontact"
name: "Spinttür"
payload_on: "1"
payload_off: "0"
device_class: door
Following automation to turn on a specific light when the door sensor is on is not working, also tried multiple variations after browsing this forum and the web… :-o
automation:
- alias: Licht an im Spint bei offener Tür
trigger:
- platform: state
entity_id: binary_sensor.spinttur
to: 'on'
from: 'off'
action:
- service: light.turn_on
entity_id: light.dimmable_light_1
Any ideas?
Many thanks in advance,
Christian