Seems like this has been a small but recurring issue for years? Skimming through github threads, it’s not clear to me whether this is a homebridge, ha, or z2mqtt issue
zigbee2mqtt bug thread (open):
opened 02:24AM - 02 Apr 24 UTC
problem
### What happened?
Sorry for the grammatically confusing title, hopefully it … will be clear below.
Sometimes I will send an "off" command to my bulb when the bulb is already off. This happens, for example, in home assistant scripts that turn off all the lights in a room when some lights are on but others are off, or if I press a smart button twice that turns off the light.
### What did you expect to happen?
If the IKEA bulb is off, and I publish `{"state": "OFF"}` to `zigbee2mqtt/My-Bulb-Name/set`, the light will remain off.
### How to reproduce it (minimal and precise)
1. Add IKEA Tradfri bulb (LED2103G5) to Zigbee2MQTT.
2. Update firmware to version 16777270 (Not sure if this is necessary or if this bug exists on old firmware.)
3. Turn bulb on.
4. Publish `{"state": "OFF"}` to `zigbee2mqtt/My-Bulb-Name/set`. **Bulb turns off as expected.**
5. Repeat step 4, publish another off message while bulb is already off. **Bulb does not remain off, instead, it turns on at very low brightness.**
### Zigbee2MQTT version
1.36.0 commit: 86ed71c
### Adapter firmware version
20210708
### Adapter
SONOFF Zigbee 3.0 USB Dongle Plus ZBDongle-P
### Setup
Official docker image on Raspberry Pi 3B+
### Debug log
_No response_
Home assistant bug thread (open):
opened 02:40PM - 28 Nov 23 UTC
integration: homekit
### The problem
After some recent update (not sure which one) I've been noticin… g strange issues with the HomeKit integration. I've noticed issues with two separate device types. One being a Vizio TV and one being a Z-wave smart plug.
I'm not sure if these are actually separate issues but it feels to me like they might be due to the same root issue.
**TV**
The TV is exposed to HomeKit so that I can change the volume in the Apple TV remote app. This has worked great until recently. At first I thought it might be an issue with Vizio since the TV just had a major update but now I'm not so sure.
The issue is that any action taken in the Apple TV remote app will turn the TV off.
As you can see in the logbook, the TV turns off when I take an action. Strangely enough HomeKit is sending a `turn_on` command which turns off the TV.
I think the issue here is twofold. The first issue is that the TV turns off when `turn_on` is sent and it's already turned on. I _think_ this is an issue with Vizio.
The second issue is that HomeKit doesn't seem to understand the TV is turned on which is why it sends `turn_on` when it is, in fact, already on.
I've also seen messages like `Den TV turned off triggered by HomeKit send command volume_down for Den TV`.
Lastly I'll note that changing the volume in the HA app works fine.

**Smart Plug**
Another issue that happened was similar. Both me and my wife asked Siri to turn off the bedroom lights. This caused it to turn off only to turn back on directly after a short delay. Looking at the logbook you see a similar log to what Vizio logged.

### What version of Home Assistant Core has the issue?
2023.11.3
### What was the last working version of Home Assistant Core?
_No response_
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
HomeKit
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/homekit
### Diagnostics information
[home-assistant_homekit_2023-11-28T14-36-44.724Z.log](https://github.com/home-assistant/core/files/13489345/home-assistant_homekit_2023-11-28T14-36-44.724Z.log)
[home-assistant_vizio_2023-11-28T14-36-42.242Z.log](https://github.com/home-assistant/core/files/13489346/home-assistant_vizio_2023-11-28T14-36-42.242Z.log)
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
_No response_
### Additional information
_No response_