moroen wrote: ↑Tuesday 05 March 2019 10:33
It looks like the adapter isn't running. Try running it from the command-line, to make sure that it starts and that the plugin can connect.
Regards,
M
Based on an issue someone else had, I already uninstalled and installed pytradfri.
But still the results from running the command "python3 tradfri.tac --dryrun" is an error:
Code: Select all
:0: UserWarning: You do not have a working installation of the service_identity module: 'No module named 'service_identity''. Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied. Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected.
IKEA-tradfri COAP-adaptor version 0.8.7 started (command line)!
Initializing gateway
Transitiontime: 10
Adding light with ID: 65540
Adding light with ID: 65538
Adding light with ID: 65542
Adding light with ID: 65543
Adding light with ID: 65544
Adding light with ID: 65537
{"status": "Ok", "result": [{"Type": "Light", "Dimmable": true, "HasWB": true, "Name": "Lamp Wouter boven", "DeviceID": 65537, "HasRGB": false}, {"Type": "Light", "Dimmable": true, "HasWB": true, "Name": "Lamp Wouter onder", "DeviceID": 65538, "HasRGB": false}, {"Type": "Light", "Dimmable": true, "HasWB": true, "Name": "Lamp Carin", "DeviceID": 65540, "HasRGB": false}, {"Type": "Light", "Dimmable": true, "HasWB": true, "Name": "Slaapkamer lamp1", "DeviceID": 65542, "HasRGB": false}, {"Type": "Light", "Dimmable": true, "HasWB": true, "Name": "Slaapkamer lamp2", "DeviceID": 65543, "HasRGB": false}, {"Type": "Light", "Dimmable": true, "HasWB": true, "Name": "Slaapkamer lamp3", "DeviceID": 65544, "HasRGB": false}], "action": "getLights"}
Announcing changed devices!
Failed to set state
Traceback (most recent call last):
File "tradfri.tac", line 580, in <module>
endpoints.serverFromString(reactor, "tcp:1234").listen(AdaptorFactory()).addErrback(error)
File "tradfri.tac", line 312, in __init__
self.setState(None, "65548", False)
File "tradfri.tac", line 547, in setState
client.transport.write(json.dumps(answer).encode(encoding='utf_8'))
AttributeError: 'NoneType' object has no attribute 'transport'