mr-manuel / venus-os_dbus-mqtt-temperature

This Venus OS driver gets the data from MQTT and displays it as temperature sensor.
MIT License
9 stars 0 forks source link

argument of type <int/float> is not iterable #2

Open thomahawk72 opened 4 days ago

thomahawk72 commented 4 days ago

Venus OS: V3.51 Pi4 Sensor: ESP32 and INA219 for testing purposes

I followed the install sequence as written. The service is running ok, as it seems. My sensor is publishing mtqq to Venus OS broker and I can successfully see messages coming in using Mqtt Explorer.

image

Setting logging level to DEBUG gives me: image

In Venus GUI I cannot see any sensors - either in the settings or in the overview. What am I missing?

mr-manuel commented 4 days ago

Please try the nightly version. It will be released shortly as stable.

keeskode commented 4 days ago

I have the same error even on the nightly version:

2024-11-19 21:07:20.804738500 INFO:root:Waiting 5 seconds for receiving first data...
2024-11-19 21:07:21.594367500 ERROR:root:Received message is not valid. Check the README and sample payload. argument of type 'float' is not iterable
2024-11-19 21:07:21.595132500 DEBUG:root:MQTT payload: '13.600000381469727'
2024-11-19 21:07:21.597506500 ERROR:root:Received message is not valid. Check the README and sample payload. argument of type 'float' is not iterable
2024-11-19 21:07:21.598193500 DEBUG:root:MQTT payload: '13.600000381469727'
2024-11-19 21:07:22.081899500 ERROR:root:Received message is not valid. Check the README and sample payload. argument of type 'float' is not iterable
2024-11-19 21:07:22.082882500 DEBUG:root:MQTT payload: '13.609999656677246'
2024-11-19 21:07:22.097212500 ERROR:root:Received message is not valid. Check the README and sample payload. argument of type 'float' is not iterable
2024-11-19 21:07:22.097223500 DEBUG:root:MQTT payload: '13.609999656677246'
^C

The service seems to restart though as well every 60-80 seconds

keeskode commented 4 days ago

When trying just with payload 12 it also doesn't work, now no 'float' error but 'int' error

2024-11-19 21:19:01.758736500 INFO:root:Waiting 5 seconds for receiving first data...
2024-11-19 21:19:06.762087500 INFO:root:Waiting 5 seconds for receiving first data...
2024-11-19 21:19:09.958013500 ERROR:root:Received message is not valid. Check the README and sample payload. argument of type 'int' is not iterable
2024-11-19 21:19:09.959692500 DEBUG:root:MQTT payload: '12'
mr-manuel commented 4 days ago

Did you reboot once, just to be sure?

keeskode commented 4 days ago

Yes I did, did it twice now. Doesn't help.