Powerview Plugin issue

Posted on
Sat Jun 06, 2020 3:23 pm
alang_94526 offline
Posts: 249
Joined: Apr 13, 2009

Powerview Plugin issue

I have installed Eric Hodel's V1.0.0 Powerview plugin but it doesn't seem to call the API in the hub from the "activateScene" command in powerview.py.
I see the correct scene ID from the debugLog statement in python.py but it seems the call is never made.

In Safari, I can issue the API scenes commands and they work fine.


When I start the plugin, I get the following errors. Not sure if these are relevant to this issue.
Jun 6, 2020 at 2:21:36 PM
Reloading plugin "PowerView 1.0.0"
Stopping plugin "PowerView 1.0.0" (pid 7922)
Stopped plugin "PowerView 1.0.0"
Starting plugin "PowerView 1.0.0" (pid 8072)
Started plugin "PowerView 1.0.0"
PowerView Debug Updating shade 192.168.0.26:48295
PowerView Error exception in deviceStartComm(Door): state value type must be bool, int, real, or string
PowerView Debug Updating shade 192.168.0.26:64316
PowerView Error exception in deviceStartComm(Master 1): state value type must be bool, int, real, or string
PowerView Debug Updating shade 192.168.0.26:43728
PowerView Error exception in deviceStartComm(Master 2): state value type must be bool, int, real, or string
PowerView Debug Updating shade
PowerView Debug Updating shade 192.168.0.26:15484
PowerView Error exception in deviceStartComm(No shade Connected To This): state value type must be bool, int, real, or string
PowerView Debug Updating shade 192.168.0.26:16881
PowerView Error exception in deviceStartComm(Shade 1): state value type must be bool, int, real, or string
PowerView Debug Updating shade 192.168.0.26:31651
PowerView Error exception in deviceStartComm(Shade 2): state value type must be bool, int, real, or string
PowerView Debug Updating shade 192.168.0.26:17365
Error device "Shade 3" state key signalStrength not defined (ignoring update request)
PowerView Error exception in deviceStartComm(Shade 3): state value type must be bool, int, real, or string
PowerView Debug Updating shade 192.168.0.26:62458
PowerView Error exception in deviceStartComm(Shade 4): state value type must be bool, int, real, or string
PowerView Debug Updating shade 192.168.0.26:9307
PowerView Error exception in deviceStartComm(Shade 5): state value type must be bool, int, real, or string
PowerView Debug Updating shade 192.168.0.26:44329
PowerView Error exception in deviceStartComm(Shade 6): state value type must be bool, int, real, or string


All the other setup/config features work as expected.

All shade functions work perfectly through the Powerview App and Siri

Alan

Posted on
Sat Jun 06, 2020 4:19 pm
alang_94526 offline
Posts: 249
Joined: Apr 13, 2009

Re: Powerview Plugin issue

Never Mind. I figured out the issue. There is a case sensitivity in the API for scene ID.
sceneid should be sceneId.


Instead of:
def activateScene(self, hubHostname, sceneId):
activateSceneUrl = \
'http://%s/api/scenes?sceneid=%s' % (hubHostname, sceneId)

self.__GET(activateSceneUrl)

It should be:
def activateScene(self, hubHostname, sceneId):
activateSceneUrl = \
'http://%s/api/scenes?sceneId=%s' % (hubHostname, sceneId)

self.__GET(activateSceneUrl)


Works now.
I'm guessing the SW changed somewhere in the hub

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest