Hello,
I’m just starting with Home Assistant, i’m comming from openhab.
So far i like HA.
I’m running for now to one problem.
All my light switches and dimmers are working over MQTT, when i turn on one of the lights the status isn’t updated within HA.
the rest of the familie is stil working with openhab, so when they control the light, to my knowledge the status within HA should also be updated.
But that isn’t true.
I don’t know where to look or what is wrong.
The switches and dimmers are controlled by ESP.
There is custom software in these, so if needed i can alter it.
don’t wan’t to use esphome
below, a part of my config file.
light:
- platform: mqtt
name: "Vogels"
command_topic: "/arnold/switch/"
state_topic: "/arnold/switch/"
command_on_template: "1,{{ brightness|d }}"
command_off_template: "0"
payload_on: "1"
payload_off: "0"
state_template: "{{ value.split(',')[0] }}"
brightness_command_topic: "/arnold/dim/"
brightness_template: '{{ value_json.brightness }}'
brightness_state_topic: "/arnold/dim/"
brightness_scale: 100
qos: 1
retain: true
optimistic: false
- platform: mqtt
name: "Zwartekast"
command_topic: "/wifidimmer2/switch/"
state_topic: "/wifidimmer2/switch/"
command_on_template: "1,{{ brightness|d }}"
command_off_template: "0"
payload_on: "1"
payload_off: "0"
state_template: "{{ value.split(',')[0] }}"
brightness_command_topic: "/wifidimmer2/dim/"
brightness_state_topic: "/wifidimmer2/dim/"
brightness_template: "{{ value_json.brightness }}"
brightness_scale: 100
qos: 0
optimistic: false