thermostat.py error after using the last version
See original GitHub issueI have a lot of error on thermostat.py module after the last modification in the repository:
on command wrapper for with thermostat/salotto1/target_temperature/set: b'16.0'
not enough values to unpack (expected 4, got 3)
Traceback (most recent call last):
File "./gateway.py", line 37, in <module>
mqtt.publish(_WORKERS_QUEUE.get(block=True).execute())
File "/home/dietpi/bt-mqtt-gateway/workers_manager.py", line 26, in execute
messages = self._callback(*self._args)
File "/home/dietpi/bt-mqtt-gateway/workers/thermostat.py", line 75, in on_command
_, device_name, method, _ = topic[len(self.topic_prefix+"/"):].split('/')
ValueError: not enough values to unpack (expected 4, got 3)
not enough values to unpack (expected 4, got 3)
Traceback (most recent call last):
File "./gateway.py", line 37, in <module>
mqtt.publish(_WORKERS_QUEUE.get(block=True).execute())
File "/home/dietpi/bt-mqtt-gateway/workers_manager.py", line 26, in execute
messages = self._callback(*self._args)
File "/home/dietpi/bt-mqtt-gateway/workers/thermostat.py", line 75, in on_command
_, device_name, method, _ = topic[len(self.topic_prefix+"/"):].split('/')
ValueError: not enough values to unpack (expected 4, got 3)
on command wrapper for with thermostat/salotto2/target_temperature/set: b'16.0'
not enough values to unpack (expected 4, got 3)
Traceback (most recent call last):
File "./gateway.py", line 37, in <module>
mqtt.publish(_WORKERS_QUEUE.get(block=True).execute())
File "/home/dietpi/bt-mqtt-gateway/workers_manager.py", line 26, in execute
messages = self._callback(*self._args)
File "/home/dietpi/bt-mqtt-gateway/workers/thermostat.py", line 75, in on_command
_, device_name, method, _ = topic[len(self.topic_prefix+"/"):].split('/')
ValueError: not enough values to unpack (expected 4, got 3)
not enough values to unpack (expected 4, got 3)
Traceback (most recent call last):
File "./gateway.py", line 37, in <module>
mqtt.publish(_WORKERS_QUEUE.get(block=True).execute())
File "/home/dietpi/bt-mqtt-gateway/workers_manager.py", line 26, in execute
messages = self._callback(*self._args)
File "/home/dietpi/bt-mqtt-gateway/workers/thermostat.py", line 75, in on_command
_, device_name, method, _ = topic[len(self.topic_prefix+"/"):].split('/')
ValueError: not enough values to unpack (expected 4, got 3)
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (14 by maintainers)
Top Results From Across the Web
thermostat unavailable after update · Issue #76040 - GitHub
The problem After update to beta channel first one then after a reboot both thermostats unavailable. I believe this update also brought the ......
Read more >Proliphix Thermostat Error - Home Assistant Community
I think this indicates that it either was not able to connect to the thermostat, or it was not able to get a...
Read more >Quickstart — thermostat 1.7.3 documentation - Read the Docs
Check to make sure you are on the most recent version of the package. >>> import thermostat; thermostat.
Read more >ecobee api returning response 500: {'status': {'code'
When I've had this problem before it was because I had not requested the correct scope when authorizing the app. So double-check you...
Read more >Troubleshoot a TD003, TD004, TD009, TD018, TD023, TD027 ...
To fix this error, use the thermostat screen to continue setup. ... The TD004 error can occur when your thermostat goes to sleep...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi, I’m on holiday! I’ll test it after New Years Day. Bye
Yes!! thank you P.S. with a friend we are testing a new “worker” to scan the BLE devices!