home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.54k stars 30.72k forks source link

Switchmate phantom toggles #115870

Open Erudition opened 6 months ago

Erudition commented 6 months ago

The problem

I've had the Switchmate integration working all year, but this month it started toggling on it's own. What's weird is that it doesn't show up in the activity log nor the Core logs, the device still shows the switch is off, after a phantom toggle. I can turn it on and back off in HA to get it to switch back off, but then it will come back on randomly. Again, this is not from an automation, HA's interface does not know about the change at all. I disabled the Switchmate app on my phone and it did not stop turning on at seemingly random times. I unplugged my Home Assistant Green, and... it stopped.

What version of Home Assistant Core has the issue?

core-2024.4.3

What was the last working version of Home Assistant Core?

core-2024.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Switchmate

Link to integration documentation on our website

https://www.home-assistant.io/integrations/switchmate/

Diagnostics information

Since Switchmate doesn't show up in HA as an integration (yaml only), there's no diagnostic data button.

Example YAML snippet

switch:
  - platform: switchmate
    mac: "FC:74:63:35:1A:XX"
    name: "Switchmate Toggle 1"

Anything in the logs that might be useful for us?

Nope

Additional information

No response

home-assistant[bot] commented 6 months ago

Hey there @danielhiversen, @qiz-li, mind taking a look at this issue as it has been labeled with an integration (switchmate) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `switchmate` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign switchmate` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


switchmate documentation switchmate source (message by IssueLinks)

dericosk commented 5 months ago

I have the same issue now, but for me it started after running the update to Operating System 12.3. After updating from 12.2, I started having this issue. I had been running core 2024.4.3 when I updated to 12.3 and still have the issue with core 2024.5.5.

wynfred commented 5 months ago

Confirming it's an issue with 12.3. Likely related to the bluez update

dericosk commented 5 months ago

I decided to drop back to OS 12.2 and don't have the issue anymore. So will be curious to see if 12.4 has the issue when it comes out.

issue-triage-workflows[bot] commented 2 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

dericosk commented 2 months ago

I hadn't run any updates on my HA install since going back to OS 12.2. I updated to OS 13.1 today to see if the issue is still there and I have random turnons and turnoffs of my Switchmates again. They seem to switch automatically toggling every half hour. If they were off, they turn on, if they were on, they turn off, then half an hour later, switch again. Still running Core 2024.4.3. Attaching a screen shot of the two switchmates that are active turning on and off. Screenshot 2024-09-04 122952

madeofstars0 commented 1 month ago

I'm having the same problems as well, every 30 minutes, it switches. I even have battles of turning it on/off with the phantom, turning it on and off either in-app or manually and it gets changed back after a few minutes. I was starting to think somebody was messing with me somehow, but seeing another user getting the same problem, with the same 30 min interval. It might be related to the integration.

I'm using a RaspberryPi 4 with the compatibility mode turned on for uart because I also have a Z-Wave.Me Razberry Daughtercard. It worked perfectly until a few months ago (sorry, I didn't dive deep into fixing it at the time).

My versions currently: Core 2024.9.2 Supervisor 2024.09.1 Operating System 13.1 Frontend 20240909.1

dericosk commented 1 month ago

The only thing I've found that worked was to revert to OS 12.2 using the terminal and updating to specific version 12.2

Until I hear here that there's some other workaround, then I'll stay stuck at OS 12.2.

dericosk commented 6 days ago

Tried OS 13.2 today, but it still triggers the same switching of swithmates every 1/2 hour. Back to 12.2 again. @Danielhiversen @qiz-li, any progress on an update to fix this issue?