Hi, I have a MQTT switch that haven’t a state topic, so I guess I must use the optimistic tag (true).
But the icon on the panel still remain with the flash symbol instead to turn in the slider symbol.
Seem that the option “optimistic” aren’t considered.
I’ve done some experimenting with this, and it looks like setting optimistic: true causes the front end to change.
However if you add the state_topic: to the same as the command topic and remove optimistic, the state message is received from the broker, so you can get the same effect without having your switch return the actual state. This does have the advantage of checking the message at least got to the broker. So try
Yes, I must change the firmware on the client side, that, now, actually doesn’t support state_topic… but, as you say, this take the advantage of checking the status.
Everyway, I’ve tried all combination on assumed_state and optimistic, but nothing changed.
Have you edited the customize.yaml manually and restart?
If you use the customize tool, you can only set assumed_state to true.
Removing the check mark, deletes the key from the customize.yaml.
ok, you just activate it then, right?
despite that, I think you could try to define a payload_off in your hass config so the appearance would change.
The payload_off message can be sent even if your firmware doesn’t support it.