SecKatie / ha-wyzeapi

Home Assistant Integration for Wyze devices.
733 stars 112 forks source link

[Bug] Unable to find any devices + (Switch) Slider reverts to wrong setting after turning on/off #85

Closed dinan5 closed 3 years ago

dinan5 commented 3 years ago

Describe the bug

  1. 2020-09-22 18:06:50 ERROR (MainThread) [custom_components.wyzeapi] WyzeApi authenticated but could not find any devices. I have 6 entities online and controllable, but I get this message.
  2. Wyze Switches, turn on and off properly, but the slider reverts back to off, when its turned on - and vice-versa. After the second "slide" the slider is correct and matches switch status.

To Reproduce Steps to reproduce the behavior:

  1. Go to overview
  2. Click on a slider for a switch
  3. Switch will turn on but slider will revert to off.

Expected behavior I expect slider to match switch status. This works properly with bulbs.

System configuration System: Win10/VirtualBox/Docker HA Version: v0.115.2 WyzeApi Version:

configuration.yaml

Wyze

wyzeapi:
  username: !secret xxxx_ID
  password: !secret xxxx_PW
  sensors: false
  lock: false
  light: true
  switch: true

home-assistant.log

2020-09-22 17:57:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 2
2020-09-22 17:57:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 2
2020-09-22 17:57:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 1
2020-09-22 17:57:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 1
2020-09-22 17:57:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Basement Bulb
2020-09-22 17:57:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Bulb
2020-09-22 17:57:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Foyer Lamp
2020-09-22 17:57:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Foyer Lamp
2020-09-22 17:57:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Workbench
2020-09-22 17:57:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Theresa’s Light
2020-09-22 17:58:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 2
2020-09-22 17:58:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 2
2020-09-22 17:58:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 1
2020-09-22 17:58:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 1
2020-09-22 17:58:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Basement Bulb
2020-09-22 17:58:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Bulb
2020-09-22 17:58:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Foyer Lamp
2020-09-22 17:58:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Foyer Lamp
2020-09-22 17:58:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Workbench
2020-09-22 17:58:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Theresa’s Light
2020-09-22 17:58:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 2
2020-09-22 17:58:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 2
2020-09-22 17:58:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 1
2020-09-22 17:58:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 1
2020-09-22 17:58:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Basement Bulb
2020-09-22 17:58:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Bulb
2020-09-22 17:58:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Foyer Lamp
2020-09-22 17:58:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Foyer Lamp
2020-09-22 17:58:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Workbench
2020-09-22 17:58:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Theresa’s Light
2020-09-22 17:59:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 2
2020-09-22 17:59:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 2
2020-09-22 17:59:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 1
2020-09-22 17:59:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 1
2020-09-22 17:59:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Basement Bulb
2020-09-22 17:59:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Bulb
2020-09-22 17:59:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Foyer Lamp
2020-09-22 17:59:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Foyer Lamp
2020-09-22 17:59:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Workbench
2020-09-22 17:59:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Theresa’s Light
2020-09-22 17:59:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 2
2020-09-22 17:59:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 2
2020-09-22 17:59:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 1
2020-09-22 17:59:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 1
2020-09-22 17:59:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Basement Bulb
2020-09-22 17:59:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Bulb
2020-09-22 17:59:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Foyer Lamp
2020-09-22 17:59:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Foyer Lamp
2020-09-22 17:59:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Workbench
2020-09-22 17:59:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Theresa’s Light
2020-09-22 18:00:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 2
2020-09-22 18:00:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 2
2020-09-22 18:00:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 1
2020-09-22 18:00:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 1
2020-09-22 18:00:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Basement Bulb
2020-09-22 18:00:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Bulb
2020-09-22 18:00:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Foyer Lamp
2020-09-22 18:00:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Foyer Lamp
2020-09-22 18:00:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Workbench
2020-09-22 18:00:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Theresa’s Light
2020-09-22 18:00:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 2
2020-09-22 18:00:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 2
2020-09-22 18:00:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 1
2020-09-22 18:00:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 1
2020-09-22 18:00:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Basement Bulb
2020-09-22 18:00:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Bulb
2020-09-22 18:00:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Foyer Lamp
2020-09-22 18:00:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Foyer Lamp
2020-09-22 18:00:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Workbench
2020-09-22 18:00:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Theresa’s Light
2020-09-22 18:01:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 2
2020-09-22 18:01:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 2
2020-09-22 18:01:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 1
2020-09-22 18:01:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 1
2020-09-22 18:01:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Basement Bulb
2020-09-22 18:01:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Bulb
2020-09-22 18:01:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Foyer Lamp
2020-09-22 18:01:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Foyer Lamp
2020-09-22 18:01:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Workbench
2020-09-22 18:01:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Theresa’s Light
2020-09-22 18:01:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 2
2020-09-22 18:01:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 2
2020-09-22 18:01:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 1
2020-09-22 18:01:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 1
2020-09-22 18:01:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Basement Bulb
2020-09-22 18:01:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Bulb
2020-09-22 18:01:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Foyer Lamp
2020-09-22 18:01:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Foyer Lamp
2020-09-22 18:01:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Workbench
2020-09-22 18:01:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Theresa’s Light
2020-09-22 18:01:42 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Turning on: Basement Workbench
2020-09-22 18:01:42 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Workbench
2020-09-22 18:01:46 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Turning on: Basement Workbench
2020-09-22 18:01:46 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Workbench
2020-09-22 18:01:51 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Turning off: Basement Workbench
2020-09-22 18:01:51 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Workbench
2020-09-22 18:01:53 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Turning off: Basement Workbench
2020-09-22 18:01:53 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Workbench
2020-09-22 18:01:55 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Turning on: Theresa’s Light
2020-09-22 18:01:55 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Theresa’s Light
2020-09-22 18:01:59 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Turning on: Theresa’s Light
2020-09-22 18:01:59 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Theresa’s Light
2020-09-22 18:02:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 2
2020-09-22 18:02:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 2
2020-09-22 18:02:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 1
2020-09-22 18:02:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 1
2020-09-22 18:02:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Basement Bulb
2020-09-22 18:02:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Bulb
2020-09-22 18:02:01 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Foyer Lamp
2020-09-22 18:02:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Foyer Lamp
2020-09-22 18:02:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Workbench
2020-09-22 18:02:01 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Theresa’s Light
2020-09-22 18:02:03 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Turning off: Theresa’s Light
2020-09-22 18:02:03 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Theresa’s Light
2020-09-22 18:02:06 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Turning off: Theresa’s Light
2020-09-22 18:02:06 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Theresa’s Light
2020-09-22 18:02:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 2
2020-09-22 18:02:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 2
2020-09-22 18:02:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Table Lamp 1
2020-09-22 18:02:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Table Lamp 1
2020-09-22 18:02:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Basement Bulb
2020-09-22 18:02:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Bulb
2020-09-22 18:02:31 DEBUG (MainThread) [custom_components.wyzeapi.light] Updating Light: Foyer Lamp
2020-09-22 18:02:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Foyer Lamp
2020-09-22 18:02:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Basement Workbench
2020-09-22 18:02:31 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.client] Updating: Theresa’s Light
dinan5 commented 3 years ago

Running 5.10.1 beta code

SecKatie commented 3 years ago

Hmm, that is interesting. I have gotten lots of support recently and will be ordering a switch in the next few days so I can check this out.

dinan5 commented 3 years ago

Happy to help you in any way I can. this is great work that you've done. Thank you.


From: Joshua Mulliken notifications@github.com Sent: Wednesday, September 23, 2020 12:52 To: JoshuaMulliken/ha-wyzeapi ha-wyzeapi@noreply.github.com Cc: dinan5 dinan5@outlook.com; Author author@noreply.github.com Subject: Re: [JoshuaMulliken/ha-wyzeapi] Two Defects To Investigate (#85)

Hmm, that is interesting. I have gotten lots of support recently and will be ordering a switch in the next few days so I can check this out.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJoshuaMulliken%2Fha-wyzeapi%2Fissues%2F85%23issuecomment-697685703&data=02%7C01%7C%7C9cd662bf968448c7956f08d85fe1113a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637364767537174955&sdata=Vjr4lQEPgSwON%2B1xUzVLi8bjKAXC2R6viEGVNimZ4SU%3D&reserved=0, or unsubscribehttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FARAH6EBB3AKEXMA3CVNPBKLSHIRVBANCNFSM4RXFR2OA&data=02%7C01%7C%7C9cd662bf968448c7956f08d85fe1113a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637364767537174955&sdata=auyB1K9TQv%2Fc87sGh4B0GOvUNugEQ%2BjDwNp6CnnmEF8%3D&reserved=0.

SecKatie commented 3 years ago

Hey, @dinan5 I have fixed the issue with the switch. My pack came in today so it was money well spent from my supporters! If you download v0.5.11 you should see that it is now working!

dinan5 commented 3 years ago

Almost there! The issue persists when you toggle them off, sorry!

dinan5 commented 3 years ago

5.12 fixes it, Bravo!