When Domtoicz is running the script I get the error meessage:
Code: Select all
2020-09-25 10:35:22.544 Error: Error executing script command (/home/pi/domoticz/scripts/python/SonosSwitchOff.py). returned: 256If this is the case, how can I force Domoticz to use Python 3 when executing this script?
Any suggestions on how to fix this?
Soco Python 2 error message:
Code: Select all
SonosSwitchOff.py:4: UserWarning: Version 0.19 of SoCo is the last to support Python 2.7
import soco
/home/pi/.local/lib/python2.7/site-packages/soco/services.py:693: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
value_list_elt = state.find('{}allowedValueList'.format(ns))\