mirmil99 wrote: ↑Tuesday 07 May 2019 8:59
the app on the phone was already switched off...
domoticz - stop, and...
Code: Select all
osmc@Malina:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin$ ./get_dps.py 192.168.100.28 87532803bcddc295e153
A problem occur please retry...
osmc@Malina:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin$ ./get_dps.py 192.168.100.28 87532803bcddc295e153
A problem occur please retry...
osmc@Malina:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin$ ./get_dps.py 192.168.100.28 87532803bcddc295e153
A problem occur please retry...
.
.
.
Same problem here...
Code: Select all
pi@Domoticz-Server:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin $ sudo python3 get_dps.py 192.168.0.50 46268374840d8e953390
A problem occur please retry...
pi@Domoticz-Server:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin $ sudo python3 get_dps.py 192.168.0.50 46268374840d8e953390
A problem occur please retry...
pi@Domoticz-Server:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin $ sudo python3 get_dps.py 192.168.0.50 46268374840d8e953390
A problem occur please retry...
pi@Domoticz-Server:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin $ sudo python3 get_dps.py 192.168.0.50 46268374840d8e953390
A problem occur please retry...
pi@Domoticz-Server:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin $ sudo python3 get_dps.py 192.168.0.50 46268374840d8e953390
A problem occur please retry...
pi@Domoticz-Server:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin $ sudo python3 get_dps.py 192.168.0.50 46268374840d8e953390
Plug State Information:
{'devId': '46268374840d8e953390', 'dps': {'25': 1200, '9': 0, '19': 49, '22': 638, '21': 1, '23': 30205, '20': 2304, '1': True, '24': 17250, '18': 36}}
Plug DPS List:
1
pi@Domoticz-Server:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin $ sudo python3 get_dps.py 192.168.0.50 46268374840d8e953390
Plug State Information:
{'devId': '46268374840d8e953390', 'dps': {'1': True, '19': 49, '22': 638, '23': 30205, '24': 17250, '9': 0, '20': 2304, '25': 1200, '18': 36, '21': 1}}
Plug DPS List:
1
pi@Domoticz-Server:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin $ sudo python3 get_dps.py 192.168.0.50 46268374840d8e953390
Plug State Information:
{'devId': '46268374840d8e953390', 'dps': {'24': 17250, '20': 2304, '19': 49, '18': 36, '21': 1, '22': 638, '9': 0, '1': True, '23': 30205, '25': 1200}}
Plug DPS List:
1
pi@Domoticz-Server:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin $ sudo python3 get_dps.py 192.168.0.50 46268374840d8e953390
A problem occur please retry...
pi@Domoticz-Server:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin $ sudo python3 get_dps.py 192.168.0.50 46268374840d8e953390
A problem occur please retry...
pi@Domoticz-Server:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin $ sudo python3 get_dps.py 192.168.0.50 46268374840d8e953390
A problem occur please retry...
pi@Domoticz-Server:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin $ sudo python3 get_dps.py 192.168.0.50 46268374840d8e953390
A problem occur please retry...
pi@Domoticz-Server:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin $ sudo python3 get_dps.py 192.168.0.50 46268374840d8e953390
A problem occur please retry...
pi@Domoticz-Server:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin $ sudo python3 get_dps.py 192.168.0.50 46268374840d8e953390
A problem occur please retry...
sometimes I get an answer back, most of the time not.
And, the structure seems also not constant (e.g. the True pops up in different locations sometimes)
Running DZ 4.10710
Switching on / Off works fine, no problem there.
Do get errors in the log
Code: Select all
2019-05-16 14:56:01.261 Error: (TSP 1) 'onMessage' failed 'KeyError'.
2019-05-16 14:56:01.261 Error: (TSP 1) ----> Line 531 in '/home/pi/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin/plugin.py', function onMessage
2019-05-16 14:56:01.261 Error: (TSP 1) ----> Line 439 in '/home/pi/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin/plugin.py', function onMessage
EDIT:
Solved the error - make sure the right ID's for voltage etc are in the plugin !!!!!