Git Product home page Git Product logo

ha-wyzeapi's Introduction

Visit our IRC channel

Home Assistant - Wyze Integration

This is a custom component to allow control of various Wyze devices in Home Assistant using the unofficial API. Please note this mimics the Wyze app and therefore access may be cut off at anytime.

Highlights of what WyzeApi can do

  • Control Wyze Bulbs as lights through HA
  • Control Wyze Plugs as switches through HA
  • Use Wyze Cameras as motion sensors NOTE: Disabled following API usage incident with Wyze
  • Turn on and off Wyze Cameras
  • Lock, unlock, and view status of lock and door for the Wyze Lock

Potential Downsides

  • This is an unofficial implementation of the api and therefore may be disabled or broken at anytime by WyzeLabs
  • It requires two factor authentication to be disabled on your account
  • Two Factor Authentication is supported as of version 2021.9.2

Funding

If you like what I have done here and want to help I would recommend that you firstly look into supporting Home Assistant. You can do this by purchasing some swag from their store or paying for a Nabu Casa subscription. None of this could happen without them.

After you have done that if you feel like my work has been valuable to you I welcome your support through BuyMeACoffee or Github Sponsers in the right hand menu.

Installation (HACS) - Highly Recommended

  1. Have HACS installed, this will allow you to easily update
  2. Add https://github.com/SecKatie/ha-wyzeapi as a custom repository as Type: Integration
  3. Click install under "Wyze Bulb and Switch Api Integration" in the Integration tab
  4. Restart HA
  5. Navigate to Integrations in the config interface.
  6. Click ADD INTEGRATION
  7. Search for Wyze Home Assistant Integration NOTE: If Wyze Home Assistant Integration does not appear, hard refresh the browser (ctrl+F5) and search again
  8. Enter your email, password, keyid & apikey when prompted. NOTE: If you do not know how to generate your keyid & apikey, please see the following official Wyze documentation: Creating an API Key
  9. Click SUBMIT and profit!

Usage

Contributing

Support

If you need help with anything then please connect with the community!

  • Visit us on IRC at librechat in the #wyzeapi channel!
  • Visit the discussions tab on this repo
  • For bugs or feature requests create an issue
  • Check out the wiki!

Reporting an Issue

  1. Setup your logger to print debug messages for this component by adding this to your configuration.yaml:
    logger:
     default: warning
     logs:
       custom_components.wyzeapi: debug
       wyzeapy: debug
  2. Restart HA
  3. Verify you're still having the issue
  4. File an issue in this Github Repository (being sure to fill out every provided field)

ha-wyzeapi's People

Contributors

akudaikon avatar bboisclair avatar brg468 avatar brianhanifin avatar daizack avatar davidking4411 avatar davidlang42 avatar dependabot[bot] avatar ejpenney avatar faanskit avatar filenameexe avatar jdeath avatar jfarmer08 avatar joeschubert avatar leandroissa avatar leoledmag avatar markrickert avatar mlhfb avatar morozsm avatar ninadpchaudhari avatar quantum-cross avatar rappo avatar reidprichard avatar seckatie avatar widewing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ha-wyzeapi's Issues

Delay in Brightness and Temperature value in HA

Describe the bug
Upon turning on the light entity, it takes between 17-25 seconds for the brightness and color_temp attributes to display and populate with their accurate values. While off, the light entity loses the brightness and color_temp attributes (disappear from states page) which might be due to how the component was written, maybe that can be reconsidered. In the UI the color_temp slider disappears while off as well. Seeing that this component is completely synced up with the Wyze API, in theory it should never not know when the bulb is being operated so if it gets turned on via Alexa or app it will push (or this component will pull) the status info from Wyze. Keeping the last known value in the entity seems logical.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Developer Tools - States tab
  2. Find a light entity from the wyzeapi component, view the state and attributes
  3. Click the "i" info circle on the left of the entity name to open the light entity
  4. Turn the switch off, observe the attributes disappearing from entity state information.
  5. Turn the switch on, observe the brightness and color_temp attributes do not appear in the entity attribute information box for anywhere between 17-25 seconds and the UI sliders for these don't indicate reality for that entire time until the attributes arrive.

Expected behavior
Last known brightness and color_temp attributes stay with light entity upon turning the light off so they can be accurately displayed as what the current values are until user changes them. If they're somehow different from what was last known, the same update process used now would correct it - maybe the speed can be improved.

System configuration
System: Hass.io in a proxmox VM
HA Version: v0.104.0
WyzeApi Version: v0.4.1

configuration.yaml

wyzeapi:
  username: !secret wyze_un
  password: !secret wyze_pw

home-assistant.log

Nothing of note to report here

Wyze Lock Battery Level Attribute

Is your feature request related to a problem? Please describe.

Being able to write an automation to monitor the battery level on the Wyze Lock will help prevent Wyze Lock failures.
Describe the solution you'd like

Would like to have a battery attribute for Wyze Lock indicating percentage of battery charge
Describe alternatives you've considered

Additional context

The battery level is displayed in the Wyze app so it seems to be available.

Status update

Not sure if this is even possible, but is there a way for the api to get the status of the bulb and update the component in Home Assistant? For example, if someone turns a bulb on or off using the Wyze app, could the Home Assistant component be updated to reflect that change?

Wyze Switch support

This doesn't seem to support the wyze switches. Since the API appears to be almost identical can we get switch support as well? If you aren't interested in adding it, I can tinker with it and see if I can make it work. Would you be willing to accept a PR for switches?

Brightness set to 100% when you adjust the color temperature

Hi, still seeing the problem on v0.3.1. I installed and updated through HACS, then restarted the server (not sure if that matters compared to a reboot). Ran the logger and didn't get any warnings for Wyzeapi.

I am adjusting the lights in Lovelace using both the standard entity card and the light entry row plugin.

It also has the same issue when I use the card pop up (card that shows up when you click on the picture of the lightbulb) and adjust the lights.

Switches don't show up on scenes

I have a couple of switches around my house automating some led strips, the switch works already and i can turn on/off trough HASSio... the only thing missing now is adding the switches to a scene, when I try to add them they don't show up there. Is there anything I can do to fix this?

Lights not appearing in Entities

Hi there.

I have 4 Wyze bulbs in my home that have been setup through the Wyze app for a while with no issues. I've followed the instructions for this integration, reinstalled multiple times, removed and re-added my lights in the Wyze app, etc. I'm not getting any errors in HA for wyzeapi.

Issue is, my lights just don't appear in the entities list.

Any thoughts?

[Feature Request] Set switches as devices

Is your feature request related to a problem? Please describe.
Kind of, due to the fact that the switches are only entities ATM, I cannot setup an automation with them

Describe the solution you'd like
I would like the switches to be added as devices so it is possible and more streamlined to create automations and such

Describe alternatives you've considered
n/a

Additional context
n/a

I lost a Wyze Switch while renaming and can't find it to retrieve. [Help Wanted]

Describe the bug
I renamed an Entity for a Wyze Switch to fix a typo. It disappeared from Home Assistant.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Configuration/Entity
  2. Click on a Wyze Switch
  3. Type New Name is Name Override
  4. Hit update and the device disappeared.

Expected behavior
This has only happened once. Every other time I have renamed an entity, it worked. Could definitely be human error. I just don't know how to find the device to correct the issue.

System configuration
System: Raspberry PI 4
HA Version: 0.112.3
WyzeApi Version: 0.5.0

configuration.yaml

wyzeapi:
  username: !secret wyze
  password: !secret wyze_pw

home-assistant.log

2020-07-07 17:49:09 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for wyzeapi which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-07-07 17:49:09 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-07-07 17:49:09 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-07-07 17:49:10 WARNING (MainThread) [homeassistant.components.http] The 'base_url' option is deprecated, please remove it from your configuration
2020-07-07 17:49:14 DEBUG (MainThread) [custom_components.wyzeapi] 
-------------------------------------------------------------------
Wyze Bulb and Switch Home Assistant Integration

Version: v0.5.0
This is a custom integration
If you have any issues with this you need to open an issue here:
https://github.com/JoshuaMulliken/ha-wyzeapi/issues
-------------------------------------------------------------------
2020-07-07 17:49:14 DEBUG (MainThread) [custom_components.wyzeapi] Creating new WyzeApi component
2020-07-07 17:49:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api initializing.
2020-07-07 17:49:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api initializing async.
2020-07-07 17:49:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api logging in async.
2020-07-07 17:49:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:49:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:49:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:49:16 WARNING (MainThread) [aioharmony.harmonyclient] 192.168.1.115: XMPP is not enabled, using web sockets however this might not work with future Harmony firmware updates, please enable XMPP
2020-07-07 17:49:16 DEBUG (MainThread) [custom_components.wyzeapi] Connected to Wyze account
2020-07-07 17:49:16 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api getting devices.
2020-07-07 17:49:16 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:49:16 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:49:16 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi] Starting WyzeApi components
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi] Starting WyzeApi Lights
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi] Starting WyzeApi switchs
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi] Starting WyzeApi Sensors
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi] Starting WyzeApi lock
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.light] Creating new WyzeApi light component
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api listing bulbs.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api getting devices.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_bulb] Light LR3 initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_bulb] Light Wyzebulb1 initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_bulb] Light BR3 initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_bulb] Light Train initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_bulb] Light Desk initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_bulb] Light Bedroom initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_bulb] Light LR2 initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_bulb] Light LR1 initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.switch] Creating new WyzeApi switch component
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api listing switches.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api getting devices.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_switch] Switch Basement Entry Light initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_switch] Switch UnderDeck Noise initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_switch] Switch Family Room initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_switch] Switch Garage Light initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Creating new WyzeApi binary_sensor component
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api listing sensors.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api getting devices.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor 779BC6F5 East Fence Gate initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor 779BC6EE PD Gate initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor 777D130E Garage Door initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor 777D12FE West Fence Gate initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api listing Motion Sensors.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api getting devices.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_motion] Motion Sensor 777C4002 Garage Motion initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_motion] Motion Sensor 779D4074 PA Motion initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.lock] Creating new WyzeApi Lock component
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api listing Lock.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api getting devices.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_lock] Lock YD.LO1.995c41c2bb3aa4d16467beaab7d78585 Basement Door initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor East Fence Gate updating.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor PD Gate updating.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor Garage Door updating.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor West Fence Gate updating.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_motion] Motion Sensor Garage Motion updating.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_motion] Motion Sensor PA Motion updating.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:49:18 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:49:19 DEBUG (MainThread) [custom_components.wyzeapi.lock] Binary Locks doing a update.
2020-07-07 17:49:19 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_lock] Lock Basement Door updating.
2020-07-07 17:49:19 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:49:19 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:49:19 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:02 ERROR (MainThread) [homeassistant.components.upnp] Error requesting R6700v3 (Gateway) data: None
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_bulb] Light LR3 updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_bulb] Light Wyzebulb1 updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_bulb] Light BR3 updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_bulb] Light Train updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_bulb] Light Desk updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_bulb] Light Bedroom updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_bulb] Light LR2 updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_bulb] Light LR1 updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_switch] Switch Basement Entry Light updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_switch] Switch UnderDeck Noise updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_switch] Switch Family Room updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_switch] Switch Garage Light updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor East Fence Gate updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor West Fence Gate updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor Garage Door updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_motion] Motion Sensor PA Motion updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_motion] Motion Sensor Garage Motion updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.lock] Binary Locks doing a update.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_lock] Lock Basement Door updating.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:08 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor East Fence Gate updating.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor West Fence Gate updating.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor Garage Door updating.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_motion] Motion Sensor PA Motion updating.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_motion] Motion Sensor Garage Motion updating.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.lock] Binary Locks doing a update.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_lock] Lock Basement Door updating.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:14 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor East Fence Gate updating.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor West Fence Gate updating.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor Garage Door updating.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_motion] Motion Sensor PA Motion updating.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_motion] Motion Sensor Garage Motion updating.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.lock] Binary Locks doing a update.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_lock] Lock Basement Door updating.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:20 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor East Fence Gate updating.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor West Fence Gate updating.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor Garage Door updating.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_motion] Motion Sensor PA Motion updating.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_motion] Motion Sensor Garage Motion updating.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.lock] Binary Locks doing a update.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_lock] Lock Basement Door updating.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:26 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor East Fence Gate updating.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor West Fence Gate updating.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor Garage Door updating.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_motion] Motion Sensor PA Motion updating.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_motion] Motion Sensor Garage Motion updating.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.lock] Binary Locks doing a update.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_lock] Lock Basement Door updating.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyzeapi] Wyze Api doing request.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request initializing.
2020-07-07 17:50:32 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] Wyze Request getting response async.
2020-07-07 17:50:38 DEBUG (MainThread) [custom_components.wyzeapi.binary_sensor] Binary Sesnors doing a update.
2020-07-07 17:50:38 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.sensors.wyze_contact] Contact Sensor East Fence Gate updating.

Error during setup of component wyzeapi

I manually installed the wyzeapi because I was getting an error when doing it through the UI. After entering the credentials in the configuration.yaml file I am getting the following error:

Error during setup of component wyzeapi

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 193, in _async_setup_component
    result = await asyncio.wait_for(task, SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/config/custom_components/wyzeapi/__init__.py", line 48, in async_setup
    await wyzeapi_account.async_init()
  File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi.py", line 33, in async_init
    await self.async_login()
  File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi.py", line 58, in async_login
    data = await self.async_do_request(url, payload)
  File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi.py", line 204, in async_do_request
    return await WyzeRequest(url, payload).async_get_response()
  File "/config/custom_components/wyzeapi/wyzeapi/wyze_request.py", line 51, in async_get_response
    raise WyzeApiError("Payload: " + str(self._payload) + "\nResponse Data: " + str(data))
custom_components.wyzeapi.wyzeapi.wyzeapi_exceptions.WyzeApiError: Payload: {"phone_id": "bc151f39-787b-XXXX-XXXX-5a20fd0a1937", "app_name": "com.hualai.WyzeCam", "app_version": "2.6.62", "sc": "9f275790cab94a72bd206c8876429f3c", "password": "XXXXXXXXXX", "sv": "41267de22d1847c8b99bfba2658f88d7", "user_name": "[email protected]", "two_factor_auth": "", "phone_system_type": "1", "app_ver": "com.hualai.WyzeCam___2.6.62", "ts": "1575955440030", "access_token": ""}
Response Data: {'ts': 1594143264947, 'code': '2000', 'msg': 'UserNameOrPasswordError', 'data': {}}

Any ideas?

[Bug] Can't add as custom repository

Hi, I am new to Home Assistant so forgive me if I am overlooking something simple, however, when I try to follow the instructions in README, I get the following error in the System Log:

20-05-15 22:20:13 INFO (MainThread) [supervisor.store.git] Clone add-on https://github.com/JoshuaMulliken/ha-wyzebulb repository

20-05-15 22:20:15 ERROR (MainThread) [supervisor.utils.json] Can't read json from /data/addons/git/87977a50/repository.json: [Errno 2] No such file or directory: '/data/addons/git/87977a50/repository.json'

20-05-15 22:20:15 WARNING (MainThread) [supervisor.store.data] Can't read repository information from /data/addons/git/87977a50/repository.json

Update deprecated light and switch components

2020-05-21 14:35:46 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=wyzeapi>
2020-05-21 14:35:46 WARNING (MainThread) [homeassistant.components.light] Light is deprecated, modify WyzeBulb to extend LightEntity
2020-05-21 14:35:46 INFO (MainThread) [homeassistant.components.light] Setting up light.wyzeapi
2020-05-21 14:35:46 WARNING (MainThread) [homeassistant.components.switch] SwitchDevice is deprecated, modify WyzeSwitch to extend SwitchEntity
2020-05-21 14:35:46 INFO (MainThread) [homeassistant.components.switch] Setting up switch.wyzeapi

Home assistant .110 has been throwing the following errors relating to the HA-WYZEAPI integration. Looks like the integration needs to update the component references.

Slow to update

When I turn the bulb off within home assistant it is slow to change its understanding of the state to off.

Support camera API?

Sorry if this is addressed elsewhere but is the Wyze camera API entirely different or can it be supported?

Switch: AttributeError: 'WyzeApi' attribute issues

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 281, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 461, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/wyzeapi/switch.py", line 83, in update
self._switch.update()
File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi_switch.py", line 73, in update
"device_model": self._api._device_model,
AttributeError: 'WyzeApi' object has no attribute '_device_model'

Using config from the README

Wyze plugs

Could this be changed to control the wyze plugs also.

access token error in v 0.3.1

Hi, still having access token errors in the latest public version. I did a clean install of the integration in HACS. every once and a while when I restart my server, I get the error. here is the debug. Deleting the wyzeconfig.ini and restarting does reconnect me.

also, noticed that HACS says I am on V0.3.1, but debug shows V0.3.1-beta4. Not sure why??

2019-12-30 10:35:30 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-12-30 10:35:30 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for apple_tv which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-12-30 10:35:33 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for wyzesense which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-12-30 10:35:39 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for wyzeapi which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-12-30 10:35:39 DEBUG (SyncWorker_19) [custom_components.wyzeapi.light] 
-------------------------------------------------------------------
Wyze Bulb and Switch Home Assistant Integration

Version: v0.3.1-beta.4
This is a custom integration
If you have any issues with this you need to open an issue here:
https://github.com/JoshuaMulliken/ha-wyzeapi/issues
-------------------------------------------------------------------
2019-12-30 10:35:40 INFO (SyncWorker_19) [custom_components.wyzeapi.wyzeapi.wyzeapi_request] Recieved AccessTokenError attempting to regenerate the AccessToken
2019-12-30 10:35:41 ERROR (MainThread) [homeassistant.components.plex] Plex server (https://192-168-1-253.bdaf87b0920e4491bbf1c4f35f4dad8a.plex.direct:32400) could not be reached: [HTTPSConnectionPool(host='192-168-1-253.bdaf87b0920e4491bbf1c4f35f4dad8a.plex.direct', port=32400): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb1dde410>: Failed to establish a new connection: [Errno 113] Host is unreachable'))]
2019-12-30 10:35:41 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform wyzeapi
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/wyzeapi/light.py", line 58, in setup_platform
    add_entities(WyzeBulb(light) for light in wyze.list_bulbs())
  File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi.py", line 88, in list_bulbs
    for device in self.get_devices():
  File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi.py", line 80, in get_devices
    data = do_request(url, payload, self)
  File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi_request.py", line 36, in do_request
    return request_helper(url, payload, api)
  File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi_request.py", line 25, in request_helper
    api.initialize()
  File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi.py", line 26, in initialize
    updateConfig(self._device_id, self._access_token)
  File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi_config.py", line 18, in updateConfig
    config.add_section('auth')
  File "/usr/local/lib/python3.7/configparser.py", line 1205, in add_section
    super().add_section(section)
  File "/usr/local/lib/python3.7/configparser.py", line 658, in add_section
    raise DuplicateSectionError(section)
configparser.DuplicateSectionError: Section 'auth' already exists
2019-12-30 10:35:49 WARNING (MainThread) [homeassistant.setup] Setup of ring is taking over 10 seconds.
2019-12-30 10:35:58 ERROR (MainThread) [homeassistant.components.template.switch] Received invalid switch is_on state: . Expected: on, off, true, false
2019-12-30 10:36:05 WARNING (MainThread) [hacs] You have maykar/compact-custom-header installed with HACS this repository has been blacklisted, please consider removing it.
2019-12-30 10:39:56 WARNING (SyncWorker_6) [homeassistant.components.tplink.switch] Could not read state for 192.168.1.229: Communication error
2019-12-30 10:39:56 WARNING (SyncWorker_17) [homeassistant.components.tplink.switch] Could not read state for 192.168.1.244: Communication error
2019-12-30 10:39:56 WARNING (SyncWorker_9) [homeassistant.components.tplink.switch] Could not read state for 192.168.1.242: Communication error
2019-12-30 10:39:56 WARNING (SyncWorker_0) [homeassistant.components.tplink.switch] Could not read state for 192.168.1.248: Communication error

Lock not showing

I've just installed version 4.2 and have also tried the 4.3 beta and the wyze lock isn't showing up under devices or entities. I have the lock calibrated properly and it works well with the wyze app.

System configuration
I'm running hassio (HA supervised) on a VM running Ubuntu with docker. Other details below:

docker true
hassio true
host_os Ubuntu 18.04.4 LTS
installation_type Home Assistant Supervised
os_name Linux
os_version 5.3.0-53-generic
python_version 3.7.7
supervisor 224
timezone America/Chicago
version 0.110.3
virtualenv false
wyzeapi version: 4.2

Describe the bug
Nothing is showing up for the lock? I also have the sense unit running with this custom component
https://github.com/kevinvincent/ha-wyzesense. I have been using it for a year with motion sensors and door contacts without problems. I have the USB sense adapter connected to my server the VM is on. I also have wyze pan cams with the rtsp firmware and one of the Pan cams has a wyze sense plugged into the back of the camera. The cameras and lock are connected to my wyze account and the motions and door contacts just connect through HA. Do I need disable it and only use your api version alone or can they both run at the same time?
This is the config for the motions and door contacts:
binary_sensor:
- platform: wyzesense
device: "auto"
initial_state:
77793176: "on"
77793193: "off"

Expected behavior
Be able to see the status of the wyze lock.

configuration.yaml
wyzeapi:
username: wyze email
password: wyze password


**home-assistant.log**
logger:
  default: warning
  logs: 
      custom_components.wyzeapi: debug

Logs:
The only logs I see are warnings for bulbs and switches which I have neither?
Log Details (WARNING)
Logger: homeassistant.components.light
Source: components/light/__init__.py:451
Integration: Light (documentation, issues)
First occurred: 10:38:28 PM (1 occurrences)
Last logged: 10:38:28 PM

Light is deprecated, modify WyzeBulb to extend LightEntity

Log Details (WARNING)
Logger: homeassistant.components.switch
Source: components/switch/__init__.py:125
Integration: Switch (documentation, issues)
First occurred: 10:38:29 PM (1 occurrences)
Last logged: 10:38:29 PM

SwitchDevice is deprecated, modify WyzeSwitch to extend SwitchEntity

[Feature Request] Add Wyze Lock Support

I just got home from a trip and had a Wyze Lock waiting for me. Set it all up and realized that it's controllable just like a switch (on/off === locked/unlocked) and has an additional boolean property indicating if the door is open or not.

I've already started working on the integration and I have a barely working version that recognized my lock and puts it into home assistant. I'm also showing if the door is open or not in home assistant! Pretty cool! πŸ₯³

My biggest hurdle is constantly rebooting home assistant after i've made code changes... i keep having to delete the python caches as well. Is there an easier development workflow you could clue me in on @JoshuaMulliken? I'd greatly appreciate a little less pain in the dev process here.

I'll let you know when I've got something to share... hopefully next week.

Here's data I'm getting back when querying the wyze server for the gateway and lock:

[{
  "mac": "[My device's MAC]",
  "first_activation_ts": 1579122027000, # Unix timestamp for when i activated the lock: 01/16/2020 @ 8:12pm (UTC)
  "first_binding_ts": 1579122027000, # Same as above
  "enr": "", 
  "nickname": "Front Door",
  "timezone_name": "America/Denver",
  "product_model": "YD.LO1",
  "product_model_logo_url": "https://s3-us-west-2.amazonaws.com/wyze-file/system-logo/device/small/wyze_icon_lock.png",
  "product_type": "Lock",
  "hardware_ver": "0.0.0.0", # Interesting hardware version here
  "firmware_ver": "V 0.0.1",
  "user_role": 1,
  "binding_user_nickname": "[My email address]",
  "conn_state": 1,
  "conn_state_ts": 0,
  "push_switch": 1,
  "device_params": {
    "switch_state": 0,
    "open_close_state": 0
  },
  "is_in_auto": 0,
  "event_master_switch": 1,
  "parent_device_mac": "",
  "parent_device_enr": "",
  "binding_ts": 1579122027000,
  "timezone_gmt_offset": -7
},
{
  "mac": "[My device's MAC]",
  "first_activation_ts": 1576218777000,
  "first_binding_ts": 1576218777000,
  "enr": "",
  "nickname": "Lock Gateway",
  "timezone_name": "America/Denver",
  "product_model": "YD.GW1",
  "product_model_logo_url": "https://s3-us-west-2.amazonaws.com/wyze-file/system-logo/device/small/wyze_icon_gateway.png",
  "product_type": "GateWay",
  "hardware_ver": "0.0.0.0",
  "firmware_ver": "V 0.0.1",
  "user_role": 1,
  "binding_user_nickname": "[My email address]",
  "conn_state": 1,
  "conn_state_ts": 0,
  "push_switch": 1,
  "device_params": {},
  "is_in_auto": 0,
  "event_master_switch": 1,
  "parent_device_mac": "",
  "parent_device_enr": "",
  "binding_ts": 1579121447000,
  "timezone_gmt_offset": -7
}]

HACS shows wrong latest version

HACS continues to show 0.3.1-beta.4 as what I have installed, but v0.3.0 as the latest available. I'd like to be able to upgrade to v0.3.1.

wyze lock

Any updates on the wyze lock integration?

wyze lock

I just got the wyze lock and would love to integrate it to my HA... any updates on the progress?

Install not working

I'm new to HA.
I've installed the latest version of HA (hassio). In general everything seems to work regarding the devices I have that are officially supported, eg., wemo
However, when I attempt to install wysezpi, the instructions don't match the latest UI in regards to the repository.
I've attempted to do a manual install which I think is working - at least I'm seeing my wyze lights/switches..One thing to keep in mind: You must turn off two factor login for the Wyze app

so in short I am lost regarding the installation of custom repository
"Supervisor - Add on store" page.

[BUG] Dimming level missing from emulated_hue exposed lights in Alexa

Describe the bug
In HA, it’s possible to see and set dimming level in Lovelace but when exposing the light via emulated hue to Alexa the dimming ability is missing. The selection is no longer in the Alexa device page (new devices after installing this integration) whereas it was there when I exposed custom light entities that used IFTTT to talk to Wyze Bulbs.

To Reproduce
Steps to reproduce the behavior:

  1. Install via HACS
  2. Restart and populate HA with the new light entities
  3. Configure emulated_hue component to expose the light entities to Alexa
  4. Discover lights in Alexa
  5. Open the device settings page and only see the on/off button and temperature settings available.

Expected behavior
Dimming available in Alexa

System configuration
System: Hass.io in Proxmox VM
HA Version: v0.104.0
WyzeApi Version: v0.4.1

configuration.yaml

wyzeapi:
  wyze_username: !secret wyze_un
  wyze_password: !secret wyze_pw
emulated_hue:
  host_ip: 10.0.0.170
  listen_port: 80
  off_maps_to_on_domains:
    - script
    - scene
  expose_by_default: false
  entities:
    switch.game_room_plug_relay:
      name: "Game Room Plug"
      hidden: false
    switch.work_pc_plug_relay:
      name: "Work PC Plug New"
      hidden: false
    switch.nadia_mirror_relay:
      name: "Nadia's Mirror"
      hidden: false
    #light.dining_room:
      #name: "Dining Room"
      #hidden: false
    light.mud_room_light:
      name: "Mudroom Light"
      hidden: false
    switch.cpap_plug_relay:
      name: "CPAP Plug"
      hidden: false
    switch.mbr_tv_plug_relay:
      name: "Master Bedroom TV Plug"
      hidden: false
    light.jason_s_bed_light:
      name: "Jason's Bed Light"
      hidden: false
    light.living_room_bulb_1:
      name: "Living Room Bulb 1"
      hidden: false
    light.living_room_bulb_2:
      name: "Living Room Bulb 2"
      hidden: false
    light.nadia_s_bed_light:
      name: "Nadia's Bed Light"
      hidden: false
    light.penny_s_light:
      name: "Penny's Light"
      hidden: false
    light.kitchen_light:
      name: "Kitchen Light"
      hidden: false
    light.office_light:
      name: "Office Light"
      hidden: false

home-assistant.log

No logs of note related to this component

[Feature Request] Assign to areas

Is your feature request related to a problem? Please describe.
No problems, this is working as it should. Excellent work, by the way.

Describe the solution you'd like
I wondered if there is a way to assign the Wyze switches to an area?

AccessTokenError occurs after running for a couple of days

Describe the bug
After a few days of uptime, the plugin starts to throw an error and my switches don't respond to input. Here's the log:

Logger: custom_components.wyzeapi.wyzeapi.wyzeapi_request_manager
Source: custom_components/wyzeapi/wyzeapi/wyzeapi_request_manager.py:42
First occurred: March 29, 2020, 12:00:00 PM (13595 occurrences)
Last logged: March 29, 2020, 3:45:38 PM

AccessTokenError

To Reproduce
Steps to reproduce the behavior:
Configure configuration.yml with username and password, restart HA and wait a few days (?)

Expected behavior
the wyzeapi plugin should continue to work, as it does right after a restart.

System configuration
System: HassIO on a Pi 3b
HA Version: Home Assistant 0.107.5
WyzeApi Version: v0.4.2

configuration.yaml

wyzeapi:
  username: !secret wyze_username
  password: !secret wyze_password

with secrets

wyze_username: [email protected]
wyze_password: mycorrectpassword

home-assistant.log
I've added this debug option, I'll update with complete logs once I recreate the error with debug logs turned on

Error during startup -- Unable to find device type field!

Hi

Thank you for this HACS component. Finally found a way to control my Wyze bulbs using HA!

I am having an issue getting the component to work even after updating my configuration.yaml. When I check the logs, this is the error I see --> ' Unable to find the device type field!'

Pasting the relevant section of the log and the traceback over here.

Any suggestions as to what is happening?

2020-05-17 02:33:32 DEBUG (MainThread) [custom_components.wyzeapi] Creating new WyzeApi component
2020-05-17 02:33:32 ERROR (SyncWorker_0) [pyHS100.discover] Unable to find the device type field!
2020-05-17 02:33:37 ERROR (MainThread) [homeassistant.setup] Error during setup of component wyzeapi
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 171, in _async_setup_component
    hass, processed_config
  File "/config/custom_components/wyzeapi/__init__.py", line 39, in async_setup
    await wyzeapi_account.async_init()
  File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi.py", line 23, in async_init
    self._access_token = await self.async_login(self._user_name, self._password, self._device_id)
  File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi.py", line 47, in async_login
    data = await self.async_do_request(url, payload)
  File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi.py", line 113, in async_do_request
    return await WyzeRequest(url, payload).async_get_response()
  File "/config/custom_components/wyzeapi/wyzeapi/wyze_request.py", line 45, in async_get_response
    raise WyzeApiError("Payload: " + str(self._payload) + "\nResponse Data: " + str(data))

Unable to get wyzeapi setup[Bug]

Describe the bug
Error on setup of wyzeapi

To Reproduce
Steps to reproduce the behavior:

  1. Install repository from HACS
  2. Edit configuration.yaml file and save
  3. restart HASS
  4. Notification of error: Invalid config The following integrations and platforms could not be set up: wyzeapi Please check your config.

Expected behavior
Install and setup of wyzeapi - discovery of switches and lights

System configuration
System: Windows 10
HA Version: 0.110.2
WyzeApi Version: 0.4.2

configuration.yaml

wyzeapi:
  username: myusername
  password: mypassword

home-assistant.log

Log Details (ERROR)
Logger: homeassistant.setup
Source: c:\users\johnf_000\appdata\local\programs\python\python38\lib\site-packages\homeassistant\setup.py:181
First occurred: 12:57:46 PM (1 occurrences)
Last logged: 12:57:46 PM

Error during setup of component wyzeapi
Traceback (most recent call last):
  File "c:\users\johnf_000\appdata\local\programs\python\python38\lib\site-packages\homeassistant\setup.py", line 170, in _async_setup_component
    result = await component.async_setup(  # type: ignore
  File "C:\Users\johnf_000\AppData\Roaming\.homeassistant\custom_components\wyzeapi\__init__.py", line 46, in async_setup
    wyzeapi_devices = await wyzeapi_account.async_get_devices()
  File "C:\Users\johnf_000\AppData\Roaming\.homeassistant\custom_components\wyzeapi\wyzeapi\wyzeapi.py", line 69, in async_get_devices
    "ts": datetime.datetime.now().strftime("%s"),
ValueError: Invalid format string

[Feature Request] Support Wyze Cam(RTSP)

I just want to see what the response of those people following this repo on adding the Wyze Cam as switch. So my thought is from the app you can turn the camera on and off, way not add this function to HA, but before I go any further is it worth it.

I see this as being good, When i am home I can create or automation and have HA turn the cameras off and when i leave turn them back on.

image

I cannot change this to label:question

[Bug] Wye lock api not found error

** Wyze lock unlock/lock api errors **

<ClientResponse(https://beta-api.wyzecam.com/app/v2/auto/run_action) [404 Not Found]>

To Reproduce
Steps to reproduce the behavior:

  1. Enable debug logs
  2. Unlock the wyze lock
  3. Print 'resp' variable

Expected behavior
Unlock the lock

System configuration
System: Docker
HA Version: v0.112.3
WyzeApi Version: v0.5.0

configuration.yaml

wyzeapi:
  username: <email>
  password: <password>

logger:
  default: warning
  logs:
    custom_components.wyzeapi: debug

home-assistant.log

2020-07-07 09:02:03 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_request] <ClientResponse(https://beta-api.wyzecam.com/app/v2/auto/run_action) [404 Not Found]>
<CIMultiDictProxy('Content-Type': 'text/html; charset=us-ascii', 'Date': 'Tue, 07 Jul 2020 13:02:05 GMT', 'Server': 'Microsoft-HTTPAPI/2.0', 'Content-Length': '315', 'Connection': 'keep-alive')>

2020-07-07 09:02:03 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi.py", line 204, in async_do_request
    return await WyzeRequest(url, payload).async_get_response()
  File "/config/custom_components/wyzeapi/wyzeapi/wyze_request.py", line 47, in async_get_response
    data = await resp.json()
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 1031, in json
    headers=self.headers)
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=us-ascii', url='https://beta-api.wyzecam.com/app/v2/auto/run_action

[Feature Request] Two-Factor Authentication

Currently, as you stated in the README, this integration does not support two-factor authentication. Would use this integration if two factor was an option, but do not wish to lower the security of my Wyze system in order to make this work as it is currently written.

Wyzeapi configuration changed in v0.4.0

Joshua - The beta fix yesterday worked - but today the v0.4.0 fails with:

Log Details (ERROR)
Thu Jan 02 2020 11:51:05 GMT-0500 (Eastern Standard Time)
Invalid config for [light.wyzeapi]: [username] is an invalid option for [light.wyzeapi]. Check: light.wyzeapi->username. (See /config/light.yaml, line 0). Please check the docs at https://home-assistant.io/integrations/wyzeapi/

also the docs link listed in the error message comes back with a 404 error.

[Feature Request] Low battery status as attribute for lock

Is your feature request related to a problem? Please describe.

No.

Describe the solution you'd like

My lock currently has a low battery alert on the app that normally doesn't appear so I'm thinking it might be a good idea to add that to the attributes for the lock in HA so we can trigger against it, notifications, etc.

I can help by running calls and getting information as needed if someone thinks this is a good feature add.

WyzeApi failure when calling lock.lock service using lock.front_door device

Describe the bug

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Developer Tools'
  2. Click on 'Services.'
  3. Enter lock.lock for Service
  4. Enter lock.front_door for Service Data
  5. Press Call Service
  6. Lock does not lock
  7. See error in home-assistant.log

This error comes up using Service lock.unlock also.

When locking and unlocking the front_door lock normally via the Wyze app or automatic lock and unlock features, or manually locking and.unlocking, the lock status is reported correctly.

Expected behavior

The lock should lock or unlock and the state should reflect the change.
System configuration
System:
HA Version:
WyzeApi Version:

configuration.yaml

wyzeapi:
  username: !secret wyze_userid
  password: !secret wyze_password

home-assistant.log

2020-06-20 10:45:46 DEBUG (MainThread) [custom_components.wyzeapi.lock] Binary Locks doing a update.
2020-06-20 10:45:46 DEBUG (MainThread) [custom_components.wyzeapi.wyzeapi.wyze_lock] Lock Front Door updating.
2020-06-20 10:45:46 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/custom_components/wyzeapi/wyzeapi/wyzeapi.py", line 205, in async_do_request
    return await WyzeRequest(url, payload).async_get_response()
  File "/home/homeassistant/.homeassistant/custom_components/wyzeapi/wyzeapi/wyze_request.py", line 45, in async_get_response
    data = await resp.json()
  File "/usr/local/lib/python3.7/dist-packages/aiohttp/client_reqrep.py", line 1031, in json
    headers=self.headers)
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=us-ascii', url='https://beta-api.wyzecam.com/app/v2/auto/run_action

Edit: I found that this exception came from getting a 404 status from
url: https://beta-api.wyzecam.com/app/v2/auto/run_action

Send and receive correct CCT

Currently the CCT value is translated on a scale. Because mireds isn't linear it doesn't accuretly communicate the request CCT from HA to Wyze. I tinkered with the code and added the below that seems to work. I'm not a python coder so it might not be the best implementation.

This is to send to Wyze.

           if self._colortemp:
                if self._colortemp >= 370:
                    colortemp = 2700
                elif self._colortemp <= 153:
                    colortemp = 6500
                else:
                    colortemp = 1000000/self._colortemp
                    
                property_list.append({"pid": "P1502", "pvalue": colortemp})

This is to receive from Wyze.

                elif item['pid'] == "P1502":
                    self._colortemp = 1000000/int(item['value'])

This removes the translate from the calculation of the CCT.

Error while setting up platform wyzeapi

Installed via HACS, I did have this working via manual install and then switched to HACS version for ease of updating and now I'm receiving the following error.

Log Details (ERROR)
Mon Dec 30 2019 17:10:56 GMT-0600 (Central Standard Time)
Error while setting up platform wyzeapi
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/wyzeapi/light.py", line 58, in setup_platform
add_entities(WyzeBulb(light) for light in wyze.list_bulbs())
File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi.py", line 88, in list_bulbs
for device in self.get_devices():
File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi.py", line 80, in get_devices
data = do_request(url, payload, self)
File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi_request.py", line 36, in do_request
return request_helper(url, payload, api)
File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi_request.py", line 25, in request_helper
api.initialize()
File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi.py", line 26, in initialize
updateConfig(self._device_id, self._access_token)
File "/config/custom_components/wyzeapi/wyzeapi/wyzeapi_config.py", line 18, in updateConfig
config.add_section('auth')
File "/usr/local/lib/python3.7/configparser.py", line 1205, in add_section
super().add_section(section)
File "/usr/local/lib/python3.7/configparser.py", line 658, in add_section
raise DuplicateSectionError(section)
configparser.DuplicateSectionError: Section 'auth' already exists

Entity Not Available - Switch

Hi there. Thanks for doing the hard work getting the Wyze products into HA. I was able to get 2 Wyze switches working last week no problem. However, I needed to restart my system today for another reason and now I'm getting the dreaded "Entity Not Available" warning for the Wyze switches. I just upgraded to the latest version and it did not fix the issue. I also uninstalled and resinstalled the ha-wyzeapi and still got the same issue. Any suggestions? I'm assuming this is something on my end and not something weird like the wyze API changed...

[Feature Request] Additional code clarity and comments

It appears that there's a unique identifier hardcoded into the WyzeApi class that's being included in every payload that this code sends from every instance. Shouldn't something called device_id be something the user should configure?

https://github.com/JoshuaMulliken/ha-wyzeapi/blob/master/custom_components/wyzeapi/wyzeapi/wyzeapi.py#L17

Screen Shot 2020-01-01 at 2 16 32 PM

And then it's included in the payload for each API call:

https://github.com/JoshuaMulliken/ha-wyzeapi/blob/master/custom_components/wyzeapi/wyzeapi/wyzeapi.py#L37

Screen Shot 2020-01-01 at 2 17 02 PM


Additionally... i realize that there are some other parameters that you're sending that are basically "spoofing" the app, correct? What are some of these values? Perhaps documenting inline that they're "magic numbers" required to interact with the api?

I'm wondering if i sniffed my app network requests if I'd have the same values... or the same device_id that's being sent? πŸ€”

"sc":"9f275790cab94a72bd206c8876429f3c",
"ts":"1575953834054",
"sv":"9d74946e652647e9b6c9d59326aef104",

Thanks for the great work on this so far... I'm digging into the source code to see if i might be able to help in the future! I'm not a python guy, but this stuff piques my interest!

Repo not useable

Virtual Box VDI

System HassOS 3.13
Deployment production

Setup May 1, 2020

20-05-01 14:34:26 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository
20-05-01 14:34:26 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/JoshuaMulliken/ha-wyzebulb repository
20-05-01 14:34:26 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
20-05-01 14:34:27 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-05-01 14:34:27 ERROR (MainThread) [supervisor.utils.json] Can't read json from /data/addons/git/87977a50/repository.json: [Errno 2] No such file or directory: '/data/addons/git/87977a50/repository.json'
20-05-01 14:34:27 WARNING (MainThread) [supervisor.store.data] Can't read repository information from /data/addons/git/87977a50/repository.json
20-05-01 14:34:27 INFO (MainThread) [supervisor.store] Load add-ons from store: 65 all - 0 new - 0 remove

Invalid config when following example in README

When following the example in the README I get an error for both the switch and the lights.

Error log:

Invalid config for [light]: required key not provided @ data['platform']. Got None. (See /config/configuration.yaml, line 97). Please check the docs at https://home-assistant.io/integrations/light/

Invalid config for [light.wyzeapi]: required key not provided @ data['password']. Got None
required key not provided @ data['username']. Got None. (See /config/configuration.yaml, line 96). Please check the docs at https://home-assistant.io/integrations/wyzeapi/

Same thing for lights:

Invalid config for [switch]: required key not provided @ data['platform']. Got None. (See /config/configuration.yaml, line 102). Please check the docs at https://home-assistant.io/integrations/switch/

Invalid config for [switch.wyzeapi]: required key not provided @ data['password']. Got None
required key not provided @ data['username']. Got None. (See /config/configuration.yaml, line 101). Please check the docs at https://home-assistant.io/integrations/wyzeapi

Relevant snippet from configuration.yaml:

light:
  - platform: wyzeapi    
  - username: !secret wyze_username
  - password: !secret wyze_password

switch:
  - platform: wyzeapi    
  - username: !secret wyze_username
  - password: !secret wyze_password

I tried hard coding the username and password the same behavior exists.

I have HASS running in docker on a raspberry pi 4, and installed this through HACS.

Let me know if you need anything else from me.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.