Tạo User ID và tìm ID bóng đèn - Hue Bridge - Savant Integration.
Last updated
Last updated
Tìm địa chỉ IP và S/N của Hue Bridge
Sử dụng Web Browser và tới địa chỉ:
https://discovery.meethue.com
Nhấn nút link trên Hue Bridge và khởi tạo địa chỉ thông qua CLIP Command:
https://<hue bridge ip>/debug/clip.html
URL: /api
BODY: {"devicetype":"my_hue_app#username"}
Method: POST
https://<bridge ip address>/api/<api username >/lights
Method: GET
Kết quả sẽ hiện thị lên theo định dạng:
Nhập vào giá trị User name ID đã tạo ở trên.
Sử dụng ID bóng đèn đã tìm thấy ở trên và nhập vào cột "Address 1" trong Lighting Data Table
Lưu ý: Lựa chọn các thiết lập "Entity" phù hợp với từng bóng đèn.
NOTE: This profile REQUIRES daVinci software release 9.2 or higher.
To find Bulb Address:
First Generation Hub (round hub):
1) Use Philip Hue app.
2) Make sure this app connects to Hue hub and all the bulbs already added to the hub.
3) Go to Settings -> About.
4) You will see a list of devices with its own number next to the device's name. The number is for bulb ID.
All Generation Hubs:
1) Upload config to host with Philip Hue profile.
2) Go to System monitor.
3) Click on System State tab.
4) Search for "BulbName_"
5) The ID value should be in '*' where BulbName_*. For example, you might find BulbName_3, BulbName_4, BulbName_9.
6) Put the ID value in lighting data table in Address 1 for single bulb entities.
To find Group Address:
1) Upload config to host with Philip Hue profile.
2) Go to System monitor.
3) Click on System State tab.
4) Search for "GroupName_"
5) The ID value should be in '*' where GroupName_*. For example, you might find GroupName_5, GroupName_13, GroupName_27.
6) Put the ID value in lighting data table in Address 1 for group entities.
To initially sync the hub with our system:
- Create a RegisterDevice custom workflow using the RegisterDevice custom action within the profile.
- Save and upload.
- After upload is complete press the Link button on the Hue Hub, and then send the RegisterDevice command from our system via Service Events within system monitor.
- Once registration is complete and control is confirmed please search for UserName in "System State" within system monitor.
- Copy the UserName state that is provided for this device from "System State" and paste in TextEdit.app (this is because it copies a plist not the actual state)
- Now copy the string value and paste that into State Variable -> "user_name"; while inspecting the profile in Blueprint.
- Re-upload. This should keep Savant and Hue connected after reboot.
Note:
- Adding "Group Color Temperature entity" will require extra process in the lighting data table.
1) In Blueprint, click on "Racepoint Blueprint" to drop down list and select "Preference...".
2) Click on "Building" tab.
3) Make sure the checkbox "Allow profile specific custom actions and resource actions" is checked.
4) Go to Lighting Data table.
5) Add "Group Color Temperature" entity. The command option will be blank.
6) Click on "Done" and then Generate Service.
7) Go back to Lighting Data table.
8) On the command list, select "SetGroupColorTemp_<component name>_Lighting_controller_ENV_LIGHTINGCONTROLLER_SOURCE".
9) Warning: if you change the component name then the command will become blank. You will need to re-assign the command again.
- Please note that you will need two entities when controlling RGB lights; one for the RGB control and another for Brightness.