Open jimboca opened 4 years ago
2020-12-25 19:34:12,859 [Controller] [ERROR] _parseInput: failed t411956665463.runCmd(GV9) 'dict' object has no attribute 'nodes'
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pgc_interface/pgc_interface.py", line 771, in _parseInput
self.nodes[input[key]['address']].runCmd(input[key])
File "/usr/local/lib/python3.7/site-packages/pgc_interface/pgc_interface.py", line 658, in runCmd
fun(self, command)
File "/app/nodeserver/nodes/Thermostat.py", line 620, in cmdSetDoWeather
if int(self.getDriver(cmd['cmd'])) == value:
File "/app/nodeserver/nodes/Thermostat.py", line 54, in getDriver
self.driver[driver] = super(Thermostat, self).getDriver(driver)
File "/usr/local/lib/python3.7/site-packages/pgc_interface/pgc_interface.py", line 664, in getDriver
return self.controller.polyConfig.nodes[self.address][dv].value or None
AttributeError: 'dict' object has no attribute 'nodes'
This seems to be a pgc python interface issue, it works on local but fails to get the driver value on pgc, so will wait for pg3.
If Nodeserver is added, the weather monitoring is turned off, it crashes:
Workaround is to restart so the driver is initialized, then it can be turned off.