@bujvary Working like magic -- thank you
Hunter Douglas Powerview v2.5.0 is available via HPM
Changes in the PowerView app:
- Added option to control forced refresh polling
- Added option for shade position polling interval
- Added option for battery level polling interval
- Changed option disablePoll to enableShadePoll for consistency
- Modified formatting of app pages
Changes in the repeater device:
- Removed LED color preference and replaced with setColor command
What is the precise JSON command for changing Repeater color and brightness? I don't see it documented on the Hunter Douglas API pdf and I couldn't figure it out looking at your code.
I assume it is a PUT command and request path is repeater\id but cant get the request body correct.
I am using http commands directly with my home automation setup and not using Hubitat.
Thanks for your help.
It's a PUT to /api/repeaters/[id] and the JSON would look like this:
{
"repeater" : {
"color" : {
"blue" : 155,
"brightness" : 50,
"green" : 107,
"red" : 12
}
}
Perfect. Thanks!
The code works well. However after a few days I had one of my repeaters that stopped responding to the JSON call and is stuck on green.
I was wondering if there is a way to send a refresh command to the repeaters, like we can with shades (/api/shades/[shade ID]?refresh=true. I tried /api/repeaters/[repeater ID]?refresh=true, but no luck.
Otherwise I have to power cycle the repeater by unplugging it and plugging it back in.
There is not a refresh option for repeaters.
Thanks that is what I figured.
Another question....
Is there any way to use the api to access the shade positions set for scenes? For example, say I have a scene that has two shades. One scene is called open. Can I access the shade positions for the scene called open? I am guessing this info is stored in the shade itself and not in the hub and not api accessable, but Im hoping there is a way to gather this info.
@user220 you mean determine what the shade position setting is for that scene as opposed to where the shade is after the scene is run?
The latter you can get as the shade reports itself back, but I dont think you can pre-determine what the level is set for of the scene
Another question: Is it possible to access information on secondary hubs? I have two secondary hubs in my system. When I query their IP addresses, no go. Not seeing them when I access the primary hub data.
Not that I'm aware of but I only have one hub so I have no way of testing that.
What information are you looking for? I don’t see much interesting in the app so I’m curious what your use case is.
@bujvary I have secondary hubs and can help provide data and test if it’s useful. I see HD doesn’t seem to include this feature in the API document.
The endpoint to obtain info is /api/sec_hubs/
and it returns a list of the secondary hubs like this
{
"secondaryHubData" : [
{
"serialNumber" : "1F386A8CD9C83479",
"status" : 1,
"color" : {
"red" : 0,
"brightness" : 15,
"blue" : 0,
"green" : 60
},
"id" : 63057,
"firmwareVersion" : "2.0.1056",
"lastStatusUpdate" : "Sun Mar 06 2022 08:37:29 GMT+0000 (UTC)",
"ip" : "192.168.86.93",
"name" : "U2Vjb25kYXJ5IEh1YiAx"
},
{
"serialNumber" : "BF677AA2A72B22A3",
"status" : 1,
"color" : {
"red" : 0,
"brightness" : 5,
"blue" : 0,
"green" : 60
},
"id" : 62549,
"firmwareVersion" : "2.0.1056",
"lastStatusUpdate" : "Sun Mar 06 2022 21:09:53 GMT+0000 (UTC)",
"ip" : "192.168.86.148",
"name" : "U2Vjb25kYXJ5IEh1YiAy"
}
],
"secondaryHubIds" : [
63057,
62549
]
}
I didn’t test the commands at length but a quick look seems to indicate they are /api/sec_hubs/<hub id>?<command string>
. If you want the command strings let me know.
Thanks that is helpful.
I have a custom webpage that shows hubs (and shades and repeaters) and I want to update the hub icons for online/offline. I have a button on the page to restart the hubs if needed, so this will show when they come back online.
I also want to change the colors for certain events.
This should work.
I assume status
is online (1) or offline (0) but I haven't confirmed that. I don't see any option in the powerview app to change the colors, just the brightness. If you want to change the brightness, it's a PUT
to /api/sec_hubs/<hub id>
where the body contains the same object returned from the GET
(that I posted above) but with the brightness value set to whatever you want. Perhaps it'll respond to colors that way too but I'm not sure.
Good luck
It looks like setting the battery interval to 24 is causing the following error.
2022-03-26 07:26:29.658 am [error] java.lang.NullPointerException: Cannot invoke method toFloat() on null object on line 253 (method handleEvent)
Go into each of your shade devices and make sure a Maximum Voltage value is set in Preferences then click "Save Preferences". That should fix it.
That worked. Thanks
Hope I have the correct topic. I have Hunter Douglas Top Down/Bottom Up shades. It seams that when I connect them into my Hubitat and wait for more than 10 hours that shades seam to go to sleep and stop responding to the remote control, the PowerView app and Hubitat. I have to try multiple times to move them in different directions to finally get them to work. Has any one seen this issue ore have any idea as to how i can address it.
I am running a
Hubitat C7 with Latest software
App in Habitat is Hunter Douglas PowerView v2.5.0 (app)
PowerView App 3.0.6
Thank you for any help you can provide.
I have not had that issue with my PowerView hub so I'm unable to help.
Hi, my name is Kurt and I am from Sweden have just started up my Hubitat C7 hub. I have no programming experience but have managed to install several devices and done some automation. Now I will install curtains and blinds with PowerView system. Is there any easy way for me to get an app for this in Hubitat so that I control everything from there. Would be incredibly grateful if you could instruct me in this, Please Kurt