Hi Everyone,
I have implemented CBUS integration with the SHAC module talking to Home Assistant via MQTT. I followed the great documentation provided by others to get this setup. It works brilliantly and I can control any CBUS device (lights, switches, sensors etc).
My only issue is that the state of the device doesnt seem to get remembered by Home Assistant. So if I switch a light on, the Home Assistant UI seems to forget that this ever happened and toggles the switch back off about 3 seconds later. So if I’m scanning to see which lights are currently on in the house, I can’t easily tell.
Weirdly, this doesn’t happen to all lights. I have two different types of lights
- LED strips (these mainly seem to track the state)
and
- Regular LED lights (these dont track state).
My configuration for both is the same.
- name: 'Sofia Room DLs'
state_topic: 'cbus/read/254/56/51/state'
command_topic: 'cbus/write/254/56/51/switch'
brightness_state_topic: 'cbus/read/254/56/90/51/level'
brightness_command_topic: 'cbus/write/254/56/51/ramp'
# payload_on: 'ON'
payload_off: 'OFF'
on_command_type: 'brightness'
unique_id: 'mqtt_sofia_room_dl'
# brightness_scale: '100'
- name: 'Sofia Room Window'
state_topic: 'cbus/read/254/95/3/state'
command_topic: 'cbus/write/254/95/3/switch'
brightness_state_topic: 'cbus/read/254/95/3/level'
brightness_command_topic: 'cbus/write/254/95/3/ramp'
# payload_on: 'ON'
payload_off: 'OFF'
on_command_type: 'brightness'
unique_id: 'mqtt_sofia_room_win'
# brightness_scale: '100'
Does anyone have any advice on why state isn’t being kept or what I’m doing wrong? Thank you in advance and thankyou to AutoSteve and all the others that wrote the CBUS/MQTT scripts!