WiZ Connected scenes

Ger Determan ger.determan at xs4all.nl
Sat May 8 08:37:04 EDT 2021


James,

Running  'tell xUnit "rail 1 wiz-4" to sendSceneCommand("Party", 1, 100)' from the Command Line window fails with an error in the log (interface in debug mode):

08/05/2021 14:15:29.6323 in sendSceneCommand (Philips WiZ Connected)
08/05/2021 14:15:29.6383 converted brightness is: 255 raw: 100.0 (Philips WiZ Connected)
08/05/2021 14:15:29.6514 thisSceneValue=1 (Philips WiZ Connected)
08/05/2021 14:15:29.8307  Philips WiZ Connected: PilotBuilder speed=1
08/05/2021 14:15:30.1597 Philips WiZ Connected: error handling (DoScript) from XTension: ("Can't read response from the bulb. Debug:", {'method': 'setPilot', 'env': 'pro', 'error': {'code': -32602, 'message': 'Invalid params'}}) (Philips WiZ Connected)
08/05/2021 14:15:30.1604 Philips WiZ Connected: Traceback (most recent call last): (Philips WiZ Connected)
08/05/2021 14:15:30.1605   File "/Applications/XTension.app/Contents/Resources/python3/Resources/xtension_plugin/xtension_plugin.py", line 799, in threadedRead (Philips WiZ Connected)
08/05/2021 14:15:30.1606     workHandler( workCommand) (Philips WiZ Connected)
08/05/2021 14:15:30.1607   File "/Applications/XTension.app/Contents/Resources/python3/Resources/xtension_plugin/xtension_plugin.py", line 422, in event_runScriptCommand (Philips WiZ Connected)
08/05/2021 14:15:30.1608     workUnit._runScriptCommand( commandName, positionalParms, dataParms) (Philips WiZ Connected)
08/05/2021 14:15:30.1609   File "/Applications/XTension.app/Contents/Resources/python3/Resources/xtension_plugin/xtension_plugin.py", line 3123, in _runScriptCommand (Philips WiZ Connected)
08/05/2021 14:15:30.1609     handler( commandName, positionalParms, dataParms) (Philips WiZ Connected)
08/05/2021 14:15:30.1610   File "/Applications/XTension.app/Contents/Resources/Plugins/wiz.isf/wiz.py", line 419, in sendSceneCommand (Philips WiZ Connected)
08/05/2021 14:15:30.1610     asyncio.run( self.device.turn_on( PilotBuilder( scene=thisSceneId, speed=thisSceneValue, brightness=thisSceneBrightness))) (Philips WiZ Connected)
08/05/2021 14:15:30.1611   File "asyncio/runners.pyc", line 43, in run (Philips WiZ Connected)
08/05/2021 14:15:30.1611   File "asyncio/base_events.pyc", line 587, in run_until_complete (Philips WiZ Connected)
08/05/2021 14:15:30.1612   File "/Applications/XTension.app/Contents/Resources/Plugins/wiz.isf/pywizlight/bulb.py", line 302, in turn_on (Philips WiZ Connected)
08/05/2021 14:15:30.1612     await self.sendUDPMessage(pilot_builder.set_pilot_message()) (Philips WiZ Connected)
08/05/2021 14:15:30.1613   File "/Applications/XTension.app/Contents/Resources/Plugins/wiz.isf/pywizlight/bulb.py", line 460, in sendUDPMessage (Philips WiZ Connected)
08/05/2021 14:15:30.1613     raise ValueError("Can't read response from the bulb. Debug:", resp) (Philips WiZ Connected)
08/05/2021 14:15:30.1624 ValueError: ("Can't read response from the bulb. Debug:", {'method': 'setPilot', 'env': 'pro', 'error': {'code': -32602, 'message': 'Invalid params'}}) (Philips WiZ Connected)

Doing this from the unit interface gives

08/05/2021 14:28:59.1006 in sendSceneCommand (Philips WiZ Connected)
08/05/2021 14:28:59.1018 Philips WiZ Connected: error handling (DoScript) from XTension: object of type 'NoneType' has no len() (Philips WiZ Connected)
08/05/2021 14:28:59.1024 Philips WiZ Connected: Traceback (most recent call last): (Philips WiZ Connected)
08/05/2021 14:28:59.1024   File "/Applications/XTension.app/Contents/Resources/python3/Resources/xtension_plugin/xtension_plugin.py", line 799, in threadedRead (Philips WiZ Connected)
08/05/2021 14:28:59.1025     workHandler( workCommand) (Philips WiZ Connected)
08/05/2021 14:28:59.1025   File "/Applications/XTension.app/Contents/Resources/python3/Resources/xtension_plugin/xtension_plugin.py", line 422, in event_runScriptCommand (Philips WiZ Connected)
08/05/2021 14:28:59.1025     workUnit._runScriptCommand( commandName, positionalParms, dataParms) (Philips WiZ Connected)
08/05/2021 14:28:59.1026   File "/Applications/XTension.app/Contents/Resources/python3/Resources/xtension_plugin/xtension_plugin.py", line 3123, in _runScriptCommand (Philips WiZ Connected)
08/05/2021 14:28:59.1026     handler( commandName, positionalParms, dataParms) (Philips WiZ Connected)
08/05/2021 14:28:59.1027   File "/Applications/XTension.app/Contents/Resources/Plugins/wiz.isf/wiz.py", line 381, in sendSceneCommand (Philips WiZ Connected)
08/05/2021 14:28:59.1027     if len( positionalParams) == 0: (Philips WiZ Connected)
08/05/2021 14:28:59.1029 TypeError: object of type 'NoneType' has no len() (Philips WiZ Connected)


I'm running XTension build 1039 on MacOS 11.3.

ger

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20210508/5fcade17/attachment.html>


More information about the XTensionList mailing list