Hey,
How to tell the Homeassistant switch or light device that it is on when th state_topic recive “100”
The 100 are the percent of brightness.
greets
Hey,
How to tell the Homeassistant switch or light device that it is on when th state_topic recive “100”
The 100 are the percent of brightness.
greets
here the config file:
switch:
platform: mqtt
name: “Treppenlicht”
state_topic: “digitalstrom/devices/Treppenbeleuchtung/brightness/state”
command_topic: “digitalstrom/devices/Treppenbeleuchtung/brightness/command”
payload_on: 100
payload_off: 0
sensor:
sensor works fine and give me a 100.00 ive device is on and a 0.00 ive its off