GithubHelp home page GithubHelp logo

sbidy / wiz_light Goto Github PK

View Code? Open in Web Editor NEW
341.0 39.0 68.0 724 KB

A WiZ Light integration for Home Assistant

License: MIT License

Python 100.00%
hacktoberfest bulbs wiz-plug home-assistant wiz-light

wiz_light's Introduction

Wiz Light Bulb HASS integration

Lint Pylint

Check out my latest post in the "Dev.-Blog"!!

Click!!!

Thank you to all sponsors and supporter!

Link to the official Home Assistant integration page

This project/repo was merged into the HASS core --> Link to integration

This repo will be archived. No future updates are committed here.

๐Ÿ’ช Change Log

It is done - the PR to HASS core was merged! @bdraco does a tone of improvements and contributes some incredible fixes to the integration. BUT all changes are made directly to the HASS PR. In the next release (2022.3) of HASS the WiZ integration will be natively integrated and can be used without HACS or custom_components. The auto-discovery and timeout handling was also improved massively. Sockets/Smart Plugs now detected correctly too.

Please stay tuned and look for the next release 2022.3. Don't use HACS or the custom_component anymore. You have only search in the integration list for "WiZ".

This repository will not be updated and downstreamed from the HASS release for now.

Thank you to all testers, sponsors, contributors and issue submitter. ๐Ÿš€ You are great!

What is declined or rejected:

  • Change of the speed of the transition from on to off and off->on. This is not supported via the UDP API and can only be configured via WiZ App.
  • The Motion Sensor is not integrated
  • Color saturation is not supported by HASS

โ„น๏ธ Development Log

Here you can find some news and updates!! I try to create a kind of Development Log to trace changes/decisions and made the current overall development status transparent to you!!

โš ๏ธ Discussions

If you have questions or other comments please use the new Discussions Board.

๐Ÿ“” DNS / IP Address Tip

If you are using DHCP IP address features and looking for avoiding static IPs for the bulb, you can use the DNS names. To avoid the mess with the IPs you can use the Hostnames of the bulbs. The hostname will be created from the last 6 digest of the MAC and the wiz_ prefix. Example: wiz_123123 or wiz_123ABC . So you can have dynamic IPs, but this hostname will not change. The MAC address you can find in your router or via nc. One of the next versions of this integration will show the MAC in the "Device Properties" tab. Overall, your DNS resolution should work ๐Ÿ˜‰.

If you run into DNS issues, please add a "." at the end of the bulb dns name. Example wiz_123452..

๐Ÿ”„ Test Connction

To test the connection between the bulb and your Wi-Fi router, you can use the RSSI value. You can test the RSSI with this command: echo '{"method":"getPilot","env":"pro","params":{}}' | nc -u -w 1 <AddressOfYourBulb> 38899. If the RSSI value is close to -100 the signal is not that good. Everything between -70 and 0 should be fine.

๐Ÿ’™ Kudos and contributions

Thank you @angadsingh for making such incredible improvements!

Thanks to @simora for creating a HA Switch <-> WiZ Plug integration!

Thanks to @jarpatus for the feedback and enhancements!

Thanks to @ChrisLizon for the review, feedbacks and improvements!

Thanks to @brettonw for improving the RGB-CW to HU tranistion!

Thanks to @vodovozovge for the "insider support" for the community!

๐Ÿ›ซ Dependencies

This component has a dependency on pywizlight which will be installed automatically by Home Assistant.

โšก Misc

Bulb Type Definition

e.g. ESP01_SHDW1C_31
ESP01 -- defines the module family (WiFi only bulb in this case)
SH -- Single Head light (most bulbs are single heads) / LED Strip
TW -- Tunable White - can only control CCT and dimming; no color
DW -- Dimmable White (most filament bulbs)
RGB -- Fullstack bulb
1C -- Specific to the hardware - defines PWM frequency + way of controlling CCT temperature
31 -- Related to the hardware revision

Pull request in HA core

home-assistant/core#44779

Installation via HACS (Home Assistant Community Store)

Hacs Installtion

Hacs and Bulb Installation

Install for testing

  1. Logon to your HA or HASS with SSH

  2. Go to the HA 'custom_components' directory within the HA installation path (The directory is in the folder where the 'configuration.yaml' file is located. If this is not available - create this directory).

  3. Run cd custom_components

  4. Run git clone https://github.com/sbidy/wiz_light within the custom_components directory

  5. Run mv wiz_light/custom_components/wiz_light/* wiz_light/ to move the files in the correct diretory

  6. Restart your HA/HASS service in the UI with <your-URL>/config/server_control

  7. Add the bulbs either by: HA UI by navigating to "Integrations" -> "Add Integration" -> "WiZ Light" (If it is not available, clear your web browser cache to renew the integrations list.)

Questions? Check out the github project pywizlight

Enable Debug

logger:
    default: warning
    logs:
      homeassistant.components.wiz_light: debug

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.