Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2021-08-18 16:48:14.270 | INFO | etrv2mqtt.cli:entrypoint:27 - /usr/local/bin/etrv2mqtt is starting
- 2021-08-18 16:48:14.272 | INFO | etrv2mqtt.devices:__init__:71 - Adding device bedroom MAC: 00:04:2f:94:95:5b key: ddfeffea1a31d7a677c1c139cce8e22c
- 2021-08-18 16:48:14.272 | DEBUG | etrv2mqtt.mqtt:__init__:31 - connecting to localhost:1883
- 2021-08-18 16:48:14.291 | INFO | etrv2mqtt.mqtt:_on_connect:49 - Connected to MQTT server
- 2021-08-18 16:48:16.275 | DEBUG | etrv2mqtt.devices:poll:39 - Polling data from bedroom
- 2021-08-18 16:48:16.275 | DEBUG | libetrv.device:connect:54 - Trying connect to 00:04:2f:94:95:5b
- 2021-08-18 16:48:23.206 | ERROR | libetrv.device:connect:68 - Unable connect to 00:04:2f:94:95:5b. Retrying in 100ms
- 2021-08-18 16:48:35.047 | DEBUG | libetrv.device:send_pin:87 - Write PIN to 00:04:2f:94:95:5b
- 2021-08-18 16:48:35.245 | ERROR | __main__:<module>:8 - An error has been caught in function '<module>', process 'MainProcess' (7), thread 'MainThread' (139827098076992):
- Traceback (most recent call last):
- > File "/usr/local/bin/etrv2mqtt", line 8, in <module>
- sys.exit(entrypoint())
- │ │ └ <function entrypoint at 0x7f2c073ceca0>
- │ └ <built-in function exit>
- └ <module 'sys' (built-in)>
- File "/usr/local/lib/python3.8/site-packages/etrv2mqtt/cli.py", line 28, in entrypoint
- main(sys.argv[1])
- │ │ └ ['/usr/local/bin/etrv2mqtt', '/data/options.json']
- │ └ <module 'sys' (built-in)>
- └ <function main at 0x7f2c086044c0>
- File "/usr/local/lib/python3.8/site-packages/etrv2mqtt/cli.py", line 17, in main
- deviceManager.poll_forever()
- │ └ <function DeviceManager.poll_forever at 0x7f2c07113d30>
- └ <etrv2mqtt.devices.DeviceManager object at 0x7f2c0742bcd0>
- File "/usr/local/lib/python3.8/site-packages/etrv2mqtt/devices.py", line 94, in poll_forever
- schedule.run_all(delay_seconds=1)
- │ └ <function run_all at 0x7f2c07113550>
- └ <module 'schedule' from '/usr/local/lib/python3.8/site-packages/schedule/__init__.py'>
- File "/usr/local/lib/python3.8/site-packages/schedule/__init__.py", line 787, in run_all
- default_scheduler.run_all(delay_seconds=delay_seconds)
- │ │ └ 1
- │ └ <function Scheduler.run_all at 0x7f2c070fee50>
- └ <schedule.Scheduler object at 0x7f2c07109a30>
- File "/usr/local/lib/python3.8/site-packages/schedule/__init__.py", line 118, in run_all
- self._run_job(job)
- │ │ └ Every 3600 seconds do _poll_devices() (last run: [never], next run: 2021-08-18 17:48:14)
- │ └ <function Scheduler._run_job at 0x7f2c07111160>
- └ <schedule.Scheduler object at 0x7f2c07109a30>
- File "/usr/local/lib/python3.8/site-packages/schedule/__init__.py", line 172, in _run_job
- ret = job.run()
- │ └ <function Job.run at 0x7f2c07113280>
- └ Every 3600 seconds do _poll_devices() (last run: [never], next run: 2021-08-18 17:48:14)
- File "/usr/local/lib/python3.8/site-packages/schedule/__init__.py", line 661, in run
- ret = self.job_func()
- │ └ functools.partial(<bound method DeviceManager._poll_devices of <etrv2mqtt.devices.DeviceManager object at 0x7f2c0742bcd0>>)
- └ Every 3600 seconds do _poll_devices() (last run: [never], next run: 2021-08-18 17:48:14)
- File "/usr/local/lib/python3.8/site-packages/etrv2mqtt/devices.py", line 82, in _poll_devices
- device.poll(self._mqtt)
- │ │ │ └ <etrv2mqtt.mqtt.Mqtt object at 0x7f2c07118190>
- │ │ └ <etrv2mqtt.devices.DeviceManager object at 0x7f2c0742bcd0>
- │ └ <function TRVDevice.poll at 0x7f2c07113af0>
- └ <etrv2mqtt.devices.TRVDevice object at 0x7f2c073f95e0>
- File "/usr/local/lib/python3.8/site-packages/etrv2mqtt/devices.py", line 44, in poll
- ret = eTRVUtils.read_device(self._device)
- │ │ │ └ <libetrv.device.eTRVDevice object at 0x7f2c086674c0>
- │ │ └ <etrv2mqtt.devices.TRVDevice object at 0x7f2c073f95e0>
- │ └ <staticmethod object at 0x7f2c073923d0>
- └ <class 'etrv2mqtt.etrvutils.eTRVUtils'>
- File "/usr/local/lib/python3.8/site-packages/etrv2mqtt/etrvutils.py", line 34, in read_device
- return eTRVData(device.name, device.battery, device.temperature.room_temperature, device.temperature.set_point_temperature, datetime.now())
- │ │ │ │ │ │ │ │ │ │ └ <method 'now' of 'datetime.datetime' objects>
- │ │ │ │ │ │ │ │ │ └ <class 'datetime.datetime'>
- │ │ │ │ │ │ │ │ └ <libetrv.properties.eTRVProperty object at 0x7f2c07392af0>
- │ │ │ │ │ │ │ └ <libetrv.device.eTRVDevice object at 0x7f2c086674c0>
- │ │ │ │ │ │ └ <libetrv.properties.eTRVProperty object at 0x7f2c07392af0>
- │ │ │ │ │ └ <libetrv.device.eTRVDevice object at 0x7f2c086674c0>
- │ │ │ │ └ <libetrv.properties.eTRVProperty object at 0x7f2c07392a60>
- │ │ │ └ <libetrv.device.eTRVDevice object at 0x7f2c086674c0>
- │ │ └ <libetrv.properties.eTRVProperty object at 0x7f2c07392c40>
- │ └ <libetrv.device.eTRVDevice object at 0x7f2c086674c0>
- └ <class 'etrv2mqtt.etrvutils.eTRVData'>
- File "/usr/local/lib/python3.8/site-packages/libetrv/properties.py", line 22, in __get__
- return self.get_data_object(device).retrieve()
- │ │ └ <libetrv.device.eTRVDevice object at 0x7f2c086674c0>
- │ └ <function eTRVProperty.get_data_object at 0x7f2c073b40d0>
- └ <libetrv.properties.eTRVProperty object at 0x7f2c07392c40>
- File "/usr/local/lib/python3.8/site-packages/libetrv/properties.py", line 61, in retrieve
- return self.retrieve_object(self.device)
- │ │ │ └ <libetrv.device.eTRVDevice object at 0x7f2c086674c0>
- │ │ └ <libetrv.data_struct.NameData object at 0x7f2c068b7430>
- │ └ <function eTRVSingleData.retrieve_object at 0x7f2c073b4940>
- └ <libetrv.data_struct.NameData object at 0x7f2c068b7430>
- File "/usr/local/lib/python3.8/site-packages/libetrv/properties.py", line 129, in retrieve_object
- return getattr(self, self.get_direct_field())
- │ │ └ <function eTRVSingleData.get_direct_field at 0x7f2c073b48b0>
- │ └ <libetrv.data_struct.NameData object at 0x7f2c068b7430>
- └ <libetrv.data_struct.NameData object at 0x7f2c068b7430>
- File "/usr/local/lib/python3.8/site-packages/libetrv/fields/base.py", line 22, in __get__
- return self.from_raw_value(raw_value, data)
- │ │ │ └ <libetrv.data_struct.NameData object at 0x7f2c068b7430>
- │ │ └ b'sovev\xc3\xa6relse\x00\x00\x00\x00'
- │ └ <function TextField.from_raw_value at 0x7f2c073b0790>
- └ <libetrv.fields.string.TextField object at 0x7f2c073b1e80>
- File "/usr/local/lib/python3.8/site-packages/libetrv/fields/string.py", line 18, in from_raw_value
- return raw_value.decode('ascii').strip('\0')
- │ └ <method 'decode' of 'bytes' objects>
- └ b'sovev\xc3\xa6relse\x00\x00\x00\x00'
- UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement