Gruß Lars
Code: Alles auswählen
UnboundLocalError: local variable 'keyword' referenced before assignment
elif (("/" in keyword) or (int(devicenumb) < 1) or
File "/var/www/html/openWB/runs/smarthomemq.py", line 67, in on_message
on_message(self, self._userdata, message)
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 3570, in _handle_on_message
self._handle_on_message(message)
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 3327, in _handle_publish
return self._handle_publish()
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 3033, in _packet_handle
rc = self._packet_handle()
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 2439, in _packet_read
rc = self._packet_read()
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1556, in loop_read
rc = self.loop_read()
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1164, in _loop
return self._loop(timeout)
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1120, in loop
client.loop()
File "/var/www/html/openWB/runs/smarthomemq.py", line 400, in readmq
readmq()
File "/var/www/html/openWB/runs/smarthomemq.py", line 463, in <module>
Traceback (most recent call last):
RequestsDependencyWarning)
/usr/lib/python3/dist-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.15) or chardet (3.0.4) doesn't match a supported version!
2023-03-22 17:20:02,417 INFO (9) Key mode Value 0
2023-03-22 17:20:02,417 INFO (9) Key device_configured Value 0
2023-03-22 17:20:02,416 INFO (8) Key mode Value 0
2023-03-22 17:20:02,416 INFO (8) Key device_configured Value 0
2023-03-22 17:20:02,415 INFO (7) Key mode Value 0
2023-03-22 17:20:02,415 INFO (7) Key device_configured Value 0
2023-03-22 17:20:02,414 INFO (6) Key mode Value 0
2023-03-22 17:20:02,414 INFO (6) Key device_configured Value 0
2023-03-22 17:20:02,413 INFO (5) Key mode Value 0
2023-03-22 17:20:02,413 INFO (5) Key device_configured Value 0
2023-03-22 17:20:02,412 INFO (4) Key device_shauth Value 0
2023-03-22 17:20:02,412 INFO (4) Key device_manual_control Value 0
2023-03-22 17:20:02,412 INFO (4) Key device_differentMeasurement Value 0
2023-03-22 17:20:02,412 INFO (4) Key device_pbtype Value none
2023-03-22 17:20:02,411 INFO (4) Key device_homeConsumtion Value 0
2023-03-22 17:20:02,411 INFO (4) Key device_temperatur_configured Value 0
2023-03-22 17:20:02,411 INFO (4) Key device_speichersocbeforestop Value 100
2023-03-22 17:20:02,410 INFO (4) Key device_speichersocbeforestart Value 100
2023-03-22 17:20:02,410 INFO (4) Key device_ausschaltverzoegerung Value 1
2023-03-22 17:20:02,410 INFO (4) Key device_ausschaltschwelle Value -1000
2023-03-22 17:20:02,409 INFO (4) Key device_updatesec Value 0
2023-03-22 17:20:02,409 INFO (4) Key device_einschaltverzoegerung Value 2
2023-03-22 17:20:02,409 INFO (4) Key device_einschaltschwelle Value 3500
2023-03-22 17:20:02,408 INFO (4) Key device_deactivateper Value 0
2023-03-22 17:20:02,408 INFO (4) Key device_setauto Value 0
2023-03-22 17:20:02,408 INFO (4) Key device_deactivateWhileEvCharging Value 0
2023-03-22 17:20:02,408 INFO (4) Key device_startupDetection Value 0
2023-03-22 17:20:02,407 INFO (4) Key device_offTime Value 00:00
2023-03-22 17:20:02,407 INFO (4) Key device_onTime Value 00:00
2023-03-22 17:20:02,407 INFO (4) Key device_onuntilTime Value 00:00
2023-03-22 17:20:02,406 INFO (4) Key device_finishTime Value 00:00
2023-03-22 17:20:02,406 INFO (4) Key device_endTime Value 14:30
2023-03-22 17:20:02,406 INFO (4) Key device_startTime Value 09:15
2023-03-22 17:20:02,405 INFO (4) Key device_maxeinschaltdauer Value 2
2023-03-22 17:20:02,405 INFO (4) Key device_mineinschaltdauer Value 2
2023-03-22 17:20:02,405 INFO (4) Key device_canSwitch Value 1
2023-03-22 17:20:02,404 INFO (4) Key device_ip Value 192.168.200.166
2023-03-22 17:20:02,404 INFO (4) Key device_chan Value 0
2023-03-22 17:20:02,403 INFO (4) Key device_type Value shelly
2023-03-22 17:20:02,403 INFO (4) Key device_name Value WWZ
2023-03-22 17:20:02,402 INFO (4) Key mode Value 0
2023-03-22 17:20:02,402 INFO (4) Key device_configured Value 1
2023-03-22 17:20:02,401 INFO (3) Key device_measureshauth Value 0
2023-03-22 17:20:02,401 INFO (3) Key device_measchan Value 0
2023-03-22 17:20:02,400 INFO (3) Key device_measureip Value 192.168.200.197
2023-03-22 17:20:02,400 INFO (3) Key device_measureType Value shelly
2023-03-22 17:20:02,399 INFO (3) Key device_differentMeasurement Value 1
2023-03-22 17:20:02,399 INFO (3) Key device_pbtype Value none
2023-03-22 17:20:02,399 INFO (3) Key device_homeConsumtion Value 1
2023-03-22 17:20:02,398 INFO (3) Key device_nonewatt Value 5
2023-03-22 17:20:02,398 INFO (3) Key device_type Value none
2023-03-22 17:20:02,397 INFO (3) Key device_name Value WaMa
2023-03-22 17:20:02,397 INFO (3) Key mode Value 0
2023-03-22 17:20:02,396 INFO (3) Key device_configured Value 1
2023-03-22 17:20:02,396 INFO (2) Key device_shauth Value 0
2023-03-22 17:20:02,395 INFO (2) Key device_differentMeasurement Value 0
2023-03-22 17:20:02,395 INFO (2) Key device_pbtype Value none
2023-03-22 17:20:02,395 INFO (2) Key device_homeConsumtion Value 1
2023-03-22 17:20:02,394 INFO (2) Key device_temperatur_configured Value 0
2023-03-22 17:20:02,394 INFO (2) Key device_canSwitch Value 0
2023-03-22 17:20:02,394 INFO (2) Key device_ip Value 192.168.200.181
2023-03-22 17:20:02,393 INFO (2) Key device_chan Value 0
2023-03-22 17:20:02,393 INFO (2) Key device_type Value shelly
2023-03-22 17:20:02,392 INFO (2) Key device_name Value Luft
2023-03-22 17:20:02,392 INFO (2) Key mode Value 0
2023-03-22 17:20:02,391 INFO (2) Key device_configured Value 1
2023-03-22 17:20:02,390 INFO (1) Key device_measurePortSdm Value 8899
2023-03-22 17:20:02,388 INFO (1) Key device_measureid Value 117
2023-03-22 17:20:02,388 INFO (1) Key device_measureip Value 192.168.200.86
2023-03-22 17:20:02,387 INFO (1) Key device_measureType Value sdm630
2023-03-22 17:20:02,387 INFO (1) Key device_differentMeasurement Value 1
2023-03-22 17:20:02,387 INFO (1) Key device_pbtype Value none
2023-03-22 17:20:02,386 INFO (1) Key device_homeConsumtion Value 1
2023-03-22 17:20:02,386 INFO (1) Key device_nonewatt Value 0
2023-03-22 17:20:02,385 INFO (1) Key device_type Value none
2023-03-22 17:20:02,385 INFO (1) Key device_name Value SWWP
2023-03-22 17:20:02,384 INFO (1) Key mode Value 0
2023-03-22 17:20:02,384 INFO (1) Key device_configured Value 1
2023-03-22 17:20:02,379 INFO Config reRead start / Parameter check
2023-03-22 17:20:02,379 INFO *** Smarthome mq Start ***
UnboundLocalError: local variable 'keyword' referenced before assignment
elif (("/" in keyword) or (int(devicenumb) < 1) or
File "/var/www/html/openWB/runs/smarthomemq.py", line 67, in on_message
on_message(self, self._userdata, message)
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 3570, in _handle_on_message
self._handle_on_message(message)
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 3327, in _handle_publish
return self._handle_publish()
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 3033, in _packet_handle
rc = self._packet_handle()
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 2439, in _packet_read
rc = self._packet_read()
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1556, in loop_read
rc = self.loop_read()
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1164, in _loop
return self._loop(timeout)
File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1120, in loop
client.loop()
File "/var/www/html/openWB/runs/smarthomemq.py", line 400, in readmq
readmq()
File "/var/www/html/openWB/runs/smarthomemq.py", line 463, in <module>
Traceback (most recent call last):
RequestsDependencyWarning)
/usr/lib/python3/dist-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.15) or chardet (3.0.4) doesn't match a supported version!
2023-03-22 17:16:25,753 INFO (9) Key mode Value 0
2023-03-22 17:16:25,753 INFO (9) Key device_configured Value 0
2023-03-22 17:16:25,752 INFO (8) Key mode Value 0
2023-03-22 17:16:25,751 INFO (8) Key device_configured Value 0
2023-03-22 17:16:25,750 INFO (7) Key mode Value 0
2023-03-22 17:16:25,749 INFO (7) Key device_configured Value 0
2023-03-22 17:16:25,748 INFO (6) Key mode Value 0
2023-03-22 17:16:25,748 INFO (6) Key device_configured Value 0
2023-03-22 17:16:25,747 INFO (5) Key mode Value 0
2023-03-22 17:16:25,746 INFO (5) Key device_configured Value 0
2023-03-22 17:16:25,745 INFO (4) Key device_shauth Value 0
2023-03-22 17:16:25,745 INFO (4) Key device_manual_control Value 0
2023-03-22 17:16:25,744 INFO (4) Key device_differentMeasurement Value 0
2023-03-22 17:16:25,744 INFO (4) Key device_pbtype Value none
2023-03-22 17:16:25,743 INFO (4) Key device_homeConsumtion Value 0
2023-03-22 17:16:25,743 INFO (4) Key device_temperatur_configured Value 0
2023-03-22 17:16:25,742 INFO (4) Key device_speichersocbeforestop Value 100
2023-03-22 17:16:25,742 INFO (4) Key device_speichersocbeforestart Value 100
2023-03-22 17:16:25,741 INFO (4) Key device_ausschaltverzoegerung Value 1
2023-03-22 17:16:25,741 INFO (4) Key device_ausschaltschwelle Value -1000
2023-03-22 17:16:25,740 INFO (4) Key device_updatesec Value 0
2023-03-22 17:16:25,739 INFO (4) Key device_einschaltverzoegerung Value 2
2023-03-22 17:16:25,739 INFO (4) Key device_einschaltschwelle Value 3500
2023-03-22 17:16:25,738 INFO (4) Key device_deactivateper Value 0
2023-03-22 17:16:25,738 INFO (4) Key device_setauto Value 0
2023-03-22 17:16:25,737 INFO (4) Key device_deactivateWhileEvCharging Value 0
2023-03-22 17:16:25,736 INFO (4) Key device_startupDetection Value 0
2023-03-22 17:16:25,736 INFO (4) Key device_offTime Value 00:00
2023-03-22 17:16:25,735 INFO (4) Key device_onTime Value 00:00
2023-03-22 17:16:25,735 INFO (4) Key device_onuntilTime Value 00:00
2023-03-22 17:16:25,734 INFO (4) Key device_finishTime Value 00:00
2023-03-22 17:16:25,734 INFO (4) Key device_endTime Value 14:30
2023-03-22 17:16:25,733 INFO (4) Key device_startTime Value 09:15
2023-03-22 17:16:25,733 INFO (4) Key device_maxeinschaltdauer Value 2
2023-03-22 17:16:25,732 INFO (4) Key device_mineinschaltdauer Value 2
2023-03-22 17:16:25,732 INFO (4) Key device_canSwitch Value 1
2023-03-22 17:16:25,731 INFO (4) Key device_ip Value 192.168.200.166
2023-03-22 17:16:25,731 INFO (4) Key device_chan Value 0
2023-03-22 17:16:25,730 INFO (4) Key device_type Value shelly
2023-03-22 17:16:25,730 INFO (4) Key device_name Value WWZ
2023-03-22 17:16:25,729 INFO (4) Key mode Value 0
2023-03-22 17:16:25,729 INFO (4) Key device_configured Value 1
2023-03-22 17:16:25,728 INFO (3) Key device_measureshauth Value 0
2023-03-22 17:16:25,727 INFO (3) Key device_measchan Value 0
2023-03-22 17:16:25,726 INFO (3) Key device_measureip Value 192.168.200.197
2023-03-22 17:16:25,725 INFO (3) Key device_measureType Value shelly
2023-03-22 17:16:25,725 INFO (3) Key device_differentMeasurement Value 1
2023-03-22 17:16:25,724 INFO (3) Key device_pbtype Value none
2023-03-22 17:16:25,723 INFO (3) Key device_homeConsumtion Value 1
2023-03-22 17:16:25,722 INFO (3) Key device_nonewatt Value 5
2023-03-22 17:16:25,722 INFO (3) Key device_type Value none
2023-03-22 17:16:25,721 INFO (3) Key device_name Value WaMa
2023-03-22 17:16:25,720 INFO (3) Key mode Value 0
2023-03-22 17:16:25,719 INFO (3) Key device_configured Value 1
2023-03-22 17:16:25,718 INFO (2) Key device_shauth Value 0
2023-03-22 17:16:25,717 INFO (2) Key device_differentMeasurement Value 0
2023-03-22 17:16:25,716 INFO (2) Key device_pbtype Value none
2023-03-22 17:16:25,716 INFO (2) Key device_homeConsumtion Value 1
2023-03-22 17:16:25,715 INFO (2) Key device_temperatur_configured Value 0
2023-03-22 17:16:25,714 INFO (2) Key device_canSwitch Value 0
2023-03-22 17:16:25,713 INFO (2) Key device_ip Value 192.168.200.181
2023-03-22 17:16:25,712 INFO (2) Key device_chan Value 0
2023-03-22 17:16:25,712 INFO (2) Key device_type Value shelly
2023-03-22 17:16:25,711 INFO (2) Key device_name Value Luft
2023-03-22 17:16:25,710 INFO (2) Key mode Value 0
2023-03-22 17:16:25,709 INFO (2) Key device_configured Value 1
2023-03-22 17:16:25,707 INFO (1) Key device_measurePortSdm Value 8899
2023-03-22 17:16:25,707 INFO (1) Key device_measureid Value 117
2023-03-22 17:16:25,706 INFO (1) Key device_measureip Value 192.168.200.86
2023-03-22 17:16:25,705 INFO (1) Key device_measureType Value sdm630
2023-03-22 17:16:25,704 INFO (1) Key device_differentMeasurement Value 1
2023-03-22 17:16:25,704 INFO (1) Key device_pbtype Value none
2023-03-22 17:16:25,703 INFO (1) Key device_homeConsumtion Value 1
2023-03-22 17:16:25,702 INFO (1) Key device_nonewatt Value 0
2023-03-22 17:16:25,701 INFO (1) Key device_type Value none
2023-03-22 17:16:25,701 INFO (1) Key device_name Value SWWP
2023-03-22 17:16:25,700 INFO (1) Key mode Value 0
2023-03-22 17:16:25,699 INFO (1) Key device_configured Value 1
2023-03-22 17:16:25,689 INFO Config reRead start / Parameter check
2023-03-22 17:15:38,781 WARNING Ramdisk not set up. Maybe we are still booting (updateinprogress).[Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/updateinprogress'
2023-03-22 17:15:38,780 INFO *** Smarthome mq Start ***
**** REBOOT ****