Running the latest version of HA on a pi/ssd. For some reason my automation in HA sends MQTT command light.turn_on just fine. BUT to the exact light (dimmer), it refuses to send light.turn_off.
I am watching the MQTT messaging with an explorer, and this confirms the above is happening.
It also will not send a “toggle” command.
See Tara’s report. And general forum rule: use </> means you should press that button above the window you this in, so the code is readable and properly formatted.
Yeah, homeassistant.turn_on is more flexible but it generally is preferred to be specific to ensure your context is maintained.
However this is just ‘most people’s’ personal preference, so it’s up to you.
Sorry, about my first response, it was to highlight that what you said (in the post title) was a) wrong, b) misleading and c) requiring more information (which you later provided and which then from, others diagnosed your problem)
That makes sense. When I bang the dimmer bar in the HA Lovelace UI to zero, the light goes off. But the On/Off slide bar in the same interface does nothing.