Git Product home page Git Product logo

ha-wyzeapi's Introduction

Home Assistant - Wyze Bulb, Switch, Sensor and Lock Integration

This is a custom component to allow control of Wyze Bulbs, Switches, Sensors, and Locks in Home Assistant using the unofficial Wyze API. Please note this mimics the Wyze app and therefore Wyze may cut off access at anytime.

Highlights of what WyzeApi can do

  • Control Wyze Bulbs as lights through HA
  • Control Wyze Switches as switches through HA
  • View Wyze Sensors as binary_sensor through HA
  • View Wyze Lock Status and Door Status as lock through HA
    • Note: Currently you can only view the lock status or door status. Lock and Unlock does not work!

Potential Downsides

  • This is an unofficial implementation of the api and therefore may be disabled or broken at anytime by WyzeLabs
  • I only have light bulbs and no switches so they are not tested directly by me. An update may break them without my knowledge. Please use the betas as they become available if you have switches to help me find bugs prior to release
  • It requires two factor authentication to be disabled on your account

Support

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.

Buy Me A Coffee

Installation (HACS) - Highly Recommended

  1. Have HACS installed, this will allow you to easily update
  2. Add https://github.com/JoshuaMulliken/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

Installation (Manual)

  1. Download this repository as a ZIP (green button, top right) and unzip the archive
  2. Copy /custom_components/wyzeapi to your <config_dir>/ directory
    • On Hassio the final location will be /config/custom_components/wyzeapi
    • On Hassbian the final location will be /home/homeassistant/.homeassistant/custom_components/wyzeapi
  3. Restart HA

Configuration

Add the following to your configuration file. Note: This has changed recently. Check your configuration!

wyzeapi:
  username: <email for wyze>
  password: <password for wyze>

You can exclude any of the devices.

wyzeapi:
  username: <email for wyze>
  password: <password for wyze>
  sensors: false
  light: false
  switch: false
  lock: false

Usage

More information and Help

If you would like more information then please look at 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
  2. Restart HA
  3. Verify you're still having the issue
  4. File an issue in this Github Repository

ha-wyzeapi's People

Contributors

seckatie avatar jfarmer08 avatar markrickert avatar brianhanifin avatar quantum-cross avatar davidking4411 avatar davidlang42 avatar

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.