question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

thermostat.py error after using the last version

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:16 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
jumping2000commented, Dec 26, 2018

Hi, I’m on holiday! I’ll test it after New Years Day. Bye

0reactions
jumping2000commented, Jan 7, 2019

@jumping2000 we can close that issue ?

Yes!! thank you P.S. with a friend we are testing a new “worker” to scan the BLE devices!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found