#Different looking light

1 messages · Page 1 of 1 (latest)

drowsy nebula
#

Hello, can anyone help me understand why my addon (publishes over mqtt) create a light that looks like this

Topic: homeassistant/light/rehau_62b994a6bb2c2d01a4d09567_ring_light/configQoS: 0
{"name":"Atilio - Salone Ring Light","object_id":"rehau_atilio_salone_ring_light","unique_id":"rehau_62b994a6bb2c2d01a4d09567_ring_light","device":{"identifiers":["rehau_78602d11303856504e3225ee27165454"],"name":"REHAU xxxxxx","manufacturer":"REHAU","model":"NEA SMART 2.0","sw_version":"1.0.0"},"state_topic":"homeassistant/light/rehau_62b994a6bb2c2d01a4d09567_ring_light/state","command_topic":"homeassistant/light/rehau_62b994a6bb2c2d01a4d09567_ring_light/command","payload_on":"ON","payload_off":"OFF","availability_topic":"homeassistant/light/rehau_62b994a6bb2c2d01a4d09567_ring_light/availability","payload_available":"online","payload_not_available":"offline","optimistic":true,"icon":"mdi:lightbulb"}
Topic: homeassistant/light/rehau_62b994a6bb2c2d01a4d09567_ring_light/stateQoS: 0
ON

Thank you in advance

oblique ocean
#

If you press the white lightning bolt button does it change to a switch?

#

Usually this occuers when you have no state topic. In that case HA can't tell if the light is on or off so it gives you separate on and off buttons. Even with a state topic sometimes this occurs when the light is first added as nothing has been published to the topic yet. Pressing the button once fixes this.

#

If pressing the button once does not fix it then there may be something wrong with this "state_topic":"homeassistant/light/rehau_62b994a6bb2c2d01a4d09567_ring_light/state"

drowsy nebula
#

it just turns on, but basically stays the same

oblique ocean
#

Yeah then the state toipic is not correct.

#

Try investigating with MQTT Explorer. Use it to connect to your broker and switch the light on/off. Does the state topic change? Does another topic change instead?

drowsy nebula
#

Second question is goiung to take some time 🙂
let's try...

#

Oh, well, actually yes... HA receives updates on the topic just fine...

oblique ocean
#

optimistic":true this should be false

#

You have a state topic you don't need to operate in optimistic mode (state assumed based on buttons pushed).

drowsy nebula
#

it's optimistic because the confirmation takes AGES to come (like 1 minute...)

#

and I wanted a rapid feedback...

#

is this causing the issue?