We will seeAlain wrote: ↑Thursday 25 November 2021 20:19 The error occurs within the msmart part of the deal. I see you opened an issue in my github repository about it, but you should really try to get an answer from over there. I'm willing to try when I have the opportunity to test it, but can't promise anything about it.

I have found the issue about the login error, when using 4 units, the error comes in, but after i removed 2 usb sticks out the network the script is working again and found 2 (of the 3) units.
Code: Select all
midea-discover
INFO:msmart.cli:msmart version: 0.1.35 Currently only supports ac devices.
INFO:msmart.cli:Sending Device Scan Broadcast...
INFO:msmart.lan:Got TCP key for 192.168.1.103:43472 -> 192.168.1.34:6444 retries: 0 time: 0.54 bd***20
INFO:msmart.cli:*** Found a device: {'type': 'ac', 'support': True, 'version': 2, 'ip': '192.168.1.25', 'id': 1539316*9, 'port': 6444, 'token': None, 'key': None, 'ssid': 'net_ac_4A94'}
INFO:msmart.cli:*** Found a device: {'type': 'ac', 'support': True, 'version': 3, 'ip': '192.168.1.34', 'id': 3188583745*, 'port': 6444, 'token': 'F***', 'key': 'A0F0***', 'ssid': 'net_ac_3648'}
Code: Select all
2021-11-26 20:37:17.295 Status: Slaapkamer: Entering work loop.
2021-11-26 20:37:17.295 Status: Slaapkamer: Started.
2021-11-26 20:37:17.774 Status: Slaapkamer: Initialized version 1.0.0, author 'Alain'
2021-11-26 20:37:17.777 Error: Slaapkamer: 'onStart' failed 'AttributeError':''device' object has no attribute 'setup''.
2021-11-26 20:37:17.777 Error: Slaapkamer: Exception traceback:
2021-11-26 20:37:17.777 Error: Slaapkamer: ----> Line 347 in '/home/pi/domoticz/plugins/midea-msmart/plugin.py', function onStart
2021-11-26 20:37:17.777 Error: Slaapkamer: ----> Line 61 in '/home/pi/domoticz/plugins/midea-msmart/plugin.py', function onStart
2021-11-26 20:37:27.096 Error: Slaapkamer: 'onHeartbeat' failed 'AttributeError':''device' object has no attribute 'setup''.
2021-11-26 20:37:27.096 Error: Slaapkamer: Exception traceback:
2021-11-26 20:37:27.096 Error: Slaapkamer: ----> Line 382 in '/home/pi/domoticz/plugins/midea-msmart/plugin.py', function onHeartbeat
2021-11-26 20:37:27.096 Error: Slaapkamer: ----> Line 268 in '/home/pi/domoticz/plugins/midea-msmart/plugin.py', function onHeartbeat
2021-11-26 20:37:27.096 Error: Slaapkamer: ----> Line 278 in '/home/pi/domoticz/plugins/midea-msmart/plugin.py', function DataUpdate
Code: Select all
python example.py
Traceback (most recent call last):
File "example.py", line 2, in <module>
from msmart.device import air_conditioning_device as ac
File "/home/pi/domoticz/plugins/midea-msmart/msmart/device.py", line 16
def convert_device_id_hex(device_id: int):
^
SyntaxError: invalid syntax
