Hello,
I have issues to get Mysensor working, is there any one of you that can see what I made wrong?
I decided to upgrade from 0.53.1 but failed so due to python upgrading
so I made a new 0.66.0 install and later upgraded to 0.67.0 but on both of the later installs I cannot get Mysensors running.
I do have a WiFi mysensors ver 2.0 gateway running, it currently works with the old HA installation as well as a domoticz installation.
I can ping the Mysensors gateway from HA 0.67.0 so it is reachble
I disconnected the old installation to test if the gateway could not support multiple session, but got same issue
my configuration.yaml looks like this:
mysensors:
gateways:
- device: ‘192.168.80.204’
persistence_file: ‘/config/mysensors1.pickle’
tcp_port: 5003
optimistic: false
persistence: true
retain: true
version: 2.0
commented are default so removed during testing.
the errors I get is:
Tue Apr 17 2018 18:44:30 GMT+0200 (CEST)
Error during setup of component mysensors
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/config_validation.py”, line 94, in isdevice
os.stat(value)
FileNotFoundError: [Errno 2] No such file or directory: ‘192.168.80.204’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/components/mysensors.py”, line 315, in setup_gateway
is_serial_port(device)
File “/usr/lib/python3.6/site-packages/homeassistant/components/mysensors.py”, line 120, in is_serial_port
return cv.isdevice(value)
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/config_validation.py”, line 97, in isdevice
raise vol.Invalid(‘No device at {} found’.format(value))
voluptuous.error.Invalid: No device at 192.168.80.204 found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/setup.py”, line 145, in _async_setup_component
component.setup, hass, processed_config)
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/lib/python3.6/site-packages/homeassistant/components/mysensors.py”, line 363, in setup
out_prefix)
File “/usr/lib/python3.6/site-packages/homeassistant/components/mysensors.py”, line 327, in setup_gateway
protocol_version=version, port=tcp_port)
File “/usr/lib/python3.6/site-packages/mysensors/gateway_tcp.py”, line 25, in init
persistence_file, protocol_version)
File “/usr/lib/python3.6/site-packages/mysensors/init.py”, line 65, in init
self._safe_load_sensors()
File “/usr/lib/python3.6/site-packages/mysensors/init.py”, line 275, in _safe_load_sensors
loaded = self._load_sensors()
File “/usr/lib/python3.6/site-packages/mysensors/init.py”, line 266, in _load_sensors
self._perform_file_action(path, ‘load’)
File “/usr/lib/python3.6/site-packages/mysensors/init.py”, line 300, in _perform_file_action
func(filename)
File “/usr/lib/python3.6/site-packages/mysensors/init.py”, line 223, in _load_pickle
self.sensors.update(pickle.load(file_handle))
_pickle.UnpicklingError: invalid load key, ‘{’.
Regards Stefan