Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Wiz support #55

Open
guyluz11 opened this issue Jan 20, 2023 · 3 comments
Open

Add Wiz support #55

guyluz11 opened this issue Jan 20, 2023 · 3 comments
Labels
new vendor support Request for adding support to a specific Vendor Open API Vendors with open API Python knowledge Python knowledge may help

Comments

@guyluz11
Copy link
Member

guyluz11 commented Jan 20, 2023

Wiz is a smart home company.

Home assistance support Wiz devices locally and currently have 2.5% users using it.

WiZ_logo_RGB_WEB

@guyluz11 guyluz11 added the new vendor support Request for adding support to a specific Vendor label Jan 20, 2023
@guyluz11
Copy link
Member Author

guyluz11 commented Jan 23, 2023

The API is called Wiz pro

Here is a code example to control it that chatGPT created for me

import 'package:http/http.dart' as http;

void main() async {
    // Replace these values with the appropriate information for your bulb
    String bulbIP = "192.168.1.100";
    String bulbToken = "your_token";

    // Set the bulb's color to red
    var response = await http.put(
        "http://$bulbIP/api/v1/$bulbToken/lights/1/state",
       

And for getting the authentication token

Open the WiZ app and create an account, if you don't have one already.

Add the light bulb to your account by following the instructions in the app.

Once the bulb is added to your account, you will be able to see the bulb's access token in the app's settings or in the developer portal.

You can use this token in your dart code to authenticate with the bulb and send commands to it.

@guyluz11
Copy link
Member Author

guyluz11 commented Jan 28, 2023

This is the python package that home assistant uses to control Wize light bulbs https://pypi.org/project/pywizlight

Also it looks like some of Wize devices support Matter
https://www.wizconnected.com/en-us/explore-wiz/works-with#Do_all_WiZ_products_support_Matter

@guyluz11 guyluz11 added the Python knowledge Python knowledge may help label Jan 28, 2023
@guyluz11 guyluz11 added the Open API Vendors with open API label Apr 5, 2023
@guyluz11
Copy link
Member Author

guyluz11 commented Jan 2, 2024

Api documentation
https://docs.pro.wizconnected.com/#introduction

@guyluz11 guyluz11 transferred this issue from CyBear-Jinni/cbj_hub Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new vendor support Request for adding support to a specific Vendor Open API Vendors with open API Python knowledge Python knowledge may help
Projects
None yet
Development

No branches or pull requests

1 participant