domoticz / domoticz-android

Domoticz Client Application for Android Devices
104 stars 70 forks source link

Switches / dimmers auto switch when operating another switch. #644

Open R1chard-z opened 2 years ago

R1chard-z commented 2 years ago

Describe the bug Both my wife and myself use the paid version of the domoticz app. Version 0.2.320 (8513) and we both experience the following strange behaviour.

When we open the app and for instance set the main light in the living room to 30% then it often happens that also the lights above our dining table, and / or the lights on the stairs and / or the lights on the kids bedrooms are turned on.

Those lights are all Z-Wave dimmers, also physically wired. When we use the physical button or the web gui, the problem does not happen. Also when we just use the on/off switch the problem doesn't happen. Only when we use the dimmer slider.

To Reproduce Steps to reproduce the behavior:

  1. Open the app (my startscreen is switches)
  2. just to be sure, pull the screen down to refresh
  3. Switch on 'Basisverlichting woonkamer' or 'Aanvullende verlichting woonkamer' (no problem so far)
  4. Change slider to percentage x
  5. Be amazed as the other lights also turn on.

Expected behavior What I expect to happen is that only the lighting of which I change the percentage should do something.

Extra info / logging. In the logging below, my desktop computer has IP 192.168.30.132, my phone has IP 192.168.30.140 I could not find how I could add logging below as a spoiler, so I added it as a quote.

2022-01-25 10:25:55.313 ZWaveStick: OpenZWave: Domoticz has send a Switch command!, Level: 17, NodeID: 4 (0x04) 2022-01-25 10:25:55.314 ZWaveStick: Light/Switch (Aanvullende verlichting woonkamer) 2022-01-25 10:25:55.313 Status: User: Admin (IP: 192.168.30.132) initiated a switch command (19/Aanvullende verlichting woonkamer/Set Level) 2022-01-25 10:26:17.229 ZWaveStick: OpenZWave: Domoticz has send a Switch command!, Level: 27, NodeID: 4 (0x04) 2022-01-25 10:26:17.231 ZWaveStick: Light/Switch (Aanvullende verlichting woonkamer) 2022-01-25 10:26:17.240 ZWaveStick: OpenZWave: Domoticz has send a Switch command!, Level: 27, NodeID: 4 (0x04) 2022-01-25 10:26:17.241 ZWaveStick: Light/Switch (Aanvullende verlichting woonkamer) 2022-01-25 10:26:17.248 ZWaveStick: OpenZWave: Domoticz has send a Switch command!, Level: 27, NodeID: 4 (0x04) 2022-01-25 10:26:17.249 ZWaveStick: Light/Switch (Aanvullende verlichting woonkamer) 2022-01-25 10:26:17.250 ZWaveStick: OpenZWave: Domoticz has send a Switch command!, Level: 255, NodeID: 5 (0x05) 2022-01-25 10:26:17.251 ZWaveStick: Light/Switch (Tussenverlichting) 2022-01-25 10:26:17.253 ZWaveStick: OpenZWave: Domoticz has send a Switch command!, Level: 255, NodeID: 2 (0x02) 2022-01-25 10:26:17.253 ZWaveStick: Light/Switch (Overloop) 2022-01-25 10:26:17.255 ZWaveStick: OpenZWave: Domoticz has send a Switch command!, Level: 27, NodeID: 4 (0x04) 2022-01-25 10:26:17.256 ZWaveStick: Light/Switch (Aanvullende verlichting woonkamer) 2022-01-25 10:26:17.259 ZWaveStick: OpenZWave: Domoticz has send a Switch command!, Level: 255, NodeID: 6 (0x06) 2022-01-25 10:26:17.260 ZWaveStick: Light/Switch (Eetkamer tafel verlichting) 2022-01-25 10:26:17.261 ZWaveStick: OpenZWave: Domoticz has send a Switch command!, Level: 27, NodeID: 4 (0x04) 2022-01-25 10:26:17.262 ZWaveStick: Light/Switch (Aanvullende verlichting woonkamer) 2022-01-25 10:26:17.229 Status: User: Richard (IP: 192.168.30.140) initiated a switch command (19/Aanvullende verlichting woonkamer/Set Level) 2022-01-25 10:26:17.240 Status: User: Richard (IP: 192.168.30.140) initiated a switch command (19/Aanvullende verlichting woonkamer/Set Level) 2022-01-25 10:26:17.248 Status: User: Richard (IP: 192.168.30.140) initiated a switch command (19/Aanvullende verlichting woonkamer/Set Level) 2022-01-25 10:26:17.250 Status: User: Richard (IP: 192.168.30.140) initiated a switch command (28/Tussenverlichting/On) 2022-01-25 10:26:17.252 Status: User: Richard (IP: 192.168.30.140) initiated a switch command (1/Overloop/On) 2022-01-25 10:26:17.255 Status: User: Richard (IP: 192.168.30.140) initiated a switch command (19/Aanvullende verlichting woonkamer/Set Level) 2022-01-25 10:26:17.258 Status: User: Richard (IP: 192.168.30.140) initiated a switch command (37/Eetkamer tafel verlichting/On) 2022-01-25 10:26:17.261 Status: User: Richard (IP: 192.168.30.140) initiated a switch command (19/Aanvullende verlichting woonkamer/Set Level) 2022-01-25 10:26:18.321 ZWaveStick: Usage (Unknown) 2022-01-25 10:26:18.323 ZWaveStick: General/kWh (Woonkamer Aanvullend kWh) 2022-01-25 10:26:20.555 ZWaveStick: Light/Switch (Tussenverlichting) 2022-01-25 10:26:20.662 ZWaveStick: Light/Switch (Overloop) 2022-01-25 10:26:20.937 ZWaveStick: Light/Switch (Overloop) 2022-01-25 10:26:20.966 ZWaveStick: Usage (Unknown) 2022-01-25 10:26:20.967 ZWaveStick: General/kWh (Woonkamer Tussen kWh) 2022-01-25 10:26:20.368 Status: ZWaveStick: OpenZWave: Received timeout notification from HomeID: 3267805952, NodeID: 4 (0x04) 2022-01-25 10:26:21.222 ZWaveStick: Usage (Unknown) 2022-01-25 10:26:21.223 ZWaveStick: General/kWh (Overloop kWh) 2022-01-25 10:26:22.327 ZWaveStick: Light/Switch (Eetkamer tafel verlichting) 2022-01-25 10:26:22.924 ZWaveStick: Usage (Unknown) 2022-01-25 10:26:22.926 ZWaveStick: General/kWh (Woonkamer Eettafel kWh) 2022-01-25 10:26:25.945 ZWaveStick: Usage (Unknown) 2022-01-25 10:26:25.947 ZWaveStick: General/kWh (Woonkamer Tussen kWh) 2022-01-25 10:26:27.922 ZWaveStick: Usage (Unknown) 2022-01-25 10:26:27.924 ZWaveStick: General/kWh (Woonkamer Eettafel kWh) 2022-01-25 10:26:28.332 ZWaveStick: Usage (Unknown) 2022-01-25 10:26:28.334 ZWaveStick: General/kWh (Woonkamer Aanvullend kWh)

Smartphone (please complete the following information):

Additional context Feel free to ask if I missed to supply any info.

R1chard-z commented 2 years ago

Other things I've tried and checked.

Rouzax commented 2 years ago

Have the same issue. It stopped a while when disabling Auto Refresh but now it is back. Have the same phone as you and running:

My wife has the same phone but for her it hasn't happened yet (although she uses the app a lot less than me.)

This really makes the app unusable. Looking at this GitHub it is clear that the Android App is not actively developed any more.

R1chard-z commented 2 years ago

I've upgraded to Domoticsz 2022.1 too. No differnce.

Rouzax commented 1 year ago

Just to show it still exists, this issue Domoticz: 2022.2 (build 14980) App: 0.2.343 (9200)

Here is a screenrecording of the issue, enabling the first switch will sometimes also trigger other switches, here you can see the second one being triggered.

https://user-images.githubusercontent.com/4103090/215344433-db8c5f62-ed16-4561-9f9f-b631d1d8754c.mp4

Rouzax commented 1 year ago

Still happening on 0.2.355. This especially happens when opening the app after it was closed. Also when switching on a device it will not show as on until I hit refresh. You can see that I change the dim level of one lamp which triggers multiple lights to turn on.

https://user-images.githubusercontent.com/4103090/224472216-afa590a4-9b6f-47fc-948e-ace0b5e11aa1.mp4

Let me know what you need to troubleshoot If this can't get fixed I'll need to stop both premium subscriptions of me and my wife as it is an unusable product. It is not nice if you want to change the level of the lights in the living room and then also turning on the lights in the baby room.

Rouzax commented 1 year ago

Still an issue with v0.2.355

https://user-images.githubusercontent.com/4103090/228584901-0881b14d-6162-4531-a0b4-ae6230bdd94f.mp4

IceBlackz commented 1 year ago

I'm also experiencing this very annoying bug. It's very specific also, when I select a dim level on a specific device, it switches on another specific device. It's always the same device, this doesn't happen when using the domoticz browser interface. I can also see it in my log:

2023-04-07 20:43:55.065 Status: User: hidden (IP: 192.168.2.) initiated a switch command (28/Slaapkamer - LEDstrip bed/Set Level) 2023-04-07 20:43:55.086 Status: User: hidden (IP: 192.168.2.) initiated a switch command (7/Keuken - Plafondlamp/On)

There's no way I can switch both of them on within 20 milliseconds ;)

Please assign someone to this issue to fix this!

galadril commented 1 year ago

New version is uploaded to Google Play Store containing lots of fixes on the Dashboard / Switch adapter (list) code. I think this should be fixed on that version

Rouzax commented 1 year ago

What is the version number of the latest update? Not seeing anything new in the app store.

galadril commented 1 year ago

667 (0.2.356 (9312)) Its still in review by Google, can take some time

Rouzax commented 1 year ago

Will keep an eye out for it and report back Is this updated in the old Premium App or only in the subscription based one?

galadril commented 1 year ago

should be in both, its in the store now. plz close this issue if its fixed

Rouzax commented 1 year ago

should be in both, its in the store now. plz close this issue if its fixed

I think that the issue is solved with the multiple switches being triggered but this fix introduce an issue that each dim level change triggers a command for each 1% change overloading zwave and Domoticz with queued commands. See the forum post.