JanJaapKo / DysonPureLink

Handles Dyson Pure Link in Domoticz as plugin
12 stars 2 forks source link

No devices found in cloud account #20

Closed JanJaapKo closed 3 years ago

JanJaapKo commented 4 years ago

As follow up of the issue #5. This issue should deal with situations where the API call to Dyson cloud returns an empty device list. Logging from @ricorico94:

2020-06-09 21:41:10.116 (DysonHot+Cool) Request URL: 'https://appapi.cp.dyson.com/v1/userregistration/authenticate?country=DE' 2020-06-09 21:41:10.680 (DysonHot+Cool) Login OK, JSON response: '{'Account': 'cdaaf647-92d8-4827-b2d3-1c0909090909', 'Password': 'S6lB6UkA+Ptg8JhTfQgX9L+xDU5RQy/jhnpwkjESP3nFPy+H9wapQUfoCTh30yqcR0K6YF6vhmuXXXXXXX'}' 2020-06-09 21:41:10.680 (DysonHot+Cool) Fetching devices from Dyson Web Services. 2020-06-09 21:41:10.795 (DysonHot+Cool) Reply from Dyson: []' 2020-06-09 21:41:10.795 (DysonHot+Cool) No devices found in Dyson cloud account 2020-06-09 21:41:10.795 (DysonHot+Cool) Device instance created: None 2020-06-09 21:41:10.795 (DysonHot+Cool) Heartbeat interval set to: 10. 2020-06-09 21:41:10.106 Status: (DysonHot+Cool) Entering work loop. 2020-06-09 21:41:10.107 Status: (DysonHot+Cool) Initialized version 2.2.1, author 'Jan-Jaap Kostelijk' 2020-06-09 21:41:10.795 Error: (DysonHot+Cool) No usable credentials found 2020-06-09 21:41:10.795 Error: (DysonHot+Cool) 'onStart' failed 'AttributeError':''NoneType' object has no attribute 'device_base_topic''. 2020-06-09 21:41:10.795 Error: (DysonHot+Cool) ----> Line 415 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onStart 2020-06-09 21:41:10.795 Error: (DysonHot+Cool) ----> Line 233 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onStart

ricorico94 commented 4 years ago

Hi, I wonder if Dyson kept same connectivity approach with this new model, but maybe it's simply because I don't understand everything.. I tried to use wireshark to capture packets : basically, I connected the wifi hotspot used by my Dyson on a switch which can mirror traffic to another port, an dof course the switch is also connected to internet. When I use that switch and the mirroring of a port where my domoticz is connected, I can see some MQTT protocol rows in wireshark (nothing related to dyson -other MQTT traffic I use for domoticz). But if I mirror the port connecting the wifi hotspot used by Dyson and if I use the filter "tcp.port == 1883", wireshark shows nothing. If I use the filter "ip.addr == 192.168.XX.YY" (where 192.168.XX.YY is the IP of my dyson), then I don't see any line with MQTT protocol, but plenty other lines. I made captures starting from Dyson completely powered off, then plugging in and switching it on, and then opening the app on my android phone to view some measurements details and try to action the switch off/on from the app. I can see some traffic, but nothing flagged "MQTT" nor on port 1883. Unfortunately, I'm not good enough to really understand what's behind packets. A weird thing maybe, I could find packets of protocol "MDNS" with destination 224.0.0.251 and in which I can read some text 527_E3E-EU-MNX9999X._dyson_mqtt._tcp.local where E3E-EU-MNX9999X would stand for my serial number (modified on purpose here). I understand it's a multicast address. Could it be that it tries to use mqqt but fails finding anything ? I can see also a lot of packets with protocol TLS, which I believe is encrypted (correct ?), in particular calls to amazon cloud (amazonaws). Would there be anyone with more expertise on wireshark who could have a look at my logs and tell me if there's anything I can try ? I could share the wireshark files (but I guess I shouldn't share with whole world..)

By the way, is Dyson Link supposed to still connect to local device through local wifi, without both being connected to the internet and Dyson cloud servers ?

JanJaapKo commented 4 years ago

The way to connect to the machine is in essence 2 fases, when installing the plugin:

  1. connect to Dyson web to fetch machine details (alternatively, enter machine type, dyson pwd and serial#)
  2. connect to the machine itself

For the second step, there are in essence 2 ways:

  1. enter the IP adress manually (as in the plugin)
  2. search for the machine using identification requests as are standard on LAN (not an expert so not sure about exact terminology), which is what your phone app does.

So to unravel the mystery of your account, we need the requests that your app makes to Dyson to get the machine details. I found, using packet capture, also a request to an external address (172.217.17.131) but it returns no data. I think it has something to do with the packet capture in between (the app also doesn't display the outdoor air quality it usually gives). So I need to find an alternative method (using packet capture, I can see all communication to the Dyson device though....). So any hints t othis procedure are welcome. Or provide logging if you have them.

ricorico94 commented 4 years ago

Hi, I looked again at wireshark captures of my android phone, but I still can't find any useful packets, but maybe I just don't know where to look and how to understand. I did send captures to JanJaap as private message through the messaging system of forum domoticz.com. If someone else knows how to analyse wireshark captures, you can contact me through same forum (https://www.domoticz.com/forum/viewtopic.php?f=65&t=28264&p=250141#p250141.

Beside that, I tried to reverse engineering the Dyson Link apk with apktool.. just in case I would be very lucky.. I was not lucky and indeed I can't understand much. I could see however some libraries inside related to MQTT, but I couldn't find any call to our API. I think they use another direct app integration.

JanJaapKo commented 4 years ago

@ricorico94 , @loedeman,

I sent the below as PM to rico, not sure if it arrived.....

Hi,

Thanks for sniffing the traffic. It does show some communication with a Dyson server (ip adress 104.18.196.29) but as far as I can see there is some certificate exchange and encrypted communication. Which is basically a good thing but it doesn't help us much further......

I found in 1 of the replies another URL for contacting Dyson. Would you be so kind to try and update the below line in dyson.py, line 7?

DYSON_API_URL = "appapi.cpstage.dyson.com"

For me this returned an emtpy devices list. Perha[s it gives better result for you?

Regards,

Jan-Jaap

loedeman commented 4 years ago

Just checked. Did not work for me, also 0 devices found...

ricorico94 commented 4 years ago

Hi, Sorry for my late answer due to very heavy work. I tried this morning, but I still receive nothing: 2020-06-27 09:29:19.594 (DysonPurHotCoolCrypto) Fetching devices from Dyson Web Services. 2020-06-27 09:29:20.165 (DysonPurHotCoolCrypto) Reply from Dyson: []' 2020-06-27 09:29:20.165 (DysonPurHotCoolCrypto) No devices found in Dyson cloud account 2020-06-27 09:29:20.165 (DysonPurHotCoolCrypto) Device instance created: None I don't know if someone would have knowledge in reverse engineering .. When I looked at their app 10 days ago, I didn't understand much.. and looking at wireshark traces, I'm afraid everyhting is now encrypted. Bad news..

I had sent 2 emaisl to Dyson support and they never gave any feedback. Maybe we should post on their facebook to highlight that given the rice of their products, they should allow customers making best use of them.

br, ricorico94

JanJaapKo commented 4 years ago

Well unless Dyson shares a description of their interface, the other option is indeed to try to make some sense out of the APK. I tried that for an other app in the past. It's not easy indeed..... I'll see if I can find some time but have busy job (and some other hobbies ;) ) as well. Thanks for trying at least.

Booleano75 commented 4 years ago

Hi, I found there is are some issues with HP04

this line doesn't work on this machine self.mqttClient.Subscribe([self.base_topic + '/#']) #subscribe to all topics on the machine

only way to receive update is to subscribe to the specific status topic

self.mqttClient.Subscribe([self.base_topic + '/status/current'])

after enabling the correct topic i get an error

2020-10-25 17:36:52.020 Error: (Dyson2) 'onMessage' failed 'AttributeError':''StateData' object has no attribute 'quality_target''. 2020-10-25 17:36:52.020 Error: (Dyson2) ----> Line 479 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-10-25 17:36:52.020 Error: (Dyson2) ----> Line 314 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-10-25 17:36:52.020 Error: (Dyson2) ----> Line 138 in '/tmp/Domoticz/plugins/DysonPureLink/mqtt.py', function onMessage 2020-10-25 17:36:52.020 Error: (Dyson2) ----> Line 418 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function onMQTTPublish 2020-10-25 17:36:52.020 Error: (Dyson2) ----> Line 357 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function updateDevices

See below the Status Telegram Received

2020-10-25 17:36:51.914 (Dyson2) 45 22 2c 20 22 74 69 6d 65 22 3a 20 22 32 30 32 30 2d 31 30 E",."time":."2020-10 2020-10-25 17:36:51.914 (Dyson2) 2d 32 35 54 31 36 3a 33 36 3a 35 31 5a 22 7d .. .. .. .. .. -25T16:36:51Z"} 2020-10-25 17:36:52.015 (Dyson2) Received 643 bytes of data 2020-10-25 17:36:52.015 (Dyson2) 30 80 05 00 22 35 32 37 2f 41 31 41 2d 45 55 2d 4d 42 41 36 0�."527/A1A-EU-MBA6 2020-10-25 17:36:52.015 (Dyson2) 34 31 32 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 7b 412A/status/current{ 2020-10-25 17:36:52.015 (Dyson2) 22 6d 73 67 22 3a 22 43 55 52 52 45 4e 54 2d 53 54 41 54 45 "msg":"CURRENT-STATE 2020-10-25 17:36:52.015 (Dyson2) 22 2c 22 74 69 6d 65 22 3a 22 32 30 32 30 2d 31 30 2d 32 35 ","time":"2020-10-25 2020-10-25 17:36:52.015 (Dyson2) 54 31 36 3a 33 36 3a 35 32 2e 30 30 30 5a 22 2c 22 6d 6f 64 T16:36:52.000Z","mod 2020-10-25 17:36:52.015 (Dyson2) 65 2d 72 65 61 73 6f 6e 22 3a 22 4c 41 50 50 22 2c 22 73 74 e-reason":"LAPP","st 2020-10-25 17:36:52.015 (Dyson2) 61 74 65 2d 72 65 61 73 6f 6e 22 3a 22 4d 4f 44 45 22 2c 22 ate-reason":"MODE"," 2020-10-25 17:36:52.015 (Dyson2) 72 73 73 69 22 3a 22 2d 33 39 22 2c 22 63 68 61 6e 6e 65 6c rssi":"-39","channel 2020-10-25 17:36:52.015 (Dyson2) 22 3a 22 31 30 30 22 2c 22 66 71 68 70 22 3a 22 35 32 38 39 ":"100","fqhp":"5289 2020-10-25 17:36:52.015 (Dyson2) 36 22 2c 22 66 67 68 70 22 3a 22 31 38 38 38 30 22 2c 22 70 6","fghp":"18880","p 2020-10-25 17:36:52.016 (Dyson2) 72 6f 64 75 63 74 2d 73 74 61 74 65 22 3a 7b 22 66 70 77 72 roduct-state":{"fpwr 2020-10-25 17:36:52.016 (Dyson2) 22 3a 22 4f 46 46 22 2c 22 61 75 74 6f 22 3a 22 4f 4e 22 2c ":"OFF","auto":"ON", 2020-10-25 17:36:52.016 (Dyson2) 22 6f 73 63 73 22 3a 22 4f 46 46 22 2c 22 6f 73 6f 6e 22 3a "oscs":"OFF","oson": 2020-10-25 17:36:52.016 (Dyson2) 22 4f 46 46 22 2c 22 6e 6d 6f 64 22 3a 22 4f 46 46 22 2c 22 "OFF","nmod":"OFF"," 2020-10-25 17:36:52.016 (Dyson2) 72 68 74 6d 22 3a 22 4f 4e 22 2c 22 66 6e 73 74 22 3a 22 4f rhtm":"ON","fnst":"O 2020-10-25 17:36:52.016 (Dyson2) 46 46 22 2c 22 65 72 63 64 22 3a 22 31 31 45 31 22 2c 22 77 FF","ercd":"11E1","w 2020-10-25 17:36:52.016 (Dyson2) 61 63 64 22 3a 22 4e 4f 4e 45 22 2c 22 6e 6d 64 76 22 3a 22 acd":"NONE","nmdv":" 2020-10-25 17:36:52.016 (Dyson2) 30 30 30 34 22 2c 22 66 6e 73 70 22 3a 22 41 55 54 4f 22 2c 0004","fnsp":"AUTO", 2020-10-25 17:36:52.016 (Dyson2) 22 62 72 69 6c 22 3a 22 30 30 30 32 22 2c 22 63 6f 72 66 22 "bril":"0002","corf" 2020-10-25 17:36:52.016 (Dyson2) 3a 22 4f 4e 22 2c 22 63 66 6c 72 22 3a 22 30 30 37 37 22 2c :"ON","cflr":"0077", 2020-10-25 17:36:52.016 (Dyson2) 22 68 66 6c 72 22 3a 22 30 30 37 37 22 2c 22 63 66 6c 74 22 "hflr":"0077","cflt" 2020-10-25 17:36:52.016 (Dyson2) 3a 22 43 41 52 46 22 2c 22 68 66 6c 74 22 3a 22 47 48 45 50 :"CARF","hflt":"GHEP 2020-10-25 17:36:52.017 (Dyson2) 22 2c 22 73 6c 74 6d 22 3a 22 4f 46 46 22 2c 22 6f 73 61 6c ","sltm":"OFF","osal 2020-10-25 17:36:52.017 (Dyson2) 22 3a 22 30 31 35 37 22 2c 22 6f 73 61 75 22 3a 22 30 32 30 ":"0157","osau":"020 2020-10-25 17:36:52.017 (Dyson2) 32 22 2c 22 61 6e 63 70 22 3a 22 30 30 34 35 22 2c 22 68 6d 2","ancp":"0045","hm 2020-10-25 17:36:52.017 (Dyson2) 6f 64 22 3a 22 4f 46 46 22 2c 22 68 6d 61 78 22 3a 22 32 39 od":"OFF","hmax":"29 2020-10-25 17:36:52.017 (Dyson2) 35 32 22 2c 22 74 69 6c 74 22 3a 22 4f 4b 22 2c 22 68 73 74 52","tilt":"OK","hst 2020-10-25 17:36:52.017 (Dyson2) 61 22 3a 22 4f 46 46 22 2c 22 70 73 74 61 22 3a 22 4f 46 46 a":"OFF","psta":"OFF 2020-10-25 17:36:52.017 (Dyson2) 22 2c 22 66 64 69 72 22 3a 22 4f 4e 22 7d 2c 22 73 63 68 65 ","fdir":"ON"},"sche 2020-10-25 17:36:52.017 (Dyson2) 64 75 6c 65 72 22 3a 7b 22 73 72 73 63 22 3a 22 30 30 30 30 duler":{"srsc":"0000 2020-10-25 17:36:52.017 (Dyson2) 30 30 30 30 35 66 39 35 38 38 32 62 22 2c 22 64 73 74 76 22 00005f95882b","dstv" 2020-10-25 17:36:52.017 (Dyson2) 3a 22 30 30 30 31 22 2c 22 74 7a 69 64 22 3a 22 30 30 30 31 :"0001","tzid":"0001 2020-10-25 17:36:52.017 (Dyson2) 22 7d 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. "}} 2020-10-25 17:36:52.017 (Dyson2) onMessage called 2020-10-25 17:36:52.018 (Dyson2) {'Verb': 'PUBLISH', 'DUP': 0, 'QoS': 0, 'Retain': False, 'Topic': '527/A1A-EU-MBA6412A/status/current', 'Payload': b'{"msg":"CURRENT-STATE","time":"2020-10-25T16:36:52.000Z","mode-reason":"LAPP","state-reason":"MODE","rssi":"-39","channel":"100","fqhp":"52896","fghp":"18880","product-state":{"fpwr":"OFF","auto":"ON","oscs":"OFF","oson":"OFF","nmod":"OFF","rhtm":"ON","fnst":"OFF","ercd":"11E1","wacd":"NONE","nmdv":"0004","fnsp":"AUTO","bril":"0002","corf":"ON","cflr":"0077","hflr":"0077","cflt":"CARF","hflt":"GHEP","sltm":"OFF","osal":"0157","osau":"0202","ancp":"0045","hmod":"OFF","hmax":"2952","tilt":"OK","hsta":"OFF","psta":"OFF","fdir":"ON"},"scheduler":{"srsc":"000000005f95882b","dstv":"0001","tzid":"0001"}}'} 2020-10-25 17:36:52.018 (Dyson2) MqttClient::onMessage Topic '527/A1A-EU-MBA6412A/status/current', Data[Verb]: 'PUBLISH' 2020-10-25 17:36:52.019 (Dyson2) MQTT Publish: MQTT message incoming: 527/A1A-EU-MBA6412A/status/current {'msg': 'CURRENT-STATE', 'time': '2020-10-25T16:36:52.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'rssi': '-39', 'channel': '100', 'fqhp': '52896', 'fghp': '18880', 'product-state': {'fpwr': 'OFF', 'auto': 'ON', 'oscs': 'OFF', 'oson': 'OFF', 'nmod': 'OFF', 'rhtm': 'ON', 'fnst': 'OFF', 'ercd': '11E1', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': 'AUTO', 'bril': '0002', 'corf': 'ON', 'cflr': '0077', 'hflr': '0077', 'cflt': 'CARF', 'hflt': 'GHEP', 'sltm': 'OFF', 'osal': '0157', 'osau': '0202', 'ancp': '0045', 'hmod': 'OFF', 'hmax': '2952', 'tilt': 'OK', 'hsta': 'OFF', 'psta': 'OFF', 'fdir': 'ON'}, 'scheduler': {'srsc': '000000005f95882b', 'dstv': '0001', 'tzid': '0001'}}

JanJaapKo commented 4 years ago

Hi Francesco,

I pushed a version that:

Can you:

Regards,

Jan-Jaap

Booleano75 commented 4 years ago

Hi, now the device selection seems ok. the plugin found two devices and asked to select one.

There is no error when subscribing to # topic, it is only that data are not coming.

There is an error when updating getting the parameters, see below, plugin is expecting quality_target but it is not there

2020-10-25 20:48:17.394 (Dyson) MqttClient::onMessage Topic '527/A1A-EU-MBA6412A/status/current', Data[Verb]: 'PUBLISH' 2020-10-25 20:48:17.395 (Dyson) MQTT Publish: MQTT message incoming: 527/A1A-EU-MBA6412A/status/current {'msg': 'CURRENT-STATE', 'time': '2020-10-25T19:48:17.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'rssi': '-41', 'channel': '100', 'fqhp': '51256', 'fghp': '18880', 'product-state': {'fpwr': 'OFF', 'auto': 'ON', 'oscs': 'OFF', 'oson': 'OFF', 'nmod': 'OFF', 'rhtm': 'ON', 'fnst': 'OFF', 'ercd': '11E1', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': 'AUTO', 'bril': '0002', 'corf': 'ON', 'cflr': '0077', 'hflr': '0077', 'cflt': 'CARF', 'hflt': 'GHEP', 'sltm': 'OFF', 'osal': '0157', 'osau': '0202', 'ancp': '0045', 'hmod': 'OFF', 'hmax': '2952', 'tilt': 'OK', 'hsta': 'OFF', 'psta': 'OFF', 'fdir': 'ON'}, 'scheduler': {'srsc': '000000005f95882b', 'dstv': '0001', 'tzid': '0001'}} 2020-10-25 20:48:17.395 (Dyson) machine state or state change recieved 2020-10-25 20:48:17.446 (Dyson) Received 250 bytes of data 2020-10-25 20:48:17.446 (Dyson) 30 f7 01 00 22 35 32 37 2f 41 31 41 2d 45 55 2d 4d 42 41 36 0󮮢527/A1A-EU-MBA6 2020-10-25 20:48:17.446 (Dyson) 34 31 32 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 7b 412A/status/current{ 2020-10-25 20:48:17.446 (Dyson) 22 6d 73 67 22 3a 22 45 4e 56 49 52 4f 4e 4d 45 4e 54 41 4c "msg":"ENVIRONMENTAL 2020-10-25 20:48:17.446 (Dyson) 2d 43 55 52 52 45 4e 54 2d 53 45 4e 53 4f 52 2d 44 41 54 41 -CURRENT-SENSOR-DATA 2020-10-25 20:48:17.446 (Dyson) 22 2c 22 74 69 6d 65 22 3a 22 32 30 32 30 2d 31 30 2d 32 35 ","time":"2020-10-25 2020-10-25 20:48:17.446 (Dyson) 54 31 39 3a 34 38 3a 31 37 2e 30 30 30 5a 22 2c 22 64 61 74 T19:48:17.000Z","dat 2020-10-25 20:48:17.447 (Dyson) 61 22 3a 7b 22 74 61 63 74 22 3a 22 32 39 33 38 22 2c 22 68 a":{"tact":"2938","h 2020-10-25 20:48:17.447 (Dyson) 61 63 74 22 3a 22 30 30 36 34 22 2c 22 70 6d 32 35 22 3a 22 act":"0064","pm25":" 2020-10-25 20:48:17.447 (Dyson) 30 30 31 30 22 2c 22 70 6d 31 30 22 3a 22 30 30 30 36 22 2c 0010","pm10":"0006", 2020-10-25 20:48:17.447 (Dyson) 22 76 61 31 30 22 3a 22 30 30 30 38 22 2c 22 6e 6f 78 6c 22 "va10":"0008","noxl" 2020-10-25 20:48:17.447 (Dyson) 3a 22 30 30 30 30 22 2c 22 70 32 35 72 22 3a 22 30 30 31 32 :"0000","p25r":"0012 2020-10-25 20:48:17.447 (Dyson) 22 2c 22 70 31 30 72 22 3a 22 30 30 31 31 22 2c 22 73 6c 74 ","p10r":"0011","slt 2020-10-25 20:48:17.447 (Dyson) 6d 22 3a 22 4f 46 46 22 7d 7d .. .. .. .. .. .. .. .. .. .. m":"OFF"}} 2020-10-25 20:48:17.447 (Dyson) MqttClient::onMessage Topic '527/A1A-EU-MBA6412A/status/current', Data[Verb]: 'PUBLISH' 2020-10-25 20:48:17.447 (Dyson) MQTT Publish: MQTT message incoming: 527/A1A-EU-MBA6412A/status/current {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2020-10-25T19:48:17.000Z', 'data': {'tact': '2938', 'hact': '0064', 'pm25': '0010', 'pm10': '0006', 'va10': '0008', 'noxl': '0000', 'p25r': '0012', 'p10r': '0011', 'sltm': 'OFF'}} 2020-10-25 20:48:17.447 (Dyson) sensor state recieved 2020-10-25 20:48:17.396 Error: (Dyson) 'onMessage' failed 'AttributeError':''StateData' object has no attribute 'quality_target''. 2020-10-25 20:48:17.396 Error: (Dyson) ----> Line 482 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-10-25 20:48:17.396 Error: (Dyson) ----> Line 310 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-10-25 20:48:17.396 Error: (Dyson) ----> Line 138 in '/tmp/Domoticz/plugins/DysonPureLink/mqtt.py', function onMessage 2020-10-25 20:48:17.396 Error: (Dyson) ----> Line 421 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function onMQTTPublish 2020-10-25 20:48:17.396 Error: (Dyson) ----> Line 359 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function updateDevices 2020-10-25 20:48:17.448 Error: (Dyson) 'onMessage' failed 'KeyError'. 2020-10-25 20:48:17.448 Error: (Dyson) ----> Line 482 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-10-25 20:48:17.448 Error: (Dyson) ----> Line 310 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-10-25 20:48:17.448 Error: (Dyson) ----> Line 138 in '/tmp/Domoticz/plugins/DysonPureLink/mqtt.py', function onMessage 2020-10-25 20:48:17.448 Error: (Dyson) ----> Line 424 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function onMQTTPublish 2020-10-25 20:48:17.448 Error: (Dyson) ----> Line 126 in '/tmp/Domoticz/plugins/DysonPureLink/value_types.py', function init 2020-10-25 20:48:25.665 (MyPortFinder) onMessage called from: 192.168

Booleano75 commented 4 years ago

Class StateData has no attribute quality_target

I put another log for your convenience

2020-10-25 20:52:44.334 (Dyson) Polling unit in 1 heartbeats. 2020-10-25 20:52:44.334 (Dyson) MqttClient::onHeartbeat 2020-10-25 20:52:44.334 (Dyson) MqttClient::Ping 2020-10-25 20:52:44.334 (Dyson) Sending 2 bytes of data 2020-10-25 20:52:44.334 (Dyson) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. � 2020-10-25 20:52:44.384 (Dyson) Received 2 bytes of data 2020-10-25 20:52:44.384 (Dyson) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Ю 2020-10-25 20:52:44.385 (Dyson) MqttClient::onMessage Topic '', Data[Verb]: 'PINGRESP' 2020-10-25 20:52:54.356 (Dyson) DysonPureLink plugin: Poll unit 2020-10-25 20:52:54.358 (Dyson) MqttClient::Publish 527/A1A-EU-MBA6412A/command ({"msg": "REQUEST-CURRENT-STATE", "time": "2020-10-25T19:52:54Z"}) 2020-10-25 20:52:54.359 (Dyson) Sending 95 bytes of data 2020-10-25 20:52:54.359 (Dyson) 30 5d 00 1b 35 32 37 2f 41 31 41 2d 45 55 2d 4d 42 41 36 34 0]..527/A1A-EU-MBA64 2020-10-25 20:52:54.359 (Dyson) 31 32 41 2f 63 6f 6d 6d 61 6e 64 7b 22 6d 73 67 22 3a 20 22 12A/command{"msg":." 2020-10-25 20:52:54.359 (Dyson) 52 45 51 55 45 53 54 2d 43 55 52 52 45 4e 54 2d 53 54 41 54 REQUEST-CURRENT-STAT 2020-10-25 20:52:54.359 (Dyson) 45 22 2c 20 22 74 69 6d 65 22 3a 20 22 32 30 32 30 2d 31 30 E",."time":."2020-10 2020-10-25 20:52:54.359 (Dyson) 2d 32 35 54 31 39 3a 35 32 3a 35 34 5a 22 7d .. .. .. .. .. -25T19:52:54Z"} 2020-10-25 20:52:54.460 (Dyson) Received 643 bytes of data 2020-10-25 20:52:54.460 (Dyson) 30 80 05 00 22 35 32 37 2f 41 31 41 2d 45 55 2d 4d 42 41 36 0�."527/A1A-EU-MBA6 2020-10-25 20:52:54.460 (Dyson) 34 31 32 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 7b 412A/status/current{ 2020-10-25 20:52:54.460 (Dyson) 22 6d 73 67 22 3a 22 43 55 52 52 45 4e 54 2d 53 54 41 54 45 "msg":"CURRENT-STATE 2020-10-25 20:52:54.460 (Dyson) 22 2c 22 74 69 6d 65 22 3a 22 32 30 32 30 2d 31 30 2d 32 35 ","time":"2020-10-25 2020-10-25 20:52:54.460 (Dyson) 54 31 39 3a 35 32 3a 35 34 2e 30 30 30 5a 22 2c 22 6d 6f 64 T19:52:54.000Z","mod 2020-10-25 20:52:54.460 (Dyson) 65 2d 72 65 61 73 6f 6e 22 3a 22 4c 41 50 50 22 2c 22 73 74 e-reason":"LAPP","st 2020-10-25 20:52:54.460 (Dyson) 61 74 65 2d 72 65 61 73 6f 6e 22 3a 22 4d 4f 44 45 22 2c 22 ate-reason":"MODE"," 2020-10-25 20:52:54.460 (Dyson) 72 73 73 69 22 3a 22 2d 34 30 22 2c 22 63 68 61 6e 6e 65 6c rssi":"-40","channel 2020-10-25 20:52:54.460 (Dyson) 22 3a 22 31 30 30 22 2c 22 66 71 68 70 22 3a 22 35 31 32 35 ":"100","fqhp":"5125 2020-10-25 20:52:54.460 (Dyson) 36 22 2c 22 66 67 68 70 22 3a 22 31 38 38 38 30 22 2c 22 70 6","fghp":"18880","p 2020-10-25 20:52:54.460 (Dyson) 72 6f 64 75 63 74 2d 73 74 61 74 65 22 3a 7b 22 66 70 77 72 roduct-state":{"fpwr 2020-10-25 20:52:54.460 (Dyson) 22 3a 22 4f 46 46 22 2c 22 61 75 74 6f 22 3a 22 4f 4e 22 2c ":"OFF","auto":"ON", 2020-10-25 20:52:54.460 (Dyson) 22 6f 73 63 73 22 3a 22 4f 46 46 22 2c 22 6f 73 6f 6e 22 3a "oscs":"OFF","oson": 2020-10-25 20:52:54.461 (Dyson) 22 4f 46 46 22 2c 22 6e 6d 6f 64 22 3a 22 4f 46 46 22 2c 22 "OFF","nmod":"OFF"," 2020-10-25 20:52:54.461 (Dyson) 72 68 74 6d 22 3a 22 4f 4e 22 2c 22 66 6e 73 74 22 3a 22 4f rhtm":"ON","fnst":"O 2020-10-25 20:52:54.461 (Dyson) 46 46 22 2c 22 65 72 63 64 22 3a 22 31 31 45 31 22 2c 22 77 FF","ercd":"11E1","w 2020-10-25 20:52:54.461 (Dyson) 61 63 64 22 3a 22 4e 4f 4e 45 22 2c 22 6e 6d 64 76 22 3a 22 acd":"NONE","nmdv":" 2020-10-25 20:52:54.461 (Dyson) 30 30 30 34 22 2c 22 66 6e 73 70 22 3a 22 41 55 54 4f 22 2c 0004","fnsp":"AUTO", 2020-10-25 20:52:54.461 (Dyson) 22 62 72 69 6c 22 3a 22 30 30 30 32 22 2c 22 63 6f 72 66 22 "bril":"0002","corf" 2020-10-25 20:52:54.461 (Dyson) 3a 22 4f 4e 22 2c 22 63 66 6c 72 22 3a 22 30 30 37 37 22 2c :"ON","cflr":"0077", 2020-10-25 20:52:54.461 (Dyson) 22 68 66 6c 72 22 3a 22 30 30 37 37 22 2c 22 63 66 6c 74 22 "hflr":"0077","cflt" 2020-10-25 20:52:54.461 (Dyson) 3a 22 43 41 52 46 22 2c 22 68 66 6c 74 22 3a 22 47 48 45 50 :"CARF","hflt":"GHEP 2020-10-25 20:52:54.461 (Dyson) 22 2c 22 73 6c 74 6d 22 3a 22 4f 46 46 22 2c 22 6f 73 61 6c ","sltm":"OFF","osal 2020-10-25 20:52:54.461 (Dyson) 22 3a 22 30 31 35 37 22 2c 22 6f 73 61 75 22 3a 22 30 32 30 ":"0157","osau":"020 2020-10-25 20:52:54.461 (Dyson) 32 22 2c 22 61 6e 63 70 22 3a 22 30 30 34 35 22 2c 22 68 6d 2","ancp":"0045","hm 2020-10-25 20:52:54.461 (Dyson) 6f 64 22 3a 22 4f 46 46 22 2c 22 68 6d 61 78 22 3a 22 32 39 od":"OFF","hmax":"29 2020-10-25 20:52:54.461 (Dyson) 35 32 22 2c 22 74 69 6c 74 22 3a 22 4f 4b 22 2c 22 68 73 74 52","tilt":"OK","hst 2020-10-25 20:52:54.461 (Dyson) 61 22 3a 22 4f 46 46 22 2c 22 70 73 74 61 22 3a 22 4f 46 46 a":"OFF","psta":"OFF 2020-10-25 20:52:54.461 (Dyson) 22 2c 22 66 64 69 72 22 3a 22 4f 4e 22 7d 2c 22 73 63 68 65 ","fdir":"ON"},"sche 2020-10-25 20:52:54.462 (Dyson) 64 75 6c 65 72 22 3a 7b 22 73 72 73 63 22 3a 22 30 30 30 30 duler":{"srsc":"0000 2020-10-25 20:52:54.462 (Dyson) 30 30 30 30 35 66 39 35 38 38 32 62 22 2c 22 64 73 74 76 22 00005f95882b","dstv" 2020-10-25 20:52:54.462 (Dyson) 3a 22 30 30 30 31 22 2c 22 74 7a 69 64 22 3a 22 30 30 30 31 :"0001","tzid":"0001 2020-10-25 20:52:54.462 (Dyson) 22 7d 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. "}} 2020-10-25 20:52:54.462 (Dyson) MqttClient::onMessage Topic '527/A1A-EU-MBA6412A/status/current', Data[Verb]: 'PUBLISH' 2020-10-25 20:52:54.463 (Dyson) MQTT Publish: MQTT message incoming: 527/A1A-EU-MBA6412A/status/current {'msg': 'CURRENT-STATE', 'time': '2020-10-25T19:52:54.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'rssi': '-40', 'channel': '100', 'fqhp': '51256', 'fghp': '18880', 'product-state': {'fpwr': 'OFF', 'auto': 'ON', 'oscs': 'OFF', 'oson': 'OFF', 'nmod': 'OFF', 'rhtm': 'ON', 'fnst': 'OFF', 'ercd': '11E1', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': 'AUTO', 'bril': '0002', 'corf': 'ON', 'cflr': '0077', 'hflr': '0077', 'cflt': 'CARF', 'hflt': 'GHEP', 'sltm': 'OFF', 'osal': '0157', 'osau': '0202', 'ancp': '0045', 'hmod': 'OFF', 'hmax': '2952', 'tilt': 'OK', 'hsta': 'OFF', 'psta': 'OFF', 'fdir': 'ON'}, 'scheduler': {'srsc': '000000005f95882b', 'dstv': '0001', 'tzid': '0001'}} 2020-10-25 20:52:54.463 (Dyson) machine state or state change recieved 2020-10-25 20:52:54.514 (Dyson) Received 250 bytes of data 2020-10-25 20:52:54.514 (Dyson) 30 f7 01 00 22 35 32 37 2f 41 31 41 2d 45 55 2d 4d 42 41 36 0󮮢527/A1A-EU-MBA6 2020-10-25 20:52:54.514 (Dyson) 34 31 32 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 7b 412A/status/current{ 2020-10-25 20:52:54.515 (Dyson) 22 6d 73 67 22 3a 22 45 4e 56 49 52 4f 4e 4d 45 4e 54 41 4c "msg":"ENVIRONMENTAL 2020-10-25 20:52:54.515 (Dyson) 2d 43 55 52 52 45 4e 54 2d 53 45 4e 53 4f 52 2d 44 41 54 41 -CURRENT-SENSOR-DATA 2020-10-25 20:52:54.515 (Dyson) 22 2c 22 74 69 6d 65 22 3a 22 32 30 32 30 2d 31 30 2d 32 35 ","time":"2020-10-25 2020-10-25 20:52:54.515 (Dyson) 54 31 39 3a 35 32 3a 35 34 2e 30 30 30 5a 22 2c 22 64 61 74 T19:52:54.000Z","dat 2020-10-25 20:52:54.515 (Dyson) 61 22 3a 7b 22 74 61 63 74 22 3a 22 32 39 33 38 22 2c 22 68 a":{"tact":"2938","h 2020-10-25 20:52:54.515 (Dyson) 61 63 74 22 3a 22 30 30 36 34 22 2c 22 70 6d 32 35 22 3a 22 act":"0064","pm25":" 2020-10-25 20:52:54.515 (Dyson) 30 30 30 39 22 2c 22 70 6d 31 30 22 3a 22 30 30 30 36 22 2c 0009","pm10":"0006", 2020-10-25 20:52:54.515 (Dyson) 22 76 61 31 30 22 3a 22 30 30 30 38 22 2c 22 6e 6f 78 6c 22 "va10":"0008","noxl" 2020-10-25 20:52:54.515 (Dyson) 3a 22 30 30 30 30 22 2c 22 70 32 35 72 22 3a 22 30 30 31 30 :"0000","p25r":"0010 2020-10-25 20:52:54.515 (Dyson) 22 2c 22 70 31 30 72 22 3a 22 30 30 31 30 22 2c 22 73 6c 74 ","p10r":"0010","slt 2020-10-25 20:52:54.515 (Dyson) 6d 22 3a 22 4f 46 46 22 7d 7d .. .. .. .. .. .. .. .. .. .. m":"OFF"}} 2020-10-25 20:52:54.516 (Dyson) MqttClient::onMessage Topic '527/A1A-EU-MBA6412A/status/current', Data[Verb]: 'PUBLISH' 2020-10-25 20:52:54.516 (Dyson) MQTT Publish: MQTT message incoming: 527/A1A-EU-MBA6412A/status/current {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2020-10-25T19:52:54.000Z', 'data': {'tact': '2938', 'hact': '0064', 'pm25': '0009', 'pm10': '0006', 'va10': '0008', 'noxl': '0000', 'p25r': '0010', 'p10r': '0010', 'sltm': 'OFF'}} 2020-10-25 20:52:54.516 (Dyson) sensor state recieved 2020-10-25 20:52:54.464 Error: (Dyson) 'onMessage' failed 'AttributeError':''StateData' object has no attribute 'quality_target''. 2020-10-25 20:52:54.464 Error: (Dyson) ----> Line 482 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-10-25 20:52:54.464 Error: (Dyson) ----> Line 310 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-10-25 20:52:54.464 Error: (Dyson) ----> Line 138 in '/tmp/Domoticz/plugins/DysonPureLink/mqtt.py', function onMessage 2020-10-25 20:52:54.464 Error: (Dyson) ----> Line 421 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function onMQTTPublish 2020-10-25 20:52:54.464 Error: (Dyson) ----> Line 359 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function updateDevices 2020-10-25 20:52:54.516 Error: (Dyson) 'onMessage' failed 'KeyError'. 2020-10-25 20:52:54.516 Error: (Dyson) ----> Line 482 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-10-25 20:52:54.516 Error: (Dyson) ----> Line 310 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-10-25 20:52:54.516 Error: (Dyson) ----> Line 138 in '/tmp/Domoticz/plugins/DysonPureLink/mqtt.py', function onMessage 2020-10-25 20:52:54.516 Error: (Dyson) ----> Line 424 in '/tmp/Domoticz/plugins/DysonPureLink/plugin.py', function onMQTTPublish 2020-10-25 20:52:54.516 Error: (Dyson) ----> Line 126 in '/tmp/Domoticz/plugins/DysonPureLink/value_types.py', function init

Booleano75 commented 4 years ago

also sensor data in value_types.py should be reviewed according to

(Dyson) MQTT Publish: MQTT message incoming: 527/A1A-EU-MBA6412A/status/current {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2020-10-25T20:15:08.000Z', 'data': {'tact': '2938', 'hact': '0064', 'pm25': '0009', 'pm10': '0006', 'va10': '0008', 'noxl': '0000', 'p25r': '0011', 'p10r': '0010', 'sltm': 'OFF'}}

as there is no vact

also this formula is wrong

def kelvin_to_celsius (kelvin_value): return kelvin_value - 272.15

correct one should be

def kelvin_to_celsius (kelvin_value): return kelvin_value - 273.15

JanJaapKo commented 4 years ago

Hi @Booleano75 ,

I updated the plugin to at least handle your messages without errors (I tested this by publishing your messages on a local MQTT broker). Some map to already defined devices (so 'vact' equals 'va10') so some of the values will be updated. I will add the additional ones later to Domoticz devices.

Changes is now on branch 'add527' so please pull that one and let me know if it works.

Booleano75 commented 4 years ago

Hi , it works, sensor data are ok. I did some additional test. Fan speed is working but not at 100%.

I did some test and to have the full auto mode working , the following code should be modified

if Unit == self.fanSpeedUnit and Level<=100: arg="0000"+str(Level//10) topic, payload = self.myDevice.set_fan_speed(arg[-4:]) #use last 4 characters as speed level or AUTO

as

if Unit == self.fanSpeedUnit: if Level<=90: arg="0000"+str(1+Level//10) topic, payload = self.myDevice.set_fan_speed(arg[-4:]) #use last 4 characters as speed level or AUTO
else:
topic, payload = self.myDevice.set_fan_mode_auto("ON") #use last 4 characters as speed level or AUTO

also in updatedevice call :

Fan speed

    if self.state_data.fan_speed is not None:

        # Fan speed  
        f_rate = self.state_data.fan_speed

        if (f_rate == "AUTO"):
            nValueNew = 100
            sValueNew = "100" # Auto
        else:
            nValueNew = (int(f_rate)-1)*10
            sValueNew = str((int(f_rate)-1) * 10)
        UpdateDevice(self.fanSpeedUnit, nValueNew, sValueNew)

and in widget definition

Options = {"LevelActions" : "|||||||||||", "LevelNames" : "1|2|3|4|5|6|7|8|9|10|AUTO", "LevelOffHidden" : "false", "SelectorStyle" : "1"} if self.fanSpeedUnit not in Devices: Domoticz.Device(Name='Fan speed', Unit=self.fanSpeedUnit, TypeName="Selector Switch", Image=7, Options=Options).Create()

JanJaapKo commented 4 years ago

Hi,

I created a new Fanspeed widget (idx 23) with the updated behavior. Although I do not really see a difference.... Can you also let me know which other widgets you'd like to see? Some mapping from the json value to a widget description?

Booleano75 commented 4 years ago

Hi, thanks idx 23 is now working perfectly. I don't know for other devices by for mine "LevelNames" : "|1|2|3|4|5|6|7|8|9|10|AUTO", creates an extra empty selection before the 1 value which is actually unused. Also the Auto selecton is not working in this case, i think because of the command sent.

Things to add:

fdir -> flow direction - in HP04 is selectable between 'front' and 'side' -> OFF / ON

On the app is it possible to select the oscillation angle betwenn 0/45/90/180/360 but I haven't yet find a corresponde in the message

thank you so far now it's ok. good work!

JanJaapKo commented 4 years ago

Hi,

I updated the 'normal' fan speed by hiding the off level. I think this one works better then your implementation as it also leaves the icon in the 'on' state at level 1 (which the v2 doesn't do). Please have a look. At my machine, Fan speed to auto also puts the machine into the auto mode, which is achieved in the oncommand in this line: if Unit == self.fanModeUnit or (Unit == self.fanSpeedUnit and Level>100):

Booleano75 commented 4 years ago

Hi, yes the icon is always on now, also when the fan is actually off. Probably a better implementation would be to keep the extra value in the selector (rather than empty put a label 'OFF') and update the icon based on the fanstate ? For the rest V1 and V2 behave quite the same, a part that for HP04 the auto mode doesn't work in V1.

ricorico94 commented 4 years ago

Hi, Thanks a lot to both of you for your work and especially of course to JanJaapKo : with latest branch, the plugin can now discover my product ! I still face an issue with errors in "onMessage": 2020-11-03 19:03:12.429 Status: (DysonPurHotCoolCrypto) Started. 2020-11-03 19:03:13.330 (DysonPurHotCoolCrypto) onStart called 2020-11-03 19:03:13.323 Status: (DysonPurHotCoolCrypto) Entering work loop. 2020-11-03 19:03:13.324 Status: (DysonPurHotCoolCrypto) Initialized version 3.0.1, author 'Jan-Jaap Kostelijk' 2020-11-03 19:03:14.148 (DysonPurHotCoolCrypto) Device instance created: Dyson device from Cloud: 'Salon' with serial 'E3E-EU-XXXXXXX' of type '527', with version 'ECG2PF.30.06.003.0002' 2020-11-03 19:03:14.700 (DysonPurHotCoolCrypto) MQTT connection established 2020-11-03 19:03:14.808 Error: (DysonPurHotCoolCrypto) 'onMessage' failed 'ValueError':'invalid literal for int() with base 10: 'INV''. 2020-11-03 19:03:14.808 Error: (DysonPurHotCoolCrypto) ----> Line 509 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-03 19:03:14.808 Error: (DysonPurHotCoolCrypto) ----> Line 322 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-03 19:03:14.808 Error: (DysonPurHotCoolCrypto) ----> Line 138 in '/home/pi/domoticz/plugins/DysonPureLink/mqtt.py', function onMessage 2020-11-03 19:03:14.808 Error: (DysonPurHotCoolCrypto) ----> Line 447 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMQTTPublish 2020-11-03 19:03:14.808 Error: (DysonPurHotCoolCrypto) ----> Line 218 in '/home/pi/domoticz/plugins/DysonPureLink/value_types.py', function __init__

To be honest, I'm not very skilled in github and as I couldn't find how to replace the master branch by the add527, I went the hard way and modified the plugin.py and value_types.py manually (copy/pasting from github website). I also deleted the various devices created in the past and then re-launched the plugin. Any idea what can happen ?

Also.. can we use the plugin to start/stop the fan ? What's the name of the switch I should use for that ? I couldn't find how to make it work, but maybe it's due to the error above or because I tried with the wrong switch.

br, Ricorico94

JanJaapKo commented 4 years ago

Hi,

I think (or at least hope) it will be solved when I merge the changes, as making the model 527 work is still in separate branch. If you pull now, it should be better. I will work a bit on the improvements mentioned by Fransesco.

Booleano75 commented 4 years ago

Hi, Thanks a lot to both of you for your work and especially of course to JanJaapKo : with latest branch, the plugin can now discover my product ! I still face an issue with errors in "onMessage": 2020-11-03 19:03:12.429 Status: (DysonPurHotCoolCrypto) Started. 2020-11-03 19:03:13.330 (DysonPurHotCoolCrypto) onStart called 2020-11-03 19:03:13.323 Status: (DysonPurHotCoolCrypto) Entering work loop. 2020-11-03 19:03:13.324 Status: (DysonPurHotCoolCrypto) Initialized version 3.0.1, author 'Jan-Jaap Kostelijk' 2020-11-03 19:03:14.148 (DysonPurHotCoolCrypto) Device instance created: Dyson device from Cloud: 'Salon' with serial 'E3E-EU-XXXXXXX' of type '527', with version 'ECG2PF.30.06.003.0002' 2020-11-03 19:03:14.700 (DysonPurHotCoolCrypto) MQTT connection established 2020-11-03 19:03:14.808 Error: (DysonPurHotCoolCrypto) 'onMessage' failed 'ValueError':'invalid literal for int() with base 10: 'INV''. 2020-11-03 19:03:14.808 Error: (DysonPurHotCoolCrypto) ----> Line 509 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-03 19:03:14.808 Error: (DysonPurHotCoolCrypto) ----> Line 322 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-03 19:03:14.808 Error: (DysonPurHotCoolCrypto) ----> Line 138 in '/home/pi/domoticz/plugins/DysonPureLink/mqtt.py', function onMessage 2020-11-03 19:03:14.808 Error: (DysonPurHotCoolCrypto) ----> Line 447 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMQTTPublish 2020-11-03 19:03:14.808 Error: (DysonPurHotCoolCrypto) ----> Line 218 in '/home/pi/domoticz/plugins/DysonPureLink/value_types.py', function __init__

To be honest, I'm not very skilled in github and as I couldn't find how to replace the master branch by the add527, I went the hard way and modified the plugin.py and value_types.py manually (copy/pasting from github website). I also deleted the various devices created in the past and then re-launched the plugin. Any idea what can happen ?

Also.. can we use the plugin to start/stop the fan ? What's the name of the switch I should use for that ? I couldn't find how to make it work, but maybe it's due to the error above or because I tried with the wrong switch.

br, Ricorico94

Hi, is your devicec the new cryptomic version? Maybe something changed in the messaging? Could you enable verbose mode and post the results from the plugin start?

ricorico94 commented 4 years ago

Hi, My device is indeed the new 2020 cryptomic version and I see indeed in replies from dyson the ID 527. Here's a verbose log file: 2020-11-03 22:10:46.989 Status: (DysonPurHotCoolCrypto) Stopping threads. 2020-11-03 22:10:46.989 Status: (DysonPurHotCoolCrypto) Stopped. 2020-11-03 22:10:46.989 Status: (DysonPurHotCoolCrypto) Started. 2020-11-03 22:10:47.900 Status: (DysonPurHotCoolCrypto) Entering work loop. 2020-11-03 22:10:47.901 Status: (DysonPurHotCoolCrypto) Initialized version 3.0.1, author 'Jan-Jaap Kostelijk' 2020-11-03 22:10:48.471 (DysonPurHotCoolCrypto) Heartbeat interval set to: 10. 2020-11-03 22:10:48.471 (DysonPurHotCoolCrypto) Protocol set to: 'MQTT'. 2020-11-03 22:10:48.471 (DysonPurHotCoolCrypto) Transport set to: 'TCP/IP', 192.168.0.17:1883. 2020-11-03 22:10:48.472 (DysonPurHotCoolCrypto) Connect directive received, action initiated successfully. 2020-11-03 22:10:48.522 (DysonPurHotCoolCrypto) onConnect called: Connection 'Name: '192.168.0.17', Transport: 'TCP/IP', Protocol: 'MQTT', Address: '192.168.0.17', Port: '1883', Baud: -1, Bytes: 0, Connected: True, Last Seen: 2020-11-03 22:10:48, Parent: 'None'', Status: '0', Description: 'Success' 2020-11-03 22:10:48.522 (DysonPurHotCoolCrypto) MqttClient::onConnect 2020-11-03 22:10:48.522 (DysonPurHotCoolCrypto) MqttClient::MQTT connected successfully. 2020-11-03 22:10:48.522 (DysonPurHotCoolCrypto) MqttClient::Connect 2020-11-03 22:10:48.522 (DysonPurHotCoolCrypto) MqttClient::MQTT CONNECT ID: 'Domoticz_1604437848' 2020-11-03 22:10:48.522 (DysonPurHotCoolCrypto) Sending 141 bytes of data 2020-11-03 22:10:48.522 (DysonPurHotCoolCrypto) 10 8a 01 00 04 4d 51 54 54 04 c2 00 3c 00 13 44 6f 6d 6f 74 .ʮ..MQTT.®<..Domot 2020-11-03 22:10:48.522 (DysonPurHotCoolCrypto) 69 63 7a 5f 31 36 30 34 34 33 37 38 34 38 00 0f 45 33 45 2d icz_1604437848..E3E- 2020-11-03 22:10:48.522 (DysonPurHotCoolCrypto) 45 55 2d 4d 4e 41 30 31 34 38 41 00 58 70 67 45 6c 53 32 6a EU-MNA0148A.XpgElS2j 2020-11-03 22:10:48.522 (DysonPurHotCoolCrypto) 54 56 36 70 79 72 61 5a 78 33 4a 55 30 6a 4a 35 72 47 35 75 TV6pyraZx3JU0jJ5rG5u 2020-11-03 22:10:48.522 (DysonPurHotCoolCrypto) 70 39 65 2f 61 2f 34 56 43 72 41 52 65 49 30 55 39 45 67 6e p9e/a/4VCrAReI0U9Egn 2020-11-03 22:10:48.522 (DysonPurHotCoolCrypto) 43 52 41 44 57 68 34 45 4c 64 2f 4d 65 55 39 41 38 37 69 52 CRADWh4ELd/MeU9A87iR 2020-11-03 22:10:48.522 (DysonPurHotCoolCrypto) 36 4f 36 47 37 62 7a 49 2b 4d 2f 7a 55 67 7a 37 30 70 51 3d 6O6G7bzI+M/zUgz70pQ= 2020-11-03 22:10:48.522 (DysonPurHotCoolCrypto) 3d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. = 2020-11-03 22:10:49.124 (DysonPurHotCoolCrypto) Received 4 bytes of data 2020-11-03 22:10:49.124 (DysonPurHotCoolCrypto) 20 02 00 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .... 2020-11-03 22:10:49.124 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '', Data[Verb]: 'CONNACK' 2020-11-03 22:10:49.125 (DysonPurHotCoolCrypto) onMQTTConnected called 2020-11-03 22:10:49.125 (DysonPurHotCoolCrypto) MQTT connection established 2020-11-03 22:10:49.125 (DysonPurHotCoolCrypto) MqttClient::Subscribe to topics: ['527/E3E-EU-MNA0148A/status/current', '527/E3E-EU-MNA0148A/status/connection', '527/E3E-EU-MNA0148A/status/faults'] 2020-11-03 22:10:49.125 (DysonPurHotCoolCrypto) MqttClient::Publish 527/E3E-EU-MNA0148A/command ({"msg": "REQUEST-CURRENT-STATE", "time": "2020-11-03T21:10:49Z"}) 2020-11-03 22:10:49.125 (DysonPurHotCoolCrypto) Sending 117 bytes of data 2020-11-03 22:10:49.125 (DysonPurHotCoolCrypto) 82 73 00 01 00 22 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 ³..."527/E3E-EU-MNA 2020-11-03 22:10:49.125 (DysonPurHotCoolCrypto) 30 31 34 38 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 0148A/status/current 2020-11-03 22:10:49.126 (DysonPurHotCoolCrypto) 00 00 25 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 31 34 ..%527/E3E-EU-MNA014 2020-11-03 22:10:49.126 (DysonPurHotCoolCrypto) 38 41 2f 73 74 61 74 75 73 2f 63 6f 6e 6e 65 63 74 69 6f 6e 8A/status/connection 2020-11-03 22:10:49.126 (DysonPurHotCoolCrypto) 00 00 21 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 31 34 ..!527/E3E-EU-MNA014 2020-11-03 22:10:49.126 (DysonPurHotCoolCrypto) 38 41 2f 73 74 61 74 75 73 2f 66 61 75 6c 74 73 00 .. .. .. 8A/status/faults. 2020-11-03 22:10:49.126 (DysonPurHotCoolCrypto) Sending 95 bytes of data 2020-11-03 22:10:49.126 (DysonPurHotCoolCrypto) 30 5d 00 1b 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 31 0]..527/E3E-EU-MNA01 2020-11-03 22:10:49.126 (DysonPurHotCoolCrypto) 34 38 41 2f 63 6f 6d 6d 61 6e 64 7b 22 6d 73 67 22 3a 20 22 48A/command{"msg":." 2020-11-03 22:10:49.126 (DysonPurHotCoolCrypto) 52 45 51 55 45 53 54 2d 43 55 52 52 45 4e 54 2d 53 54 41 54 REQUEST-CURRENT-STAT 2020-11-03 22:10:49.126 (DysonPurHotCoolCrypto) 45 22 2c 20 22 74 69 6d 65 22 3a 20 22 32 30 32 30 2d 31 31 E",."time":."2020-11 2020-11-03 22:10:49.126 (DysonPurHotCoolCrypto) 2d 30 33 54 32 31 3a 31 30 3a 34 39 5a 22 7d .. .. .. .. .. -03T21:10:49Z"} 2020-11-03 22:10:49.177 (DysonPurHotCoolCrypto) Received 7 bytes of data 2020-11-03 22:10:49.177 (DysonPurHotCoolCrypto) 90 05 00 01 00 00 00 .. .. .. .. .. .. .. .. .. .. .. .. .. Ю..... 2020-11-03 22:10:49.177 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '', Data[Verb]: 'SUBACK' 2020-11-03 22:10:49.177 (DysonPurHotCoolCrypto) onMQTTSubscribed 2020-11-03 22:10:49.277 (DysonPurHotCoolCrypto) Received 640 bytes of data 2020-11-03 22:10:49.278 (DysonPurHotCoolCrypto) 30 fd 04 00 22 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 0�.."527/E3E-EU-MNA0 2020-11-03 22:10:49.278 (DysonPurHotCoolCrypto) 31 34 38 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 7b 148A/status/current{ 2020-11-03 22:10:49.278 (DysonPurHotCoolCrypto) 22 6d 73 67 22 3a 22 43 55 52 52 45 4e 54 2d 53 54 41 54 45 "msg":"CURRENT-STATE 2020-11-03 22:10:49.278 (DysonPurHotCoolCrypto) 22 2c 22 74 69 6d 65 22 3a 22 32 30 32 30 2d 31 31 2d 30 33 ","time":"2020-11-03 2020-11-03 22:10:49.278 (DysonPurHotCoolCrypto) 54 32 31 3a 31 30 3a 34 39 2e 30 30 30 5a 22 2c 22 6d 6f 64 T21:10:49.000Z","mod 2020-11-03 22:10:49.278 (DysonPurHotCoolCrypto) 65 2d 72 65 61 73 6f 6e 22 3a 22 50 52 43 22 2c 22 73 74 61 e-reason":"PRC","sta 2020-11-03 22:10:49.278 (DysonPurHotCoolCrypto) 74 65 2d 72 65 61 73 6f 6e 22 3a 22 4d 4f 44 45 22 2c 22 72 te-reason":"MODE","r 2020-11-03 22:10:49.278 (DysonPurHotCoolCrypto) 73 73 69 22 3a 22 2d 36 32 22 2c 22 63 68 61 6e 6e 65 6c 22 ssi":"-62","channel" 2020-11-03 22:10:49.278 (DysonPurHotCoolCrypto) 3a 22 31 22 2c 22 66 71 68 70 22 3a 22 31 30 31 34 38 30 22 :"1","fqhp":"101480" 2020-11-03 22:10:49.278 (DysonPurHotCoolCrypto) 2c 22 66 67 68 70 22 3a 22 38 35 33 33 36 22 2c 22 70 72 6f ,"fghp":"85336","pro 2020-11-03 22:10:49.278 (DysonPurHotCoolCrypto) 64 75 63 74 2d 73 74 61 74 65 22 3a 7b 22 66 70 77 72 22 3a duct-state":{"fpwr": 2020-11-03 22:10:49.278 (DysonPurHotCoolCrypto) 22 4f 46 46 22 2c 22 61 75 74 6f 22 3a 22 4f 46 46 22 2c 22 "OFF","auto":"OFF"," 2020-11-03 22:10:49.278 (DysonPurHotCoolCrypto) 6f 73 63 73 22 3a 22 4f 46 46 22 2c 22 6f 73 6f 6e 22 3a 22 oscs":"OFF","oson":" 2020-11-03 22:10:49.278 (DysonPurHotCoolCrypto) 4f 46 46 22 2c 22 6e 6d 6f 64 22 3a 22 4f 4e 22 2c 22 72 68 OFF","nmod":"ON","rh 2020-11-03 22:10:49.279 (DysonPurHotCoolCrypto) 74 6d 22 3a 22 4f 4e 22 2c 22 66 6e 73 74 22 3a 22 4f 46 46 tm":"ON","fnst":"OFF 2020-11-03 22:10:49.279 (DysonPurHotCoolCrypto) 22 2c 22 65 72 63 64 22 3a 22 4e 4f 4e 45 22 2c 22 77 61 63 ","ercd":"NONE","wac 2020-11-03 22:10:49.279 (DysonPurHotCoolCrypto) 64 22 3a 22 4e 4f 4e 45 22 2c 22 6e 6d 64 76 22 3a 22 30 30 d":"NONE","nmdv":"00 2020-11-03 22:10:49.279 (DysonPurHotCoolCrypto) 30 34 22 2c 22 66 6e 73 70 22 3a 22 30 30 30 34 22 2c 22 62 04","fnsp":"0004","b 2020-11-03 22:10:49.279 (DysonPurHotCoolCrypto) 72 69 6c 22 3a 22 30 30 30 32 22 2c 22 63 6f 72 66 22 3a 22 ril":"0002","corf":" 2020-11-03 22:10:49.279 (DysonPurHotCoolCrypto) 4f 4e 22 2c 22 63 66 6c 72 22 3a 22 49 4e 56 22 2c 22 68 66 ON","cflr":"INV","hf 2020-11-03 22:10:49.279 (DysonPurHotCoolCrypto) 6c 72 22 3a 22 30 30 39 33 22 2c 22 63 66 6c 74 22 3a 22 53 lr":"0093","cflt":"S 2020-11-03 22:10:49.279 (DysonPurHotCoolCrypto) 43 4f 46 22 2c 22 68 66 6c 74 22 3a 22 47 43 4f 4d 22 2c 22 COF","hflt":"GCOM"," 2020-11-03 22:10:49.279 (DysonPurHotCoolCrypto) 73 6c 74 6d 22 3a 22 4f 46 46 22 2c 22 6f 73 61 6c 22 3a 22 sltm":"OFF","osal":" 2020-11-03 22:10:49.279 (DysonPurHotCoolCrypto) 30 30 39 30 22 2c 22 6f 73 61 75 22 3a 22 30 32 37 30 22 2c 0090","osau":"0270", 2020-11-03 22:10:49.279 (DysonPurHotCoolCrypto) 22 61 6e 63 70 22 3a 22 30 31 38 30 22 2c 22 68 6d 6f 64 22 "ancp":"0180","hmod" 2020-11-03 22:10:49.279 (DysonPurHotCoolCrypto) 3a 22 4f 46 46 22 2c 22 68 6d 61 78 22 3a 22 32 39 39 32 22 :"OFF","hmax":"2992" 2020-11-03 22:10:49.279 (DysonPurHotCoolCrypto) 2c 22 74 69 6c 74 22 3a 22 4f 4b 22 2c 22 68 73 74 61 22 3a ,"tilt":"OK","hsta": 2020-11-03 22:10:49.279 (DysonPurHotCoolCrypto) 22 4f 46 46 22 2c 22 70 73 74 61 22 3a 22 4f 46 46 22 2c 22 "OFF","psta":"OFF"," 2020-11-03 22:10:49.279 (DysonPurHotCoolCrypto) 66 64 69 72 22 3a 22 4f 4e 22 7d 2c 22 73 63 68 65 64 75 6c fdir":"ON"},"schedul 2020-11-03 22:10:49.280 (DysonPurHotCoolCrypto) 65 72 22 3a 7b 22 73 72 73 63 22 3a 22 30 30 30 30 30 30 30 er":{"srsc":"0000000 2020-11-03 22:10:49.280 (DysonPurHotCoolCrypto) 30 35 66 35 32 62 30 62 36 22 2c 22 64 73 74 76 22 3a 22 30 05f52b0b6","dstv":"0 2020-11-03 22:10:49.280 (DysonPurHotCoolCrypto) 30 30 31 22 2c 22 74 7a 69 64 22 3a 22 30 30 30 31 22 7d 7d 001","tzid":"0001"}} 2020-11-03 22:10:49.280 (DysonPurHotCoolCrypto) Received 250 bytes of data 2020-11-03 22:10:49.280 (DysonPurHotCoolCrypto) 30 f7 01 00 22 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 0��527/E3E-EU-MNA0 2020-11-03 22:10:49.280 (DysonPurHotCoolCrypto) 31 34 38 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 7b 148A/status/current{ 2020-11-03 22:10:49.280 (DysonPurHotCoolCrypto) 22 6d 73 67 22 3a 22 45 4e 56 49 52 4f 4e 4d 45 4e 54 41 4c "msg":"ENVIRONMENTAL 2020-11-03 22:10:49.280 (DysonPurHotCoolCrypto) 2d 43 55 52 52 45 4e 54 2d 53 45 4e 53 4f 52 2d 44 41 54 41 -CURRENT-SENSOR-DATA 2020-11-03 22:10:49.280 (DysonPurHotCoolCrypto) 22 2c 22 74 69 6d 65 22 3a 22 32 30 32 30 2d 31 31 2d 30 33 ","time":"2020-11-03 2020-11-03 22:10:49.280 (DysonPurHotCoolCrypto) 54 32 31 3a 31 30 3a 34 39 2e 30 30 30 5a 22 2c 22 64 61 74 T21:10:49.000Z","dat 2020-11-03 22:10:49.280 (DysonPurHotCoolCrypto) 61 22 3a 7b 22 74 61 63 74 22 3a 22 32 39 34 33 22 2c 22 68 a":{"tact":"2943","h 2020-11-03 22:10:49.280 (DysonPurHotCoolCrypto) 61 63 74 22 3a 22 30 30 36 38 22 2c 22 70 6d 32 35 22 3a 22 act":"0068","pm25":" 2020-11-03 22:10:49.281 (DysonPurHotCoolCrypto) 30 30 30 33 22 2c 22 70 6d 31 30 22 3a 22 30 30 30 32 22 2c 0003","pm10":"0002", 2020-11-03 22:10:49.281 (DysonPurHotCoolCrypto) 22 76 61 31 30 22 3a 22 30 30 32 31 22 2c 22 6e 6f 78 6c 22 "va10":"0021","noxl" 2020-11-03 22:10:49.281 (DysonPurHotCoolCrypto) 3a 22 30 30 30 30 22 2c 22 70 32 35 72 22 3a 22 30 30 30 34 :"0000","p25r":"0004 2020-11-03 22:10:49.281 (DysonPurHotCoolCrypto) 22 2c 22 70 31 30 72 22 3a 22 30 30 30 34 22 2c 22 73 6c 74 ","p10r":"0004","slt 2020-11-03 22:10:49.281 (DysonPurHotCoolCrypto) 6d 22 3a 22 4f 46 46 22 7d 7d .. .. .. .. .. .. .. .. .. .. m":"OFF"}} 2020-11-03 22:10:49.284 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/current', Data[Verb]: 'PUBLISH' 2020-11-03 22:10:49.285 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/current {'msg': 'CURRENT-STATE', 'time': '2020-11-03T21:10:49.000Z', 'mode-reason': 'PRC', 'state-reason': 'MODE', 'rssi': '-62', 'channel': '1', 'fqhp': '101480', 'fghp': '85336', 'product-state': {'fpwr': 'OFF', 'auto': 'OFF', 'oscs': 'OFF', 'oson': 'OFF', 'nmod': 'ON', 'rhtm': 'ON', 'fnst': 'OFF', 'ercd': 'NONE', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': '0004', 'bril': '0002', 'corf': 'ON', 'cflr': 'INV', 'hflr': '0093', 'cflt': 'SCOF', 'hflt': 'GCOM', 'sltm': 'OFF', 'osal': '0090', 'osau': '0270', 'ancp': '0180', 'hmod': 'OFF', 'hmax': '2992', 'tilt': 'OK', 'hsta': 'OFF', 'psta': 'OFF', 'fdir': 'ON'}, 'scheduler': {'srsc': '000000005f52b0b6', 'dstv': '0001', 'tzid': '0001'}} 2020-11-03 22:10:49.285 (DysonPurHotCoolCrypto) machine state or state change recieved 2020-11-03 22:10:49.286 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/current', Data[Verb]: 'PUBLISH' 2020-11-03 22:10:49.286 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/current {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2020-11-03T21:10:49.000Z', 'data': {'tact': '2943', 'hact': '0068', 'pm25': '0003', 'pm10': '0002', 'va10': '0021', 'noxl': '0000', 'p25r': '0004', 'p10r': '0004', 'sltm': 'OFF'}} 2020-11-03 22:10:49.286 (DysonPurHotCoolCrypto) sensor state recieved 2020-11-03 22:10:49.287 (DysonPurHotCoolCrypto - Dust (PM 2,5)) Updating device from 2:'2' to have values 4:'4'. 2020-11-03 22:10:49.303 (DysonPurHotCoolCrypto) Update DysonPurHotCoolCrypto - Dust (PM 2,5): nValue 4 - sValue 4 - BatteryLevel 255 2020-11-03 22:10:49.303 (DysonPurHotCoolCrypto - Particles (PM 25)) Updating device from 2:'2' to have values 3:'3'. 2020-11-03 22:10:49.319 (DysonPurHotCoolCrypto) Update DysonPurHotCoolCrypto - Particles (PM 25): nValue 3 - sValue 3 - BatteryLevel 255 2020-11-03 22:10:49.319 (DysonPurHotCoolCrypto) update SensorData: SensorsData: Temperature: 21.150000000000034 C, Humidity: 68 %, Volatile Compounds: 21, Particles: PM 2,5: 4, PM 10: 4, sleep timer: 0 2020-11-03 22:10:49.285 Error: (DysonPurHotCoolCrypto) 'onMessage' failed 'ValueError':'invalid literal for int() with base 10: 'INV''. 2020-11-03 22:10:49.285 Error: (DysonPurHotCoolCrypto) ----> Line 509 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-03 22:10:49.285 Error: (DysonPurHotCoolCrypto) ----> Line 322 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-03 22:10:49.286 Error: (DysonPurHotCoolCrypto) ----> Line 138 in '/home/pi/domoticz/plugins/DysonPureLink/mqtt.py', function onMessage 2020-11-03 22:10:49.286 Error: (DysonPurHotCoolCrypto) ----> Line 447 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMQTTPublish 2020-11-03 22:10:49.286 Error: (DysonPurHotCoolCrypto) ----> Line 218 in '/home/pi/domoticz/plugins/DysonPureLink/value_types.py', function init 2020-11-03 22:10:57.984 (DysonPurHotCoolCrypto) Polling unit in 29 heartbeats. 2020-11-03 22:10:57.985 (DysonPurHotCoolCrypto) MqttClient::onHeartbeat 2020-11-03 22:10:57.985 (DysonPurHotCoolCrypto) MqttClient::Ping 2020-11-03 22:10:57.985 (DysonPurHotCoolCrypto) Sending 2 bytes of data 2020-11-03 22:10:57.985 (DysonPurHotCoolCrypto) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. � 2020-11-03 22:10:58.035 (DysonPurHotCoolCrypto) Received 2 bytes of data 2020-11-03 22:10:58.035 (DysonPurHotCoolCrypto) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Ю 2020-11-03 22:10:58.035 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '', Data[Verb]: 'PINGRESP'

JanJaapKo commented 4 years ago

Right, can you give it another try?

ricorico94 commented 4 years ago

Hi, you mean just activating again the plugin and providing the new log ? If yes, here's another one below. Just in case it matters: I notice that the switches created by plugin are not updated (at least the ones I thought would be relevant like fan speed have not been updated for several hours), whereas measurements (air quality, ..) have been updated (at least like 4 to 10 minutes ago). And in the plugin settings, I only filled the "account" connection fields (ie I kept the fields "device serial" and "device password" empty).

2020-11-03 22:50:57.409 (DysonPurHotCoolCrypto) MqttClient::MQTT CONNECT ID: 'Domoticz_1604440257' 2020-11-03 22:50:57.409 (DysonPurHotCoolCrypto) Sending 141 bytes of data 2020-11-03 22:50:57.409 (DysonPurHotCoolCrypto) 10 8a 01 00 04 4d 51 54 54 04 c2 00 3c 00 13 44 6f 6d 6f 74 .ʮ..MQTT.®<..Domot 2020-11-03 22:50:57.409 (DysonPurHotCoolCrypto) 69 63 7a 5f 31 36 30 34 34 34 30 32 35 37 00 0f 45 33 45 2d icz_1604440257..E3E- 2020-11-03 22:50:57.409 (DysonPurHotCoolCrypto) 45 55 2d 4d 4e 41 30 31 34 38 41 00 58 70 67 45 6c 53 32 6a EU-MNA0148A.XpgElS2j 2020-11-03 22:50:57.410 (DysonPurHotCoolCrypto) 54 56 36 70 79 72 61 5a 78 33 4a 55 30 6a 4a 35 72 47 35 75 TV6pyraZx3JU0jJ5rG5u 2020-11-03 22:50:57.410 (DysonPurHotCoolCrypto) 70 39 65 2f 61 2f 34 56 43 72 41 52 65 49 30 55 39 45 67 6e p9e/a/4VCrAReI0U9Egn 2020-11-03 22:50:57.410 (DysonPurHotCoolCrypto) 43 52 41 44 57 68 34 45 4c 64 2f 4d 65 55 39 41 38 37 69 52 CRADWh4ELd/MeU9A87iR 2020-11-03 22:50:57.410 (DysonPurHotCoolCrypto) 36 4f 36 47 37 62 7a 49 2b 4d 2f 7a 55 67 7a 37 30 70 51 3d 6O6G7bzI+M/zUgz70pQ= 2020-11-03 22:50:57.410 (DysonPurHotCoolCrypto) 3d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. = 2020-11-03 22:50:57.962 (DysonPurHotCoolCrypto) Received 4 bytes of data 2020-11-03 22:50:57.962 (DysonPurHotCoolCrypto) 20 02 00 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .... 2020-11-03 22:50:57.962 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '', Data[Verb]: 'CONNACK' 2020-11-03 22:50:57.962 (DysonPurHotCoolCrypto) onMQTTConnected called 2020-11-03 22:50:57.962 (DysonPurHotCoolCrypto) MQTT connection established 2020-11-03 22:50:57.963 (DysonPurHotCoolCrypto) MqttClient::Subscribe to topics: ['527/E3E-EU-MNA0148A/status/current', '527/E3E-EU-MNA0148A/status/connection', '527/E3E-EU-MNA0148A/status/faults'] 2020-11-03 22:50:57.963 (DysonPurHotCoolCrypto) MqttClient::Publish 527/E3E-EU-MNA0148A/command ({"msg": "REQUEST-CURRENT-STATE", "time": "2020-11-03T21:50:57Z"}) 2020-11-03 22:50:57.963 (DysonPurHotCoolCrypto) Sending 117 bytes of data 2020-11-03 22:50:57.963 (DysonPurHotCoolCrypto) 82 73 00 01 00 22 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 ³..."527/E3E-EU-MNA 2020-11-03 22:50:57.964 (DysonPurHotCoolCrypto) 30 31 34 38 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 0148A/status/current 2020-11-03 22:50:57.964 (DysonPurHotCoolCrypto) 00 00 25 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 31 34 ..%527/E3E-EU-MNA014 2020-11-03 22:50:57.964 (DysonPurHotCoolCrypto) 38 41 2f 73 74 61 74 75 73 2f 63 6f 6e 6e 65 63 74 69 6f 6e 8A/status/connection 2020-11-03 22:50:57.964 (DysonPurHotCoolCrypto) 00 00 21 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 31 34 ..!527/E3E-EU-MNA014 2020-11-03 22:50:57.964 (DysonPurHotCoolCrypto) 38 41 2f 73 74 61 74 75 73 2f 66 61 75 6c 74 73 00 .. .. .. 8A/status/faults. 2020-11-03 22:50:57.964 (DysonPurHotCoolCrypto) Sending 95 bytes of data 2020-11-03 22:50:57.964 (DysonPurHotCoolCrypto) 30 5d 00 1b 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 31 0]..527/E3E-EU-MNA01 2020-11-03 22:50:57.964 (DysonPurHotCoolCrypto) 34 38 41 2f 63 6f 6d 6d 61 6e 64 7b 22 6d 73 67 22 3a 20 22 48A/command{"msg":." 2020-11-03 22:50:57.965 (DysonPurHotCoolCrypto) 52 45 51 55 45 53 54 2d 43 55 52 52 45 4e 54 2d 53 54 41 54 REQUEST-CURRENT-STAT 2020-11-03 22:50:57.965 (DysonPurHotCoolCrypto) 45 22 2c 20 22 74 69 6d 65 22 3a 20 22 32 30 32 30 2d 31 31 E",."time":."2020-11 2020-11-03 22:50:57.965 (DysonPurHotCoolCrypto) 2d 30 33 54 32 31 3a 35 30 3a 35 37 5a 22 7d .. .. .. .. .. -03T21:50:57Z"} 2020-11-03 22:50:58.015 (DysonPurHotCoolCrypto) Received 7 bytes of data 2020-11-03 22:50:58.015 (DysonPurHotCoolCrypto) 90 05 00 01 00 00 00 .. .. .. .. .. .. .. .. .. .. .. .. .. Ю..... 2020-11-03 22:50:58.015 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '', Data[Verb]: 'SUBACK' 2020-11-03 22:50:58.015 (DysonPurHotCoolCrypto) onMQTTSubscribed 2020-11-03 22:50:58.066 (DysonPurHotCoolCrypto) Received 641 bytes of data 2020-11-03 22:50:58.066 (DysonPurHotCoolCrypto) 30 fe 04 00 22 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 0�.."527/E3E-EU-MNA0 2020-11-03 22:50:58.066 (DysonPurHotCoolCrypto) 31 34 38 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 7b 148A/status/current{ 2020-11-03 22:50:58.066 (DysonPurHotCoolCrypto) 22 6d 73 67 22 3a 22 43 55 52 52 45 4e 54 2d 53 54 41 54 45 "msg":"CURRENT-STATE 2020-11-03 22:50:58.066 (DysonPurHotCoolCrypto) 22 2c 22 74 69 6d 65 22 3a 22 32 30 32 30 2d 31 31 2d 30 33 ","time":"2020-11-03 2020-11-03 22:50:58.066 (DysonPurHotCoolCrypto) 54 32 31 3a 35 30 3a 35 38 2e 30 30 30 5a 22 2c 22 6d 6f 64 T21:50:58.000Z","mod 2020-11-03 22:50:58.066 (DysonPurHotCoolCrypto) 65 2d 72 65 61 73 6f 6e 22 3a 22 4c 41 50 50 22 2c 22 73 74 e-reason":"LAPP","st 2020-11-03 22:50:58.066 (DysonPurHotCoolCrypto) 61 74 65 2d 72 65 61 73 6f 6e 22 3a 22 4d 4f 44 45 22 2c 22 ate-reason":"MODE"," 2020-11-03 22:50:58.066 (DysonPurHotCoolCrypto) 72 73 73 69 22 3a 22 2d 36 31 22 2c 22 63 68 61 6e 6e 65 6c rssi":"-61","channel 2020-11-03 22:50:58.066 (DysonPurHotCoolCrypto) 22 3a 22 31 22 2c 22 66 71 68 70 22 3a 22 31 30 31 34 34 30 ":"1","fqhp":"101440 2020-11-03 22:50:58.066 (DysonPurHotCoolCrypto) 22 2c 22 66 67 68 70 22 3a 22 36 35 36 30 30 22 2c 22 70 72 ","fghp":"65600","pr 2020-11-03 22:50:58.067 (DysonPurHotCoolCrypto) 6f 64 75 63 74 2d 73 74 61 74 65 22 3a 7b 22 66 70 77 72 22 oduct-state":{"fpwr" 2020-11-03 22:50:58.067 (DysonPurHotCoolCrypto) 3a 22 4f 46 46 22 2c 22 61 75 74 6f 22 3a 22 4f 46 46 22 2c :"OFF","auto":"OFF", 2020-11-03 22:50:58.067 (DysonPurHotCoolCrypto) 22 6f 73 63 73 22 3a 22 4f 46 46 22 2c 22 6f 73 6f 6e 22 3a "oscs":"OFF","oson": 2020-11-03 22:50:58.067 (DysonPurHotCoolCrypto) 22 4f 46 46 22 2c 22 6e 6d 6f 64 22 3a 22 4f 4e 22 2c 22 72 "OFF","nmod":"ON","r 2020-11-03 22:50:58.067 (DysonPurHotCoolCrypto) 68 74 6d 22 3a 22 4f 4e 22 2c 22 66 6e 73 74 22 3a 22 4f 46 htm":"ON","fnst":"OF 2020-11-03 22:50:58.067 (DysonPurHotCoolCrypto) 46 22 2c 22 65 72 63 64 22 3a 22 4e 4f 4e 45 22 2c 22 77 61 F","ercd":"NONE","wa 2020-11-03 22:50:58.067 (DysonPurHotCoolCrypto) 63 64 22 3a 22 4e 4f 4e 45 22 2c 22 6e 6d 64 76 22 3a 22 30 cd":"NONE","nmdv":"0 2020-11-03 22:50:58.067 (DysonPurHotCoolCrypto) 30 30 34 22 2c 22 66 6e 73 70 22 3a 22 30 30 30 32 22 2c 22 004","fnsp":"0002"," 2020-11-03 22:50:58.067 (DysonPurHotCoolCrypto) 62 72 69 6c 22 3a 22 30 30 30 32 22 2c 22 63 6f 72 66 22 3a bril":"0002","corf": 2020-11-03 22:50:58.067 (DysonPurHotCoolCrypto) 22 4f 4e 22 2c 22 63 66 6c 72 22 3a 22 49 4e 56 22 2c 22 68 "ON","cflr":"INV","h 2020-11-03 22:50:58.068 (DysonPurHotCoolCrypto) 66 6c 72 22 3a 22 30 30 39 33 22 2c 22 63 66 6c 74 22 3a 22 flr":"0093","cflt":" 2020-11-03 22:50:58.068 (DysonPurHotCoolCrypto) 53 43 4f 46 22 2c 22 68 66 6c 74 22 3a 22 47 43 4f 4d 22 2c SCOF","hflt":"GCOM", 2020-11-03 22:50:58.068 (DysonPurHotCoolCrypto) 22 73 6c 74 6d 22 3a 22 4f 46 46 22 2c 22 6f 73 61 6c 22 3a "sltm":"OFF","osal": 2020-11-03 22:50:58.068 (DysonPurHotCoolCrypto) 22 30 30 39 30 22 2c 22 6f 73 61 75 22 3a 22 30 32 37 30 22 "0090","osau":"0270" 2020-11-03 22:50:58.068 (DysonPurHotCoolCrypto) 2c 22 61 6e 63 70 22 3a 22 30 31 38 30 22 2c 22 68 6d 6f 64 ,"ancp":"0180","hmod 2020-11-03 22:50:58.068 (DysonPurHotCoolCrypto) 22 3a 22 4f 46 46 22 2c 22 68 6d 61 78 22 3a 22 32 39 39 32 ":"OFF","hmax":"2992 2020-11-03 22:50:58.068 (DysonPurHotCoolCrypto) 22 2c 22 74 69 6c 74 22 3a 22 4f 4b 22 2c 22 68 73 74 61 22 ","tilt":"OK","hsta" 2020-11-03 22:50:58.068 (DysonPurHotCoolCrypto) 3a 22 4f 46 46 22 2c 22 70 73 74 61 22 3a 22 4f 46 46 22 2c :"OFF","psta":"OFF", 2020-11-03 22:50:58.068 (DysonPurHotCoolCrypto) 22 66 64 69 72 22 3a 22 4f 4e 22 7d 2c 22 73 63 68 65 64 75 "fdir":"ON"},"schedu 2020-11-03 22:50:58.069 (DysonPurHotCoolCrypto) 6c 65 72 22 3a 7b 22 73 72 73 63 22 3a 22 30 30 30 30 30 30 ler":{"srsc":"000000 2020-11-03 22:50:58.069 (DysonPurHotCoolCrypto) 30 30 35 66 61 31 63 65 30 64 22 2c 22 64 73 74 76 22 3a 22 005fa1ce0d","dstv":" 2020-11-03 22:50:58.069 (DysonPurHotCoolCrypto) 30 30 30 31 22 2c 22 74 7a 69 64 22 3a 22 30 30 30 31 22 7d 0001","tzid":"0001"} 2020-11-03 22:50:58.069 (DysonPurHotCoolCrypto) 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. } 2020-11-03 22:50:58.074 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/current', Data[Verb]: 'PUBLISH' 2020-11-03 22:50:58.075 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/current {'msg': 'CURRENT-STATE', 'time': '2020-11-03T21:50:58.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'rssi': '-61', 'channel': '1', 'fqhp': '101440', 'fghp': '65600', 'product-state': {'fpwr': 'OFF', 'auto': 'OFF', 'oscs': 'OFF', 'oson': 'OFF', 'nmod': 'ON', 'rhtm': 'ON', 'fnst': 'OFF', 'ercd': 'NONE', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': '0002', 'bril': '0002', 'corf': 'ON', 'cflr': 'INV', 'hflr': '0093', 'cflt': 'SCOF', 'hflt': 'GCOM', 'sltm': 'OFF', 'osal': '0090', 'osau': '0270', 'ancp': '0180', 'hmod': 'OFF', 'hmax': '2992', 'tilt': 'OK', 'hsta': 'OFF', 'psta': 'OFF', 'fdir': 'ON'}, 'scheduler': {'srsc': '000000005fa1ce0d', 'dstv': '0001', 'tzid': '0001'}} 2020-11-03 22:50:58.075 (DysonPurHotCoolCrypto) machine state or state change recieved 2020-11-03 22:50:58.126 (DysonPurHotCoolCrypto) Received 250 bytes of data 2020-11-03 22:50:58.126 (DysonPurHotCoolCrypto) 30 f7 01 00 22 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 0��527/E3E-EU-MNA0 2020-11-03 22:50:58.126 (DysonPurHotCoolCrypto) 31 34 38 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 7b 148A/status/current{ 2020-11-03 22:50:58.126 (DysonPurHotCoolCrypto) 22 6d 73 67 22 3a 22 45 4e 56 49 52 4f 4e 4d 45 4e 54 41 4c "msg":"ENVIRONMENTAL 2020-11-03 22:50:58.126 (DysonPurHotCoolCrypto) 2d 43 55 52 52 45 4e 54 2d 53 45 4e 53 4f 52 2d 44 41 54 41 -CURRENT-SENSOR-DATA 2020-11-03 22:50:58.126 (DysonPurHotCoolCrypto) 22 2c 22 74 69 6d 65 22 3a 22 32 30 32 30 2d 31 31 2d 30 33 ","time":"2020-11-03 2020-11-03 22:50:58.126 (DysonPurHotCoolCrypto) 54 32 31 3a 35 30 3a 35 38 2e 30 30 30 5a 22 2c 22 64 61 74 T21:50:58.000Z","dat 2020-11-03 22:50:58.126 (DysonPurHotCoolCrypto) 61 22 3a 7b 22 74 61 63 74 22 3a 22 32 39 34 35 22 2c 22 68 a":{"tact":"2945","h 2020-11-03 22:50:58.127 (DysonPurHotCoolCrypto) 61 63 74 22 3a 22 30 30 36 36 22 2c 22 70 6d 32 35 22 3a 22 act":"0066","pm25":" 2020-11-03 22:50:58.127 (DysonPurHotCoolCrypto) 30 30 30 33 22 2c 22 70 6d 31 30 22 3a 22 30 30 30 31 22 2c 0003","pm10":"0001", 2020-11-03 22:50:58.127 (DysonPurHotCoolCrypto) 22 76 61 31 30 22 3a 22 30 30 32 35 22 2c 22 6e 6f 78 6c 22 "va10":"0025","noxl" 2020-11-03 22:50:58.127 (DysonPurHotCoolCrypto) 3a 22 30 30 30 30 22 2c 22 70 32 35 72 22 3a 22 30 30 30 33 :"0000","p25r":"0003 2020-11-03 22:50:58.127 (DysonPurHotCoolCrypto) 22 2c 22 70 31 30 72 22 3a 22 30 30 30 33 22 2c 22 73 6c 74 ","p10r":"0003","slt 2020-11-03 22:50:58.127 (DysonPurHotCoolCrypto) 6d 22 3a 22 4f 46 46 22 7d 7d .. .. .. .. .. .. .. .. .. .. m":"OFF"}} 2020-11-03 22:50:58.127 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/current', Data[Verb]: 'PUBLISH' 2020-11-03 22:50:58.128 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/current {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2020-11-03T21:50:58.000Z', 'data': {'tact': '2945', 'hact': '0066', 'pm25': '0003', 'pm10': '0001', 'va10': '0025', 'noxl': '0000', 'p25r': '0003', 'p10r': '0003', 'sltm': 'OFF'}} 2020-11-03 22:50:58.128 (DysonPurHotCoolCrypto) sensor state recieved 2020-11-03 22:50:58.128 (DysonPurHotCoolCrypto - Temperature and Humidity) Updating device from 1:'21.6;65;1' to have values 1:'21.3;66;1'. 2020-11-03 22:50:58.169 (DysonPurHotCoolCrypto) Update DysonPurHotCoolCrypto - Temperature and Humidity: nValue 1 - sValue 21.3;66;1 - BatteryLevel 255 2020-11-03 22:50:58.169 (DysonPurHotCoolCrypto - Dust (PM 2,5)) Updating device from 2:'2' to have values 3:'3'. 2020-11-03 22:50:58.203 (DysonPurHotCoolCrypto) Update DysonPurHotCoolCrypto - Dust (PM 2,5): nValue 3 - sValue 3 - BatteryLevel 255 2020-11-03 22:50:58.203 (DysonPurHotCoolCrypto - Dust (PM 10)) Updating device from 2:'2' to have values 3:'3'. 2020-11-03 22:50:58.222 (DysonPurHotCoolCrypto) Update DysonPurHotCoolCrypto - Dust (PM 10): nValue 3 - sValue 3 - BatteryLevel 255 2020-11-03 22:50:58.222 (DysonPurHotCoolCrypto - Particles (PM 25)) Updating device from 2:'2' to have values 3:'3'. 2020-11-03 22:50:58.258 (DysonPurHotCoolCrypto) Update DysonPurHotCoolCrypto - Particles (PM 25): nValue 3 - sValue 3 - BatteryLevel 255 2020-11-03 22:50:58.258 (DysonPurHotCoolCrypto) update SensorData: SensorsData: Temperature: 21.350000000000023 C, Humidity: 66 %, Volatile Compounds: 25, Particles: PM 2,5: 3, PM 10: 3, sleep timer: 0 2020-11-03 22:50:58.075 Error: (DysonPurHotCoolCrypto) 'onMessage' failed 'ValueError':'invalid literal for int() with base 10: 'INV''. 2020-11-03 22:50:58.075 Error: (DysonPurHotCoolCrypto) ----> Line 509 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-03 22:50:58.075 Error: (DysonPurHotCoolCrypto) ----> Line 322 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-03 22:50:58.075 Error: (DysonPurHotCoolCrypto) ----> Line 138 in '/home/pi/domoticz/plugins/DysonPureLink/mqtt.py', function onMessage 2020-11-03 22:50:58.075 Error: (DysonPurHotCoolCrypto) ----> Line 447 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMQTTPublish 2020-11-03 22:50:58.075 Error: (DysonPurHotCoolCrypto) ----> Line 218 in '/home/pi/domoticz/plugins/DysonPureLink/value_types.py', function init

2020-11-03 22:51:06.875 (DysonPurHotCoolCrypto) Polling unit in 29 heartbeats. 2020-11-03 22:51:06.875 (DysonPurHotCoolCrypto) MqttClient::onHeartbeat 2020-11-03 22:51:06.875 (DysonPurHotCoolCrypto) MqttClient::Ping 2020-11-03 22:51:06.875 (DysonPurHotCoolCrypto) Sending 2 bytes of data 2020-11-03 22:51:06.875 (DysonPurHotCoolCrypto) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. � 2020-11-03 22:51:06.927 (DysonPurHotCoolCrypto) Received 2 bytes of data 2020-11-03 22:51:06.927 (DysonPurHotCoolCrypto) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Ю 2020-11-03 22:51:06.927 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '', Data[Verb]: 'PINGRESP'

2020-11-03 22:51:16.900 (DysonPurHotCoolCrypto) Polling unit in 28 heartbeats. 2020-11-03 22:51:16.900 (DysonPurHotCoolCrypto) MqttClient::onHeartbeat 2020-11-03 22:51:16.900 (DysonPurHotCoolCrypto) MqttClient::Ping 2020-11-03 22:51:16.900 (DysonPurHotCoolCrypto) Sending 2 bytes of data 2020-11-03 22:51:16.900 (DysonPurHotCoolCrypto) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. � 2020-11-03 22:51:16.951 (DysonPurHotCoolCrypto) Received 2 bytes of data 2020-11-03 22:51:16.951 (DysonPurHotCoolCrypto) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Ю 2020-11-03 22:51:16.953 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '', Data[Verb]: 'PINGRESP'

2020-11-03 22:51:26.879 (DysonPurHotCoolCrypto) Polling unit in 27 heartbeats. 2020-11-03 22:51:26.879 (DysonPurHotCoolCrypto) MqttClient::onHeartbeat 2020-11-03 22:51:26.879 (DysonPurHotCoolCrypto) MqttClient::Ping 2020-11-03 22:51:26.879 (DysonPurHotCoolCrypto) Sending 2 bytes of data 2020-11-03 22:51:26.879 (DysonPurHotCoolCrypto) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. � 2020-11-03 22:51:26.929 (DysonPurHotCoolCrypto) Received 2 bytes of data 2020-11-03 22:51:26.930 (DysonPurHotCoolCrypto) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Ю 2020-11-03 22:51:26.930 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '', Data[Verb]: 'PINGRESP'

ricorico94 commented 4 years ago

Sorry, I had misunderstood the message that the Master branch had just been updated.. Here's a new log after updating the plugin. I'm afraid I still face errors.

2020-11-03 23:05:21.000 Status: New sensors allowed for 5 minutes...

2020-11-03 23:05:34.831 Status: (DysonPurHotCoolCrypto) Stop directive received. 2020-11-03 23:05:34.831 Status: (DysonPurHotCoolCrypto) Exiting work loop. 2020-11-03 23:05:35.331 Status: (DysonPurHotCoolCrypto) Stopping threads. 2020-11-03 23:05:35.331 Status: (DysonPurHotCoolCrypto) Stopped. 2020-11-03 23:05:35.331 Status: (DysonPurHotCoolCrypto) Started.

2020-11-03 23:05:36.813 (DysonPurHotCoolCrypto) Protocol set to: 'MQTT'. 2020-11-03 23:05:36.813 (DysonPurHotCoolCrypto) Transport set to: 'TCP/IP', 192.168.0.17:1883. 2020-11-03 23:05:36.813 (DysonPurHotCoolCrypto) Connect directive received, action initiated successfully. 2020-11-03 23:05:36.863 (DysonPurHotCoolCrypto) onConnect called: Connection 'Name: '192.168.0.17', Transport: 'TCP/IP', Protocol: 'MQTT', Address: '192.168.0.17', Port: '1883', Baud: -1, Bytes: 0, Connected: True, Last Seen: 2020-11-03 23:05:36, Parent: 'None'', Status: '0', Description: 'Success' 2020-11-03 23:05:36.863 (DysonPurHotCoolCrypto) MqttClient::onConnect 2020-11-03 23:05:36.864 (DysonPurHotCoolCrypto) MqttClient::MQTT connected successfully. 2020-11-03 23:05:36.864 (DysonPurHotCoolCrypto) MqttClient::Connect 2020-11-03 23:05:36.864 (DysonPurHotCoolCrypto) MqttClient::MQTT CONNECT ID: 'Domoticz_1604441136' 2020-11-03 23:05:36.864 (DysonPurHotCoolCrypto) Sending 141 bytes of data 2020-11-03 23:05:36.864 (DysonPurHotCoolCrypto) 10 8a 01 00 04 4d 51 54 54 04 c2 00 3c 00 13 44 6f 6d 6f 74 .ʮ..MQTT.®<..Domot 2020-11-03 23:05:36.864 (DysonPurHotCoolCrypto) 69 63 7a 5f 31 36 30 34 34 34 31 31 33 36 00 0f 45 33 45 2d icz_1604441136..E3E- 2020-11-03 23:05:36.864 (DysonPurHotCoolCrypto) 45 55 2d 4d 4e 41 30 31 34 38 41 00 58 70 67 45 6c 53 32 6a EU-MNA0148A.XpgElS2j 2020-11-03 23:05:36.864 (DysonPurHotCoolCrypto) 54 56 36 70 79 72 61 5a 78 33 4a 55 30 6a 4a 35 72 47 35 75 TV6pyraZx3JU0jJ5rG5u 2020-11-03 23:05:36.864 (DysonPurHotCoolCrypto) 70 39 65 2f 61 2f 34 56 43 72 41 52 65 49 30 55 39 45 67 6e p9e/a/4VCrAReI0U9Egn 2020-11-03 23:05:36.864 (DysonPurHotCoolCrypto) 43 52 41 44 57 68 34 45 4c 64 2f 4d 65 55 39 41 38 37 69 52 CRADWh4ELd/MeU9A87iR 2020-11-03 23:05:36.864 (DysonPurHotCoolCrypto) 36 4f 36 47 37 62 7a 49 2b 4d 2f 7a 55 67 7a 37 30 70 51 3d 6O6G7bzI+M/zUgz70pQ= 2020-11-03 23:05:36.864 (DysonPurHotCoolCrypto) 3d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. = 2020-11-03 23:05:36.914 (DysonPurHotCoolCrypto) Received 4 bytes of data 2020-11-03 23:05:36.914 (DysonPurHotCoolCrypto) 20 02 00 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .... 2020-11-03 23:05:36.914 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '', Data[Verb]: 'CONNACK' 2020-11-03 23:05:36.914 (DysonPurHotCoolCrypto) onMQTTConnected called 2020-11-03 23:05:36.914 (DysonPurHotCoolCrypto) MQTT connection established 2020-11-03 23:05:36.914 (DysonPurHotCoolCrypto) MqttClient::Subscribe to topics: ['527/E3E-EU-MNA0148A/status/current', '527/E3E-EU-MNA0148A/status/connection', '527/E3E-EU-MNA0148A/status/faults'] 2020-11-03 23:05:36.915 (DysonPurHotCoolCrypto) MqttClient::Publish 527/E3E-EU-MNA0148A/command ({"msg": "REQUEST-CURRENT-STATE", "time": "2020-11-03T22:05:36Z"}) 2020-11-03 23:05:36.915 (DysonPurHotCoolCrypto) Sending 117 bytes of data 2020-11-03 23:05:36.915 (DysonPurHotCoolCrypto) 82 73 00 01 00 22 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 ³..."527/E3E-EU-MNA 2020-11-03 23:05:36.915 (DysonPurHotCoolCrypto) 30 31 34 38 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 0148A/status/current 2020-11-03 23:05:36.915 (DysonPurHotCoolCrypto) 00 00 25 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 31 34 ..%527/E3E-EU-MNA014 2020-11-03 23:05:36.915 (DysonPurHotCoolCrypto) 38 41 2f 73 74 61 74 75 73 2f 63 6f 6e 6e 65 63 74 69 6f 6e 8A/status/connection 2020-11-03 23:05:36.915 (DysonPurHotCoolCrypto) 00 00 21 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 31 34 ..!527/E3E-EU-MNA014 2020-11-03 23:05:36.915 (DysonPurHotCoolCrypto) 38 41 2f 73 74 61 74 75 73 2f 66 61 75 6c 74 73 00 .. .. .. 8A/status/faults. 2020-11-03 23:05:36.915 (DysonPurHotCoolCrypto) Sending 95 bytes of data 2020-11-03 23:05:36.915 (DysonPurHotCoolCrypto) 30 5d 00 1b 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 31 0]..527/E3E-EU-MNA01 2020-11-03 23:05:36.915 (DysonPurHotCoolCrypto) 34 38 41 2f 63 6f 6d 6d 61 6e 64 7b 22 6d 73 67 22 3a 20 22 48A/command{"msg":." 2020-11-03 23:05:36.915 (DysonPurHotCoolCrypto) 52 45 51 55 45 53 54 2d 43 55 52 52 45 4e 54 2d 53 54 41 54 REQUEST-CURRENT-STAT 2020-11-03 23:05:36.915 (DysonPurHotCoolCrypto) 45 22 2c 20 22 74 69 6d 65 22 3a 20 22 32 30 32 30 2d 31 31 E",."time":."2020-11 2020-11-03 23:05:36.915 (DysonPurHotCoolCrypto) 2d 30 33 54 32 32 3a 30 35 3a 33 36 5a 22 7d .. .. .. .. .. -03T22:05:36Z"} 2020-11-03 23:05:36.965 (DysonPurHotCoolCrypto) Received 7 bytes of data 2020-11-03 23:05:36.965 (DysonPurHotCoolCrypto) 90 05 00 01 00 00 00 .. .. .. .. .. .. .. .. .. .. .. .. .. Ю..... 2020-11-03 23:05:36.965 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '', Data[Verb]: 'SUBACK' 2020-11-03 23:05:36.965 (DysonPurHotCoolCrypto) onMQTTSubscribed 2020-11-03 23:05:36.274 Status: (DysonPurHotCoolCrypto) Entering work loop. 2020-11-03 23:05:36.275 Status: (DysonPurHotCoolCrypto) Initialized version 3.0.2, author 'Jan-Jaap Kostelijk' 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) Received 641 bytes of data 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 30 fe 04 00 22 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 0�.."527/E3E-EU-MNA0 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 31 34 38 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 7b 148A/status/current{ 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 22 6d 73 67 22 3a 22 43 55 52 52 45 4e 54 2d 53 54 41 54 45 "msg":"CURRENT-STATE 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 22 2c 22 74 69 6d 65 22 3a 22 32 30 32 30 2d 31 31 2d 30 33 ","time":"2020-11-03 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 54 32 32 3a 30 35 3a 33 37 2e 30 30 30 5a 22 2c 22 6d 6f 64 T22:05:37.000Z","mod 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 65 2d 72 65 61 73 6f 6e 22 3a 22 4c 41 50 50 22 2c 22 73 74 e-reason":"LAPP","st 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 61 74 65 2d 72 65 61 73 6f 6e 22 3a 22 4d 4f 44 45 22 2c 22 ate-reason":"MODE"," 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 72 73 73 69 22 3a 22 2d 36 32 22 2c 22 63 68 61 6e 6e 65 6c rssi":"-62","channel 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 22 3a 22 31 22 2c 22 66 71 68 70 22 3a 22 31 30 31 34 34 30 ":"1","fqhp":"101440 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 22 2c 22 66 67 68 70 22 3a 22 36 35 36 30 30 22 2c 22 70 72 ","fghp":"65600","pr 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 6f 64 75 63 74 2d 73 74 61 74 65 22 3a 7b 22 66 70 77 72 22 oduct-state":{"fpwr" 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 3a 22 4f 46 46 22 2c 22 61 75 74 6f 22 3a 22 4f 46 46 22 2c :"OFF","auto":"OFF", 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 22 6f 73 63 73 22 3a 22 4f 46 46 22 2c 22 6f 73 6f 6e 22 3a "oscs":"OFF","oson": 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 22 4f 46 46 22 2c 22 6e 6d 6f 64 22 3a 22 4f 4e 22 2c 22 72 "OFF","nmod":"ON","r 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 68 74 6d 22 3a 22 4f 4e 22 2c 22 66 6e 73 74 22 3a 22 4f 46 htm":"ON","fnst":"OF 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 46 22 2c 22 65 72 63 64 22 3a 22 4e 4f 4e 45 22 2c 22 77 61 F","ercd":"NONE","wa 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 63 64 22 3a 22 4e 4f 4e 45 22 2c 22 6e 6d 64 76 22 3a 22 30 cd":"NONE","nmdv":"0 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 30 30 34 22 2c 22 66 6e 73 70 22 3a 22 30 30 30 32 22 2c 22 004","fnsp":"0002"," 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 62 72 69 6c 22 3a 22 30 30 30 32 22 2c 22 63 6f 72 66 22 3a bril":"0002","corf": 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 22 4f 4e 22 2c 22 63 66 6c 72 22 3a 22 49 4e 56 22 2c 22 68 "ON","cflr":"INV","h 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 66 6c 72 22 3a 22 30 30 39 33 22 2c 22 63 66 6c 74 22 3a 22 flr":"0093","cflt":" 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 53 43 4f 46 22 2c 22 68 66 6c 74 22 3a 22 47 43 4f 4d 22 2c SCOF","hflt":"GCOM", 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 22 73 6c 74 6d 22 3a 22 4f 46 46 22 2c 22 6f 73 61 6c 22 3a "sltm":"OFF","osal": 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 22 30 30 39 30 22 2c 22 6f 73 61 75 22 3a 22 30 32 37 30 22 "0090","osau":"0270" 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 2c 22 61 6e 63 70 22 3a 22 30 31 38 30 22 2c 22 68 6d 6f 64 ,"ancp":"0180","hmod 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 22 3a 22 4f 46 46 22 2c 22 68 6d 61 78 22 3a 22 32 39 39 32 ":"OFF","hmax":"2992 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 22 2c 22 74 69 6c 74 22 3a 22 4f 4b 22 2c 22 68 73 74 61 22 ","tilt":"OK","hsta" 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 3a 22 4f 46 46 22 2c 22 70 73 74 61 22 3a 22 4f 46 46 22 2c :"OFF","psta":"OFF", 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 22 66 64 69 72 22 3a 22 4f 4e 22 7d 2c 22 73 63 68 65 64 75 "fdir":"ON"},"schedu 2020-11-03 23:05:37.016 (DysonPurHotCoolCrypto) 6c 65 72 22 3a 7b 22 73 72 73 63 22 3a 22 30 30 30 30 30 30 ler":{"srsc":"000000 2020-11-03 23:05:37.017 (DysonPurHotCoolCrypto) 30 30 35 66 61 31 63 65 30 64 22 2c 22 64 73 74 76 22 3a 22 005fa1ce0d","dstv":" 2020-11-03 23:05:37.017 (DysonPurHotCoolCrypto) 30 30 30 31 22 2c 22 74 7a 69 64 22 3a 22 30 30 30 31 22 7d 0001","tzid":"0001"} 2020-11-03 23:05:37.017 (DysonPurHotCoolCrypto) 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. } 2020-11-03 23:05:37.019 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/current', Data[Verb]: 'PUBLISH' 2020-11-03 23:05:37.019 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/current {'msg': 'CURRENT-STATE', 'time': '2020-11-03T22:05:37.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'rssi': '-62', 'channel': '1', 'fqhp': '101440', 'fghp': '65600', 'product-state': {'fpwr': 'OFF', 'auto': 'OFF', 'oscs': 'OFF', 'oson': 'OFF', 'nmod': 'ON', 'rhtm': 'ON', 'fnst': 'OFF', 'ercd': 'NONE', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': '0002', 'bril': '0002', 'corf': 'ON', 'cflr': 'INV', 'hflr': '0093', 'cflt': 'SCOF', 'hflt': 'GCOM', 'sltm': 'OFF', 'osal': '0090', 'osau': '0270', 'ancp': '0180', 'hmod': 'OFF', 'hmax': '2992', 'tilt': 'OK', 'hsta': 'OFF', 'psta': 'OFF', 'fdir': 'ON'}, 'scheduler': {'srsc': '000000005fa1ce0d', 'dstv': '0001', 'tzid': '0001'}} 2020-11-03 23:05:37.019 (DysonPurHotCoolCrypto) machine state or state change recieved 2020-11-03 23:05:37.069 (DysonPurHotCoolCrypto) Received 250 bytes of data 2020-11-03 23:05:37.069 (DysonPurHotCoolCrypto) 30 f7 01 00 22 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 0��527/E3E-EU-MNA0 2020-11-03 23:05:37.069 (DysonPurHotCoolCrypto) 31 34 38 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 7b 148A/status/current{ 2020-11-03 23:05:37.069 (DysonPurHotCoolCrypto) 22 6d 73 67 22 3a 22 45 4e 56 49 52 4f 4e 4d 45 4e 54 41 4c "msg":"ENVIRONMENTAL 2020-11-03 23:05:37.069 (DysonPurHotCoolCrypto) 2d 43 55 52 52 45 4e 54 2d 53 45 4e 53 4f 52 2d 44 41 54 41 -CURRENT-SENSOR-DATA 2020-11-03 23:05:37.069 (DysonPurHotCoolCrypto) 22 2c 22 74 69 6d 65 22 3a 22 32 30 32 30 2d 31 31 2d 30 33 ","time":"2020-11-03 2020-11-03 23:05:37.069 (DysonPurHotCoolCrypto) 54 32 32 3a 30 35 3a 33 37 2e 30 30 30 5a 22 2c 22 64 61 74 T22:05:37.000Z","dat 2020-11-03 23:05:37.069 (DysonPurHotCoolCrypto) 61 22 3a 7b 22 74 61 63 74 22 3a 22 32 39 34 32 22 2c 22 68 a":{"tact":"2942","h 2020-11-03 23:05:37.069 (DysonPurHotCoolCrypto) 61 63 74 22 3a 22 30 30 36 37 22 2c 22 70 6d 32 35 22 3a 22 act":"0067","pm25":" 2020-11-03 23:05:37.070 (DysonPurHotCoolCrypto) 30 30 30 33 22 2c 22 70 6d 31 30 22 3a 22 30 30 30 32 22 2c 0003","pm10":"0002", 2020-11-03 23:05:37.070 (DysonPurHotCoolCrypto) 22 76 61 31 30 22 3a 22 30 30 32 35 22 2c 22 6e 6f 78 6c 22 "va10":"0025","noxl" 2020-11-03 23:05:37.070 (DysonPurHotCoolCrypto) 3a 22 30 30 30 30 22 2c 22 70 32 35 72 22 3a 22 30 30 30 33 :"0000","p25r":"0003 2020-11-03 23:05:37.070 (DysonPurHotCoolCrypto) 22 2c 22 70 31 30 72 22 3a 22 30 30 30 34 22 2c 22 73 6c 74 ","p10r":"0004","slt 2020-11-03 23:05:37.070 (DysonPurHotCoolCrypto) 6d 22 3a 22 4f 46 46 22 7d 7d .. .. .. .. .. .. .. .. .. .. m":"OFF"}} 2020-11-03 23:05:37.070 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/current', Data[Verb]: 'PUBLISH' 2020-11-03 23:05:37.070 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/current {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2020-11-03T22:05:37.000Z', 'data': {'tact': '2942', 'hact': '0067', 'pm25': '0003', 'pm10': '0002', 'va10': '0025', 'noxl': '0000', 'p25r': '0003', 'p10r': '0004', 'sltm': 'OFF'}} 2020-11-03 23:05:37.070 (DysonPurHotCoolCrypto) sensor state recieved 2020-11-03 23:05:37.070 (DysonPurHotCoolCrypto - Dust (PM 10)) Updating device from 6:'6' to have values 4:'4'. 2020-11-03 23:05:37.084 (DysonPurHotCoolCrypto) Update DysonPurHotCoolCrypto - Dust (PM 10): nValue 4 - sValue 4 - BatteryLevel 255 2020-11-03 23:05:37.084 (DysonPurHotCoolCrypto - Particles (PM 10)) Updating device from 3:'3' to have values 2:'2'. 2020-11-03 23:05:37.098 (DysonPurHotCoolCrypto) Update DysonPurHotCoolCrypto - Particles (PM 10): nValue 2 - sValue 2 - BatteryLevel 255 2020-11-03 23:05:37.099 (DysonPurHotCoolCrypto) update SensorData: SensorsData: Temperature: 21.05000000000001 C, Humidity: 67 %, Volatile Compounds: 25, Particles: PM 2,5: 3, PM 10: 4, sleep timer: 0

2020-11-03 23:05:37.019 Error: (DysonPurHotCoolCrypto) 'onMessage' failed 'ValueError':'invalid literal for int() with base 10: 'INV''. 2020-11-03 23:05:37.019 Error: (DysonPurHotCoolCrypto) ----> Line 509 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-03 23:05:37.019 Error: (DysonPurHotCoolCrypto) ----> Line 322 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-03 23:05:37.019 Error: (DysonPurHotCoolCrypto) ----> Line 138 in '/home/pi/domoticz/plugins/DysonPureLink/mqtt.py', function onMessage 2020-11-03 23:05:37.019 Error: (DysonPurHotCoolCrypto) ----> Line 447 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMQTTPublish 2020-11-03 23:05:37.019 Error: (DysonPurHotCoolCrypto) ----> Line 218 in '/home/pi/domoticz/plugins/DysonPureLink/value_types.py', function init

2020-11-03 23:05:46.322 (DysonPurHotCoolCrypto) Polling unit in 29 heartbeats. 2020-11-03 23:05:46.322 (DysonPurHotCoolCrypto) MqttClient::onHeartbeat 2020-11-03 23:05:46.322 (DysonPurHotCoolCrypto) MqttClient::Ping 2020-11-03 23:05:46.322 (DysonPurHotCoolCrypto) Sending 2 bytes of data 2020-11-03 23:05:46.323 (DysonPurHotCoolCrypto) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. � 2020-11-03 23:05:46.373 (DysonPurHotCoolCrypto) Received 2 bytes of data 2020-11-03 23:05:46.373 (DysonPurHotCoolCrypto) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Ю 2020-11-03 23:05:46.373 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '', Data[Verb]: 'PINGRESP'

2020-11-03 23:05:56.350 (DysonPurHotCoolCrypto) Polling unit in 28 heartbeats. 2020-11-03 23:05:56.351 (DysonPurHotCoolCrypto) MqttClient::onHeartbeat 2020-11-03 23:05:56.351 (DysonPurHotCoolCrypto) MqttClient::Ping 2020-11-03 23:05:56.351 (DysonPurHotCoolCrypto) Sending 2 bytes of data 2020-11-03 23:05:56.351 (DysonPurHotCoolCrypto) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. � 2020-11-03 23:05:56.401 (DysonPurHotCoolCrypto) Received 2 bytes of data 2020-11-03 23:05:56.402 (DysonPurHotCoolCrypto) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Ю 2020-11-03 23:05:56.402 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '', Data[Verb]: 'PINGRESP'

2020-11-03 23:06:06.339 (DysonPurHotCoolCrypto) Polling unit in 27 heartbeats. 2020-11-03 23:06:06.339 (DysonPurHotCoolCrypto) MqttClient::onHeartbeat 2020-11-03 23:06:06.339 (DysonPurHotCoolCrypto) MqttClient::Ping 2020-11-03 23:06:06.339 (DysonPurHotCoolCrypto) Sending 2 bytes of data 2020-11-03 23:06:06.340 (DysonPurHotCoolCrypto) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. � 2020-11-03 23:06:06.390 (DysonPurHotCoolCrypto) Received 2 bytes of data 2020-11-03 23:06:06.390 (DysonPurHotCoolCrypto) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Ю 2020-11-03 23:06:06.390 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '', Data[Verb]: 'PINGRESP' 2020-11-03 23:06:16.361 (DysonPurHotCoolCrypto) Polling unit in 26 heartbeats. 2020-11-03 23:06:16.361 (DysonPurHotCoolCrypto) MqttClient::onHeartbeat 2020-11-03 23:06:16.361 (DysonPurHotCoolCrypto) MqttClient::Ping 2020-11-03 23:06:16.361 (DysonPurHotCoolCrypto) Sending 2 bytes of data 2020-11-03 23:06:16.361 (DysonPurHotCoolCrypto) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. � 2020-11-03 23:06:16.412 (DysonPurHotCoolCrypto) Received 2 bytes of data 2020-11-03 23:06:16.412 (DysonPurHotCoolCrypto) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Ю 2020-11-03 23:06:16.412 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '', Data[Verb]: 'PINGRESP'

ricorico94 commented 4 years ago

Just a 2 cents thoughts as I don't understand the mechanics of the plugin and I don't know python language (only guessing form other languages..) I see that in value-types.py, there's the line 218 with: self.filter_life = int((int(self._get_field_value(data['hflr'])) + int(self._get_field_value(data['cflr']))) / 2) which expects a numeric value in 'cflr'. And indeed, I can see in Booleano75 log file that he had a MQTT message with a cflr and a numeric value. If I look at my log file, I have : "cflr":"INV","hflr":"0093" so if cflr is not set to numeric value before the line 218 mentioned above, then formula could generate an error ?

Edit: checking in my android DYson app the status of filter, I see "filter life: 93%" and "cryptomic filter: installed". and 93% would match with the value hflr: 0093 seen in log file. So maybe my model (HP06 Dyson Cryptomic Pure Hot+Cool) behaves differently than HP04 or TP04 and does not return a numeric value for cflr, but only 'installed" or "not installed" (the "inv" status for installed?)

JanJaapKo commented 4 years ago

Sorry, that was not clear enough: With tray again, I meant, please pull latest version and try again. Last night I made a quick fix, but it was a bit too quick, should be ok now. I now skip the formula when one of them has value INV, I'll come back later with a more proper solution. Now the aim is to have it work and not crash. The other sensor will be updated once the plugin stops throwing errors.....

ricorico94 commented 4 years ago

You shouldn't feel sorry.. you're the one helping all others here ! I applied the new changes and the error has first disappeared : thanks a lot !

However, I still see errors related to this INV value. The weird thing here is that it seems MQTT request included several iterations of values (like duplicate). This occurred when I used my android Dyson app to order a "switch on" and 'switch off":

2020-11-04 09:42:16.127 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/current', Data[Verb]: 'PUBLISH' 2020-11-04 09:42:16.127 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/current {'msg': 'CURRENT-STATE', 'time': '2020-11-04T08:42:16.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'rssi': '-62', 'channel': '1', 'fqhp': '100440', 'fghp': '65600', 'product-state': {'fpwr': 'OFF', 'auto': 'OFF', 'oscs': 'OFF', 'oson': 'OFF', 'nmod': 'ON', 'rhtm': 'ON', 'fnst': 'OFF', 'ercd': 'NONE', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': '0002', 'bril': '0002', 'corf': 'ON', 'cflr': 'INV', 'hflr': '0093', 'cflt': 'SCOF', 'hflt': 'GCOM', 'sltm': 'OFF', 'osal': '0090', 'osau': '0270', 'ancp': '0180', 'hmod': 'OFF', 'hmax': '2992', 'tilt': 'OK', 'hsta': 'OFF', 'psta': 'OFF', 'fdir': 'ON'}, 'scheduler': {'srsc': '000000005fa1ce0d', 'dstv': '0001', 'tzid': '0001'}} 2020-11-04 09:42:16.127 (DysonPurHotCoolCrypto) machine state or state change recieved 2020-11-04 09:42:16.128 (DysonPurHotCoolCrypto) update StateData: StateData: Fan mode: OFF + state: OFF, speed: 0002, AirQual target: None night mode: ON, Oscillation: OFF, Filter life: None, Standby monitoring: ON, ErrCode: NONE 2020-11-04 09:42:16.178 (DysonPurHotCoolCrypto) Received 250 bytes of data 2020-11-04 09:42:16.178 (DysonPurHotCoolCrypto) 30 f7 01 00 22 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 0��527/E3E-EU-MNA0 2020-11-04 09:42:16.178 (DysonPurHotCoolCrypto) 31 34 38 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 7b 148A/status/current{ 2020-11-04 09:42:16.178 (DysonPurHotCoolCrypto) 22 6d 73 67 22 3a 22 45 4e 56 49 52 4f 4e 4d 45 4e 54 41 4c "msg":"ENVIRONMENTAL 2020-11-04 09:42:16.178 (DysonPurHotCoolCrypto) 2d 43 55 52 52 45 4e 54 2d 53 45 4e 53 4f 52 2d 44 41 54 41 -CURRENT-SENSOR-DATA 2020-11-04 09:42:16.178 (DysonPurHotCoolCrypto) 22 2c 22 74 69 6d 65 22 3a 22 32 30 32 30 2d 31 31 2d 30 34 ","time":"2020-11-04 2020-11-04 09:42:16.178 (DysonPurHotCoolCrypto) 54 30 38 3a 34 32 3a 31 36 2e 30 30 30 5a 22 2c 22 64 61 74 T08:42:16.000Z","dat 2020-11-04 09:42:16.178 (DysonPurHotCoolCrypto) 61 22 3a 7b 22 74 61 63 74 22 3a 22 32 39 34 38 22 2c 22 68 a":{"tact":"2948","h 2020-11-04 09:42:16.178 (DysonPurHotCoolCrypto) 61 63 74 22 3a 22 30 30 36 31 22 2c 22 70 6d 32 35 22 3a 22 act":"0061","pm25":" 2020-11-04 09:42:16.178 (DysonPurHotCoolCrypto) 30 30 30 38 22 2c 22 70 6d 31 30 22 3a 22 30 30 31 30 22 2c 0008","pm10":"0010", 2020-11-04 09:42:16.178 (DysonPurHotCoolCrypto) 22 76 61 31 30 22 3a 22 30 30 31 35 22 2c 22 6e 6f 78 6c 22 "va10":"0015","noxl" 2020-11-04 09:42:16.178 (DysonPurHotCoolCrypto) 3a 22 30 30 30 30 22 2c 22 70 32 35 72 22 3a 22 30 30 30 39 :"0000","p25r":"0009 2020-11-04 09:42:16.178 (DysonPurHotCoolCrypto) 22 2c 22 70 31 30 72 22 3a 22 30 30 31 37 22 2c 22 73 6c 74 ","p10r":"0017","slt 2020-11-04 09:42:16.178 (DysonPurHotCoolCrypto) 6d 22 3a 22 4f 46 46 22 7d 7d .. .. .. .. .. .. .. .. .. .. m":"OFF"}} 2020-11-04 09:42:16.178 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/current', Data[Verb]: 'PUBLISH' 2020-11-04 09:42:16.179 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/current {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2020-11-04T08:42:16.000Z', 'data': {'tact': '2948', 'hact': '0061', 'pm25': '0008', 'pm10': '0010', 'va10': '0015', 'noxl': '0000', 'p25r': '0009', 'p10r': '0017', 'sltm': 'OFF'}} 2020-11-04 09:42:16.179 (DysonPurHotCoolCrypto) sensor state recieved 2020-11-04 09:42:16.179 (DysonPurHotCoolCrypto) update SensorData: SensorsData: Temperature: 21.650000000000034 C, Humidity: 61 %, Volatile Compounds: 15, Particles: PM 2,5: 9, PM 10: 17, sleep timer: 0 2020-11-04 09:42:17.982 (DysonPurHotCoolCrypto) Received 804 bytes of data 2020-11-04 09:42:17.982 (DysonPurHotCoolCrypto) 30 a1 06 00 22 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 0�."527/E3E-EU-MNA0 2020-11-04 09:42:17.982 (DysonPurHotCoolCrypto) 31 34 38 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 7b 148A/status/current{ 2020-11-04 09:42:17.982 (DysonPurHotCoolCrypto) 22 6d 73 67 22 3a 22 53 54 41 54 45 2d 43 48 41 4e 47 45 22 "msg":"STATE-CHANGE" 2020-11-04 09:42:17.982 (DysonPurHotCoolCrypto) 2c 22 74 69 6d 65 22 3a 22 32 30 32 30 2d 31 31 2d 30 34 54 ,"time":"2020-11-04T 2020-11-04 09:42:17.982 (DysonPurHotCoolCrypto) 30 38 3a 34 32 3a 31 38 2e 30 30 30 5a 22 2c 22 6d 6f 64 65 08:42:18.000Z","mode 2020-11-04 09:42:17.983 (DysonPurHotCoolCrypto) 2d 72 65 61 73 6f 6e 22 3a 22 4c 41 50 50 22 2c 22 73 74 61 -reason":"LAPP","sta 2020-11-04 09:42:17.983 (DysonPurHotCoolCrypto) 74 65 2d 72 65 61 73 6f 6e 22 3a 22 4d 4f 44 45 22 2c 22 70 te-reason":"MODE","p 2020-11-04 09:42:17.983 (DysonPurHotCoolCrypto) 72 6f 64 75 63 74 2d 73 74 61 74 65 22 3a 7b 22 66 70 77 72 roduct-state":{"fpwr 2020-11-04 09:42:17.983 (DysonPurHotCoolCrypto) 22 3a 5b 22 4f 46 46 22 2c 22 4f 4e 22 5d 2c 22 61 75 74 6f ":["OFF","ON"],"auto 2020-11-04 09:42:17.983 (DysonPurHotCoolCrypto) 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 6f 73 63 ":["OFF","OFF"],"osc 2020-11-04 09:42:17.983 (DysonPurHotCoolCrypto) 73 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 6f 73 s":["OFF","OFF"],"os 2020-11-04 09:42:17.983 (DysonPurHotCoolCrypto) 6f 6e 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 6e on":["OFF","OFF"],"n 2020-11-04 09:42:17.983 (DysonPurHotCoolCrypto) 6d 6f 64 22 3a 5b 22 4f 4e 22 2c 22 4f 4e 22 5d 2c 22 72 68 mod":["ON","ON"],"rh 2020-11-04 09:42:17.983 (DysonPurHotCoolCrypto) 74 6d 22 3a 5b 22 4f 4e 22 2c 22 4f 4e 22 5d 2c 22 66 6e 73 tm":["ON","ON"],"fns 2020-11-04 09:42:17.983 (DysonPurHotCoolCrypto) 74 22 3a 5b 22 4f 46 46 22 2c 22 46 41 4e 22 5d 2c 22 65 72 t":["OFF","FAN"],"er 2020-11-04 09:42:17.983 (DysonPurHotCoolCrypto) 63 64 22 3a 5b 22 4e 4f 4e 45 22 2c 22 4e 4f 4e 45 22 5d 2c cd":["NONE","NONE"], 2020-11-04 09:42:17.983 (DysonPurHotCoolCrypto) 22 77 61 63 64 22 3a 5b 22 4e 4f 4e 45 22 2c 22 4e 4f 4e 45 "wacd":["NONE","NONE 2020-11-04 09:42:17.983 (DysonPurHotCoolCrypto) 22 5d 2c 22 6e 6d 64 76 22 3a 5b 22 30 30 30 34 22 2c 22 30 "],"nmdv":["0004","0 2020-11-04 09:42:17.983 (DysonPurHotCoolCrypto) 30 30 34 22 5d 2c 22 66 6e 73 70 22 3a 5b 22 30 30 30 32 22 004"],"fnsp":["0002" 2020-11-04 09:42:17.984 (DysonPurHotCoolCrypto) 2c 22 30 30 30 32 22 5d 2c 22 62 72 69 6c 22 3a 5b 22 30 30 ,"0002"],"bril":["00 2020-11-04 09:42:17.984 (DysonPurHotCoolCrypto) 30 32 22 2c 22 30 30 30 32 22 5d 2c 22 63 6f 72 66 22 3a 5b 02","0002"],"corf":[ 2020-11-04 09:42:17.984 (DysonPurHotCoolCrypto) 22 4f 4e 22 2c 22 4f 4e 22 5d 2c 22 63 66 6c 72 22 3a 5b 22 "ON","ON"],"cflr":[" 2020-11-04 09:42:17.984 (DysonPurHotCoolCrypto) 49 4e 56 22 2c 22 49 4e 56 22 5d 2c 22 68 66 6c 72 22 3a 5b INV","INV"],"hflr":[ 2020-11-04 09:42:17.984 (DysonPurHotCoolCrypto) 22 30 30 39 33 22 2c 22 30 30 39 33 22 5d 2c 22 63 66 6c 74 "0093","0093"],"cflt 2020-11-04 09:42:17.984 (DysonPurHotCoolCrypto) 22 3a 5b 22 53 43 4f 46 22 2c 22 53 43 4f 46 22 5d 2c 22 68 ":["SCOF","SCOF"],"h 2020-11-04 09:42:17.984 (DysonPurHotCoolCrypto) 66 6c 74 22 3a 5b 22 47 43 4f 4d 22 2c 22 47 43 4f 4d 22 5d flt":["GCOM","GCOM"] 2020-11-04 09:42:17.984 (DysonPurHotCoolCrypto) 2c 22 73 6c 74 6d 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 ,"sltm":["OFF","OFF" 2020-11-04 09:42:17.984 (DysonPurHotCoolCrypto) 5d 2c 22 6f 73 61 6c 22 3a 5b 22 30 30 39 30 22 2c 22 30 30 ],"osal":["0090","00 2020-11-04 09:42:17.984 (DysonPurHotCoolCrypto) 39 30 22 5d 2c 22 6f 73 61 75 22 3a 5b 22 30 32 37 30 22 2c 90"],"osau":["0270", 2020-11-04 09:42:17.984 (DysonPurHotCoolCrypto) 22 30 32 37 30 22 5d 2c 22 61 6e 63 70 22 3a 5b 22 30 31 38 "0270"],"ancp":["018 2020-11-04 09:42:17.984 (DysonPurHotCoolCrypto) 30 22 2c 22 30 31 38 30 22 5d 2c 22 68 6d 6f 64 22 3a 5b 22 0","0180"],"hmod":[" 2020-11-04 09:42:17.984 (DysonPurHotCoolCrypto) 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 68 6d 61 78 22 3a 5b OFF","OFF"],"hmax":[ 2020-11-04 09:42:17.984 (DysonPurHotCoolCrypto) 22 32 39 39 32 22 2c 22 32 39 39 32 22 5d 2c 22 74 69 6c 74 "2992","2992"],"tilt 2020-11-04 09:42:17.984 (DysonPurHotCoolCrypto) 22 3a 5b 22 4f 4b 22 2c 22 4f 4b 22 5d 2c 22 68 73 74 61 22 ":["OK","OK"],"hsta" 2020-11-04 09:42:17.985 (DysonPurHotCoolCrypto) 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 70 73 74 61 :["OFF","OFF"],"psta 2020-11-04 09:42:17.985 (DysonPurHotCoolCrypto) 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 66 64 69 ":["OFF","OFF"],"fdi 2020-11-04 09:42:17.985 (DysonPurHotCoolCrypto) 72 22 3a 5b 22 4f 4e 22 2c 22 4f 4e 22 5d 7d 2c 22 73 63 68 r":["ON","ON"]},"sch 2020-11-04 09:42:17.985 (DysonPurHotCoolCrypto) 65 64 75 6c 65 72 22 3a 7b 22 73 72 73 63 22 3a 22 30 30 30 eduler":{"srsc":"000 2020-11-04 09:42:17.985 (DysonPurHotCoolCrypto) 30 30 30 30 30 35 66 61 31 63 65 30 64 22 2c 22 64 73 74 76 000005fa1ce0d","dstv 2020-11-04 09:42:17.985 (DysonPurHotCoolCrypto) 22 3a 22 30 30 30 31 22 2c 22 74 7a 69 64 22 3a 22 30 30 30 ":"0001","tzid":"000 2020-11-04 09:42:17.985 (DysonPurHotCoolCrypto) 31 22 7d 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. 1"}} 2020-11-04 09:42:17.985 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/current', Data[Verb]: 'PUBLISH' 2020-11-04 09:42:17.986 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/current {'msg': 'STATE-CHANGE', 'time': '2020-11-04T08:42:18.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'product-state': {'fpwr': ['OFF', 'ON'], 'auto': ['OFF', 'OFF'], 'oscs': ['OFF', 'OFF'], 'oson': ['OFF', 'OFF'], 'nmod': ['ON', 'ON'], 'rhtm': ['ON', 'ON'], 'fnst': ['OFF', 'FAN'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0002', '0002'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['INV', 'INV'], 'hflr': ['0093', '0093'], 'cflt': ['SCOF', 'SCOF'], 'hflt': ['GCOM', 'GCOM'], 'sltm': ['OFF', 'OFF'], 'osal': ['0090', '0090'], 'osau': ['0270', '0270'], 'ancp': ['0180', '0180'], 'hmod': ['OFF', 'OFF'], 'hmax': ['2992', '2992'], 'tilt': ['OK', 'OK'], 'hsta': ['OFF', 'OFF'], 'psta': ['OFF', 'OFF'], 'fdir': ['ON', 'ON']}, 'scheduler': {'srsc': '000000005fa1ce0d', 'dstv': '0001', 'tzid': '0001'}} 2020-11-04 09:42:17.986 (DysonPurHotCoolCrypto) machine state or state change recieved 2020-11-04 09:42:17.987 Error: (DysonPurHotCoolCrypto) 'onMessage' failed 'ValueError':'invalid literal for int() with base 10: 'INV''. 2020-11-04 09:42:17.987 Error: (DysonPurHotCoolCrypto) ----> Line 509 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-04 09:42:17.987 Error: (DysonPurHotCoolCrypto) ----> Line 322 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-04 09:42:17.987 Error: (DysonPurHotCoolCrypto) ----> Line 138 in '/home/pi/domoticz/plugins/DysonPureLink/mqtt.py', function onMessage 2020-11-04 09:42:17.987 Error: (DysonPurHotCoolCrypto) ----> Line 447 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMQTTPublish 2020-11-04 09:42:17.987 Error: (DysonPurHotCoolCrypto) ----> Line 218 in '/home/pi/domoticz/plugins/DysonPureLink/value_types.py', function init 2020-11-04 09:42:18.288 (DysonPurHotCoolCrypto) Polling unit in 26 heartbeats. 2020-11-04 09:42:18.288 (DysonPurHotCoolCrypto) MqttClient::onHeartbeat 2020-11-04 09:42:18.288 (DysonPurHotCoolCrypto) MqttClient::Ping 2020-11-04 09:42:18.288 (DysonPurHotCoolCrypto) Sending 2 bytes of data 2020-11-04 09:42:18.288 (DysonPurHotCoolCrypto) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. � 2020-11-04 09:42:18.338 (DysonPurHotCoolCrypto) Received 2 bytes of data 2020-11-04 09:42:18.339 (DysonPurHotCoolCrypto) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Ю 2020-11-04 09:42:18.339 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '', Data[Verb]: 'PINGRESP' 2020-11-04 09:42:21.004 Error: (DysonPurHotCoolCrypto) 'onMessage' failed 'ValueError':'invalid literal for int() with base 10: 'INV''. 2020-11-04 09:42:21.004 Error: (DysonPurHotCoolCrypto) ----> Line 509 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-04 09:42:21.004 Error: (DysonPurHotCoolCrypto) ----> Line 322 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-04 09:42:21.004 Error: (DysonPurHotCoolCrypto) ----> Line 138 in '/home/pi/domoticz/plugins/DysonPureLink/mqtt.py', function onMessage 2020-11-04 09:42:21.005 Error: (DysonPurHotCoolCrypto) ----> Line 447 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMQTTPublish 2020-11-04 09:42:21.005 Error: (DysonPurHotCoolCrypto) ----> Line 218 in '/home/pi/domoticz/plugins/DysonPureLink/value_types.py', function init 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 22 30 30 39 30 22 2c 22 6f 73 61 75 22 3a 22 30 32 37 30 22 "0090","osau":"0270" 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 2c 22 61 6e 63 70 22 3a 22 30 31 38 30 22 2c 22 68 6d 6f 64 ,"ancp":"0180","hmod 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 22 3a 22 4f 46 46 22 2c 22 68 6d 61 78 22 3a 22 32 39 39 32 ":"OFF","hmax":"2992 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 22 2c 22 74 69 6c 74 22 3a 22 4f 4b 22 2c 22 68 73 74 61 22 ","tilt":"OK","hsta" 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 3a 22 4f 46 46 22 2c 22 70 73 74 61 22 3a 22 4f 46 46 22 2c :"OFF","psta":"OFF", 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 22 66 64 69 72 22 3a 22 4f 4e 22 7d 2c 22 73 63 68 65 64 75 "fdir":"ON"},"schedu 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 6c 65 72 22 3a 7b 22 73 72 73 63 22 3a 22 30 30 30 30 30 30 ler":{"srsc":"000000 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 30 30 35 66 61 31 63 65 30 64 22 2c 22 64 73 74 76 22 3a 22 005fa1ce0d","dstv":" 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 30 30 30 31 22 2c 22 74 7a 69 64 22 3a 22 30 30 30 31 22 7d 0001","tzid":"0001"} 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. } 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) Received 250 bytes of data 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 30 f7 01 00 22 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 0��527/E3E-EU-MNA0 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 31 34 38 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 7b 148A/status/current{ 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 22 6d 73 67 22 3a 22 45 4e 56 49 52 4f 4e 4d 45 4e 54 41 4c "msg":"ENVIRONMENTAL 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 2d 43 55 52 52 45 4e 54 2d 53 45 4e 53 4f 52 2d 44 41 54 41 -CURRENT-SENSOR-DATA 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 22 2c 22 74 69 6d 65 22 3a 22 32 30 32 30 2d 31 31 2d 30 34 ","time":"2020-11-04 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 54 30 38 3a 34 32 3a 32 33 2e 30 30 30 5a 22 2c 22 64 61 74 T08:42:23.000Z","dat 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 61 22 3a 7b 22 74 61 63 74 22 3a 22 32 39 34 39 22 2c 22 68 a":{"tact":"2949","h 2020-11-04 09:42:22.830 (DysonPurHotCoolCrypto) 61 63 74 22 3a 22 30 30 36 31 22 2c 22 70 6d 32 35 22 3a 22 act":"0061","pm25":" 2020-11-04 09:42:22.831 (DysonPurHotCoolCrypto) 30 30 30 38 22 2c 22 70 6d 31 30 22 3a 22 30 30 31 30 22 2c 0008","pm10":"0010", 2020-11-04 09:42:22.831 (DysonPurHotCoolCrypto) 22 76 61 31 30 22 3a 22 30 30 31 35 22 2c 22 6e 6f 78 6c 22 "va10":"0015","noxl" 2020-11-04 09:42:22.831 (DysonPurHotCoolCrypto) 3a 22 30 30 30 30 22 2c 22 70 32 35 72 22 3a 22 30 30 30 39 :"0000","p25r":"0009 2020-11-04 09:42:22.831 (DysonPurHotCoolCrypto) 22 2c 22 70 31 30 72 22 3a 22 30 30 31 37 22 2c 22 73 6c 74 ","p10r":"0017","slt 2020-11-04 09:42:22.831 (DysonPurHotCoolCrypto) 6d 22 3a 22 4f 46 46 22 7d 7d .. .. .. .. .. .. .. .. .. .. m":"OFF"}} 2020-11-04 09:42:22.831 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/current', Data[Verb]: 'PUBLISH' 2020-11-04 09:42:22.832 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/current {'msg': 'CURRENT-STATE', 'time': '2020-11-04T08:42:23.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'rssi': '-62', 'channel': '1', 'fqhp': '101008', 'fghp': '65600', 'product-state': {'fpwr': 'OFF', 'auto': 'OFF', 'oscs': 'OFF', 'oson': 'OFF', 'nmod': 'ON', 'rhtm': 'ON', 'fnst': 'OFF', 'ercd': 'NONE', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': '0002', 'bril': '0002', 'corf': 'ON', 'cflr': 'INV', 'hflr': '0093', 'cflt': 'SCOF', 'hflt': 'GCOM', 'sltm': 'OFF', 'osal': '0090', 'osau': '0270', 'ancp': '0180', 'hmod': 'OFF', 'hmax': '2992', 'tilt': 'OK', 'hsta': 'OFF', 'psta': 'OFF', 'fdir': 'ON'}, 'scheduler': {'srsc': '000000005fa1ce0d', 'dstv': '0001', 'tzid': '0001'}} 2020-11-04 09:42:22.832 (DysonPurHotCoolCrypto) machine state or state change recieved 2020-11-04 09:42:22.832 (DysonPurHotCoolCrypto) update StateData: StateData: Fan mode: OFF + state: OFF, speed: 0002, AirQual target: None night mode: ON, Oscillation: OFF, Filter life: None, Standby monitoring: ON, ErrCode: NONE 2020-11-04 09:42:22.833 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/current', Data[Verb]: 'PUBLISH' 2020-11-04 09:42:22.833 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/current {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2020-11-04T08:42:23.000Z', 'data': {'tact': '2949', 'hact': '0061', 'pm25': '0008', 'pm10': '0010', 'va10': '0015', 'noxl': '0000', 'p25r': '0009', 'p10r': '0017', 'sltm': 'OFF'}} 2020-11-04 09:42:22.833 (DysonPurHotCoolCrypto) sensor state recieved 2020-11-04 09:42:22.833 (DysonPurHotCoolCrypto) update SensorData: SensorsData: Temperature: 21.75 C, Humidity: 61 %, Volatile Compounds: 15, Particles: PM 2,5: 9, PM 10: 17, sleep timer: 0

2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) Received 1278 bytes of data 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 30 fb 09 00 21 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 0�..!527/E3E-EU-MNA0 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 31 34 38 41 2f 73 74 61 74 75 73 2f 66 61 75 6c 74 73 7b 22 148A/status/faults{" 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 6d 73 67 22 3a 22 43 55 52 52 45 4e 54 2d 46 41 55 4c 54 53 msg":"CURRENT-FAULTS 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 22 2c 22 74 69 6d 65 22 3a 22 32 30 32 30 2d 31 31 2d 30 34 ","time":"2020-11-04 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 54 30 38 3a 34 32 3a 32 33 2e 30 30 30 5a 22 2c 22 70 72 6f T08:42:23.000Z","pro 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 64 75 63 74 2d 65 72 72 6f 72 73 22 3a 7b 22 61 6d 66 31 22 duct-errors":{"amf1" 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 3a 22 4f 4b 22 2c 22 61 6d 66 32 22 3a 22 4f 4b 22 2c 22 61 :"OK","amf2":"OK","a 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 6d 66 33 22 3a 22 4f 4b 22 2c 22 61 6d 66 34 22 3a 22 4f 4b mf3":"OK","amf4":"OK 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 22 2c 22 61 6d 66 35 22 3a 22 4f 4b 22 2c 22 61 6d 66 36 22 ","amf5":"OK","amf6" 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 3a 22 4f 4b 22 2c 22 61 6d 66 37 22 3a 22 4f 4b 22 2c 22 61 :"OK","amf7":"OK","a 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 6d 66 38 22 3a 22 4f 4b 22 2c 22 63 6f 6d 34 22 3a 22 4f 4b mf8":"OK","com4":"OK 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 22 2c 22 63 6f 6d 31 22 3a 22 4f 4b 22 2c 22 73 74 65 31 22 ","com1":"OK","ste1" 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 3a 22 4f 4b 22 2c 22 69 75 68 30 22 3a 22 4f 4b 22 2c 22 69 :"OK","iuh0":"OK","i 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 75 70 30 22 3a 22 4f 4b 22 2c 22 69 75 77 30 22 3a 22 4f 4b up0":"OK","iuw0":"OK 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 22 2c 22 69 75 68 31 22 3a 22 4f 4b 22 2c 22 69 75 75 31 22 ","iuh1":"OK","iuu1" 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 3a 22 4f 4b 22 2c 22 69 75 63 31 22 3a 22 4f 4b 22 2c 22 69 :"OK","iuc1":"OK","i 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 75 77 31 22 3a 22 4f 4b 22 2c 22 69 75 61 31 22 3a 22 4f 4b uw1":"OK","iua1":"OK 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 22 2c 22 69 75 68 32 22 3a 22 4f 4b 22 2c 22 69 75 75 32 22 ","iuh2":"OK","iuu2" 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 3a 22 4f 4b 22 2c 22 69 75 63 32 22 3a 22 4f 4b 22 2c 22 69 :"OK","iuc2":"OK","i 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 75 77 32 22 3a 22 4f 4b 22 2c 22 69 75 61 32 22 3a 22 4f 4b uw2":"OK","iua2":"OK 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 22 2c 22 69 75 68 33 22 3a 22 4f 4b 22 2c 22 69 75 75 33 22 ","iuh3":"OK","iuu3" 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 3a 22 4f 4b 22 2c 22 69 75 63 33 22 3a 22 4f 4b 22 2c 22 69 :"OK","iuc3":"OK","i 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 75 77 33 22 3a 22 4f 4b 22 2c 22 69 75 61 33 22 3a 22 4f 4b uw3":"OK","iua3":"OK 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 22 2c 22 75 69 30 31 22 3a 22 4f 4b 22 2c 22 75 69 30 32 22 ","ui01":"OK","ui02" 2020-11-04 09:42:23.034 (DysonPurHotCoolCrypto) 3a 22 4f 4b 22 2c 22 75 69 30 33 22 3a 22 4f 4b 22 2c 22 75 :"OK","ui03":"OK","u 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 69 64 31 22 3a 22 4f 4b 22 2c 22 75 69 64 32 22 3a 22 4f 4b id1":"OK","uid2":"OK 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 22 2c 22 66 73 30 31 22 3a 22 4f 4b 22 2c 22 66 73 30 32 22 ","fs01":"OK","fs02" 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 3a 22 4f 4b 22 2c 22 66 73 30 33 22 3a 22 4f 4b 22 2c 22 66 :"OK","fs03":"OK","f 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 73 30 34 22 3a 22 4f 4b 22 2c 22 66 73 30 35 22 3a 22 4f 4b s04":"OK","fs05":"OK 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 22 2c 22 66 73 30 36 22 3a 22 4f 4b 22 2c 22 66 73 30 37 22 ","fs06":"OK","fs07" 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 3a 22 4f 4b 22 2c 22 66 73 30 38 22 3a 22 4f 4b 22 2c 22 66 :"OK","fs08":"OK","f 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 73 30 39 22 3a 22 4f 4b 22 2c 22 66 73 30 61 22 3a 22 4f 4b s09":"OK","fs0a":"OK 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 22 2c 22 66 73 30 62 22 3a 22 4f 4b 22 2c 22 66 73 30 63 22 ","fs0b":"OK","fs0c" 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 3a 22 4f 4b 22 2c 22 70 73 75 31 22 3a 22 4f 4b 22 2c 22 70 :"OK","psu1":"OK","p 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 73 75 32 22 3a 22 4f 4b 22 2c 22 73 65 6e 31 22 3a 22 4f 4b su2":"OK","sen1":"OK 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 22 2c 22 73 65 6e 32 22 3a 22 4f 4b 22 2c 22 73 65 6e 33 22 ","sen2":"OK","sen3" 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 3a 22 4f 4b 22 2c 22 73 65 6e 34 22 3a 22 4f 4b 22 2c 22 73 :"OK","sen4":"OK","s 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 65 6e 35 22 3a 22 4f 4b 22 2c 22 73 65 6e 36 22 3a 22 4f 4b en5":"OK","sen6":"OK 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 22 2c 22 63 6f 6d 35 22 3a 22 4f 4b 22 2c 22 63 6f 6d 32 22 ","com5":"OK","com2" 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 3a 22 4f 4b 22 2c 22 63 6f 6d 36 22 3a 22 4f 4b 22 2c 22 63 :"OK","com6":"OK","c 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 6f 6d 33 22 3a 22 4f 4b 22 2c 22 63 6f 6d 37 22 3a 22 4f 4b om3":"OK","com7":"OK 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 22 2c 22 63 6f 6d 38 22 3a 22 4f 4b 22 2c 22 68 74 30 31 22 ","com8":"OK","ht01" 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 3a 22 4f 4b 22 2c 22 68 74 30 32 22 3a 22 4f 4b 22 2c 22 68 :"OK","ht02":"OK","h 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 74 30 33 22 3a 22 4f 4b 22 2c 22 68 74 30 34 22 3a 22 4f 4b t03":"OK","ht04":"OK 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 22 2c 22 68 74 30 35 22 3a 22 4f 4b 22 2c 22 68 74 30 36 22 ","ht05":"OK","ht06" 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 3a 22 4f 4b 22 2c 22 68 74 30 37 22 3a 22 4f 4b 22 2c 22 68 :"OK","ht07":"OK","h 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 74 30 38 22 3a 22 4f 4b 22 2c 22 68 74 30 39 22 3a 22 4f 4b t08":"OK","ht09":"OK 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 22 2c 22 68 74 30 61 22 3a 22 4f 4b 22 7d 2c 22 70 72 6f 64 ","ht0a":"OK"},"prod 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 75 63 74 2d 77 61 72 6e 69 6e 67 73 22 3a 7b 22 66 6c 74 72 uct-warnings":{"fltr 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 22 3a 22 4f 4b 22 7d 2c 22 6d 6f 64 75 6c 65 2d 65 72 72 6f ":"OK"},"module-erro 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 72 73 22 3a 7b 22 73 7a 6d 65 22 3a 22 4f 4b 22 2c 22 73 7a rs":{"szme":"OK","sz 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 6d 77 22 3a 22 4f 4b 22 2c 22 73 7a 70 73 22 3a 22 4f 4b 22 mw":"OK","szps":"OK" 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 2c 22 73 7a 70 65 22 3a 22 4f 4b 22 2c 22 73 7a 70 77 22 3a ,"szpe":"OK","szpw": 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 22 4f 4b 22 2c 22 73 7a 65 64 22 3a 22 4f 4b 22 2c 22 6c 73 "OK","szed":"OK","ls 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 70 64 22 3a 22 4f 4b 22 2c 22 73 7a 70 69 22 3a 22 4f 4b 22 pd":"OK","szpi":"OK" 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 2c 22 73 7a 70 70 22 3a 22 4f 4b 22 2c 22 73 7a 68 76 22 3a ,"szpp":"OK","szhv": 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 22 4f 4b 22 2c 22 73 7a 62 76 22 3a 22 4f 4b 22 2c 22 73 7a "OK","szbv":"OK","sz 2020-11-04 09:42:23.035 (DysonPurHotCoolCrypto) 61 76 22 3a 22 4f 4b 22 7d 2c 22 6d 6f 64 75 6c 65 2d 77 61 av":"OK"},"module-wa 2020-11-04 09:42:23.036 (DysonPurHotCoolCrypto) 72 6e 69 6e 67 73 22 3a 7b 22 73 72 6e 6b 22 3a 22 4f 4b 22 rnings":{"srnk":"OK" 2020-11-04 09:42:23.036 (DysonPurHotCoolCrypto) 2c 22 73 74 61 63 22 3a 22 4f 4b 22 2c 22 73 74 72 73 22 3a ,"stac":"OK","strs": 2020-11-04 09:42:23.036 (DysonPurHotCoolCrypto) 22 4f 4b 22 2c 22 73 72 6d 69 22 3a 22 4f 4b 22 2c 22 73 72 "OK","srmi":"OK","sr 2020-11-04 09:42:23.036 (DysonPurHotCoolCrypto) 6d 75 22 3a 22 4f 4b 22 2c 22 6e 77 63 73 22 3a 22 4f 4b 22 mu":"OK","nwcs":"OK" 2020-11-04 09:42:23.036 (DysonPurHotCoolCrypto) 2c 22 6e 77 74 73 22 3a 22 4f 4b 22 2c 22 6e 77 70 73 22 3a ,"nwts":"OK","nwps": 2020-11-04 09:42:23.036 (DysonPurHotCoolCrypto) 22 4f 4b 22 2c 22 6e 77 73 73 22 3a 22 4f 4b 22 7d 7d .. .. "OK","nwss":"OK"}} 2020-11-04 09:42:23.036 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/faults', Data[Verb]: 'PUBLISH' 2020-11-04 09:42:23.037 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/faults {'msg': 'CURRENT-FAULTS', 'time': '2020-11-04T08:42:23.000Z', 'product-errors': {'amf1': 'OK', 'amf2': 'OK', 'amf3': 'OK', 'amf4': 'OK', 'amf5': 'OK', 'amf6': 'OK', 'amf7': 'OK', 'amf8': 'OK', 'com4': 'OK', 'com1': 'OK', 'ste1': 'OK', 'iuh0': 'OK', 'iup0': 'OK', 'iuw0': 'OK', 'iuh1': 'OK', 'iuu1': 'OK', 'iuc1': 'OK', 'iuw1': 'OK', 'iua1': 'OK', 'iuh2': 'OK', 'iuu2': 'OK', 'iuc2': 'OK', 'iuw2': 'OK', 'iua2': 'OK', 'iuh3': 'OK', 'iuu3': 'OK', 'iuc3': 'OK', 'iuw3': 'OK', 'iua3': 'OK', 'ui01': 'OK', 'ui02': 'OK', 'ui03': 'OK', 'uid1': 'OK', 'uid2': 'OK', 'fs01': 'OK', 'fs02': 'OK', 'fs03': 'OK', 'fs04': 'OK', 'fs05': 'OK', 'fs06': 'OK', 'fs07': 'OK', 'fs08': 'OK', 'fs09': 'OK', 'fs0a': 'OK', 'fs0b': 'OK', 'fs0c': 'OK', 'psu1': 'OK', 'psu2': 'OK', 'sen1': 'OK', 'sen2': 'OK', 'sen3': 'OK', 'sen4': 'OK', 'sen5': 'OK', 'sen6': 'OK', 'com5': 'OK', 'com2': 'OK', 'com6': 'OK', 'com3': 'OK', 'com7': 'OK', 'com8': 'OK', 'ht01': 'OK', 'ht02': 'OK', 'ht03': 'OK', 'ht04': 'OK', 'ht05': 'OK', 'ht06': 'OK', 'ht07': 'OK', 'ht08': 'OK', 'ht09': 'OK', 'ht0a': 'OK'}, 'product-warnings': {'fltr': 'OK'}, 'module-errors': {'szme': 'OK', 'szmw': 'OK', 'szps': 'OK', 'szpe': 'OK', 'szpw': 'OK', 'szed': 'OK', 'lspd': 'OK', 'szpi': 'OK', 'szpp': 'OK', 'szhv': 'OK', 'szbv': 'OK', 'szav': 'OK'}, 'module-warnings': {'srnk': 'OK', 'stac': 'OK', 'strs': 'OK', 'srmi': 'OK', 'srmu': 'OK', 'nwcs': 'OK', 'nwts': 'OK', 'nwps': 'OK', 'nwss': 'OK'}} 2020-11-04 09:42:28.296 (DysonPurHotCoolCrypto) Polling unit in 25 heartbeats. 2020-11-04 09:42:28.297 (DysonPurHotCoolCrypto) MqttClient::onHeartbeat 2020-11-04 09:42:28.297 (DysonPurHotCoolCrypto) MqttClient::Ping 2020-11-04 09:42:28.297 (DysonPurHotCoolCrypto) Sending 2 bytes of data 2020-11-04 09:42:28.297 (DysonPurHotCoolCrypto) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. � 2020-11-04 09:42:28.347 (DysonPurHotCoolCrypto) Received 2 bytes of data 2020-11-04 09:42:28.347 (DysonPurHotCoolCrypto) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Ю 2020-11-04 09:42:28.348 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '', Data[Verb]: 'PINGRESP' 2020-11-04 09:42:29.149 (DysonPurHotCoolCrypto) Received 805 bytes of data 2020-11-04 09:42:29.149 (DysonPurHotCoolCrypto) 30 a2 06 00 22 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 0®."527/E3E-EU-MNA0 2020-11-04 09:42:29.149 (DysonPurHotCoolCrypto) 31 34 38 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 7b 148A/status/current{ 2020-11-04 09:42:29.149 (DysonPurHotCoolCrypto) 22 6d 73 67 22 3a 22 53 54 41 54 45 2d 43 48 41 4e 47 45 22 "msg":"STATE-CHANGE" 2020-11-04 09:42:29.150 (DysonPurHotCoolCrypto) 2c 22 74 69 6d 65 22 3a 22 32 30 32 30 2d 31 31 2d 30 34 54 ,"time":"2020-11-04T 2020-11-04 09:42:29.150 (DysonPurHotCoolCrypto) 30 38 3a 34 32 3a 32 39 2e 30 30 30 5a 22 2c 22 6d 6f 64 65 08:42:29.000Z","mode 2020-11-04 09:42:29.150 (DysonPurHotCoolCrypto) 2d 72 65 61 73 6f 6e 22 3a 22 4c 41 50 50 22 2c 22 73 74 61 -reason":"LAPP","sta 2020-11-04 09:42:29.150 (DysonPurHotCoolCrypto) 74 65 2d 72 65 61 73 6f 6e 22 3a 22 4d 4f 44 45 22 2c 22 70 te-reason":"MODE","p 2020-11-04 09:42:29.150 (DysonPurHotCoolCrypto) 72 6f 64 75 63 74 2d 73 74 61 74 65 22 3a 7b 22 66 70 77 72 roduct-state":{"fpwr 2020-11-04 09:42:29.150 (DysonPurHotCoolCrypto) 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 61 75 74 ":["OFF","OFF"],"aut 2020-11-04 09:42:29.150 (DysonPurHotCoolCrypto) 6f 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 6f 73 o":["OFF","OFF"],"os 2020-11-04 09:42:29.150 (DysonPurHotCoolCrypto) 63 73 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 6f cs":["OFF","OFF"],"o 2020-11-04 09:42:29.150 (DysonPurHotCoolCrypto) 73 6f 6e 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 son":["OFF","OFF"]," 2020-11-04 09:42:29.150 (DysonPurHotCoolCrypto) 6e 6d 6f 64 22 3a 5b 22 4f 4e 22 2c 22 4f 4e 22 5d 2c 22 72 nmod":["ON","ON"],"r 2020-11-04 09:42:29.150 (DysonPurHotCoolCrypto) 68 74 6d 22 3a 5b 22 4f 4e 22 2c 22 4f 4e 22 5d 2c 22 66 6e htm":["ON","ON"],"fn 2020-11-04 09:42:29.150 (DysonPurHotCoolCrypto) 73 74 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 65 st":["OFF","OFF"],"e 2020-11-04 09:42:29.150 (DysonPurHotCoolCrypto) 72 63 64 22 3a 5b 22 4e 4f 4e 45 22 2c 22 4e 4f 4e 45 22 5d rcd":["NONE","NONE"] 2020-11-04 09:42:29.150 (DysonPurHotCoolCrypto) 2c 22 77 61 63 64 22 3a 5b 22 4e 4f 4e 45 22 2c 22 4e 4f 4e ,"wacd":["NONE","NON 2020-11-04 09:42:29.151 (DysonPurHotCoolCrypto) 45 22 5d 2c 22 6e 6d 64 76 22 3a 5b 22 30 30 30 34 22 2c 22 E"],"nmdv":["0004"," 2020-11-04 09:42:29.151 (DysonPurHotCoolCrypto) 30 30 30 34 22 5d 2c 22 66 6e 73 70 22 3a 5b 22 30 30 30 32 0004"],"fnsp":["0002 2020-11-04 09:42:29.151 (DysonPurHotCoolCrypto) 22 2c 22 30 30 30 32 22 5d 2c 22 62 72 69 6c 22 3a 5b 22 30 ","0002"],"bril":["0 2020-11-04 09:42:29.151 (DysonPurHotCoolCrypto) 30 30 32 22 2c 22 30 30 30 32 22 5d 2c 22 63 6f 72 66 22 3a 002","0002"],"corf": 2020-11-04 09:42:29.151 (DysonPurHotCoolCrypto) 5b 22 4f 4e 22 2c 22 4f 4e 22 5d 2c 22 63 66 6c 72 22 3a 5b ["ON","ON"],"cflr":[ 2020-11-04 09:42:29.151 (DysonPurHotCoolCrypto) 22 49 4e 56 22 2c 22 49 4e 56 22 5d 2c 22 68 66 6c 72 22 3a "INV","INV"],"hflr": 2020-11-04 09:42:29.151 (DysonPurHotCoolCrypto) 5b 22 30 30 39 33 22 2c 22 30 30 39 33 22 5d 2c 22 63 66 6c ["0093","0093"],"cfl 2020-11-04 09:42:29.151 (DysonPurHotCoolCrypto) 74 22 3a 5b 22 53 43 4f 46 22 2c 22 53 43 4f 46 22 5d 2c 22 t":["SCOF","SCOF"]," 2020-11-04 09:42:29.151 (DysonPurHotCoolCrypto) 68 66 6c 74 22 3a 5b 22 47 43 4f 4d 22 2c 22 47 43 4f 4d 22 hflt":["GCOM","GCOM" 2020-11-04 09:42:29.151 (DysonPurHotCoolCrypto) 5d 2c 22 73 6c 74 6d 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 ],"sltm":["OFF","OFF 2020-11-04 09:42:29.151 (DysonPurHotCoolCrypto) 22 5d 2c 22 6f 73 61 6c 22 3a 5b 22 30 30 39 30 22 2c 22 30 "],"osal":["0090","0 2020-11-04 09:42:29.151 (DysonPurHotCoolCrypto) 30 39 30 22 5d 2c 22 6f 73 61 75 22 3a 5b 22 30 32 37 30 22 090"],"osau":["0270" 2020-11-04 09:42:29.152 (DysonPurHotCoolCrypto) 2c 22 30 32 37 30 22 5d 2c 22 61 6e 63 70 22 3a 5b 22 30 31 ,"0270"],"ancp":["01 2020-11-04 09:42:29.152 (DysonPurHotCoolCrypto) 38 30 22 2c 22 30 31 38 30 22 5d 2c 22 68 6d 6f 64 22 3a 5b 80","0180"],"hmod":[ 2020-11-04 09:42:29.152 (DysonPurHotCoolCrypto) 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 68 6d 61 78 22 3a "OFF","OFF"],"hmax": 2020-11-04 09:42:29.152 (DysonPurHotCoolCrypto) 5b 22 32 39 39 32 22 2c 22 32 39 39 32 22 5d 2c 22 74 69 6c ["2992","2992"],"til 2020-11-04 09:42:29.152 (DysonPurHotCoolCrypto) 74 22 3a 5b 22 4f 4b 22 2c 22 4f 4b 22 5d 2c 22 68 73 74 61 t":["OK","OK"],"hsta 2020-11-04 09:42:29.152 (DysonPurHotCoolCrypto) 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 70 73 74 ":["OFF","OFF"],"pst 2020-11-04 09:42:29.152 (DysonPurHotCoolCrypto) 61 22 3a 5b 22 4f 46 46 22 2c 22 49 4e 56 22 5d 2c 22 66 64 a":["OFF","INV"],"fd 2020-11-04 09:42:29.152 (DysonPurHotCoolCrypto) 69 72 22 3a 5b 22 4f 4e 22 2c 22 4f 4e 22 5d 7d 2c 22 73 63 ir":["ON","ON"]},"sc 2020-11-04 09:42:29.152 (DysonPurHotCoolCrypto) 68 65 64 75 6c 65 72 22 3a 7b 22 73 72 73 63 22 3a 22 30 30 heduler":{"srsc":"00 2020-11-04 09:42:29.152 (DysonPurHotCoolCrypto) 30 30 30 30 30 30 35 66 61 31 63 65 30 64 22 2c 22 64 73 74 0000005fa1ce0d","dst 2020-11-04 09:42:29.152 (DysonPurHotCoolCrypto) 76 22 3a 22 30 30 30 31 22 2c 22 74 7a 69 64 22 3a 22 30 30 v":"0001","tzid":"00 2020-11-04 09:42:29.152 (DysonPurHotCoolCrypto) 30 31 22 7d 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. 01"}} 2020-11-04 09:42:29.153 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/current', Data[Verb]: 'PUBLISH' 2020-11-04 09:42:29.154 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/current {'msg': 'STATE-CHANGE', 'time': '2020-11-04T08:42:29.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'product-state': {'fpwr': ['OFF', 'OFF'], 'auto': ['OFF', 'OFF'], 'oscs': ['OFF', 'OFF'], 'oson': ['OFF', 'OFF'], 'nmod': ['ON', 'ON'], 'rhtm': ['ON', 'ON'], 'fnst': ['OFF', 'OFF'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0002', '0002'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['INV', 'INV'], 'hflr': ['0093', '0093'], 'cflt': ['SCOF', 'SCOF'], 'hflt': ['GCOM', 'GCOM'], 'sltm': ['OFF', 'OFF'], 'osal': ['0090', '0090'], 'osau': ['0270', '0270'], 'ancp': ['0180', '0180'], 'hmod': ['OFF', 'OFF'], 'hmax': ['2992', '2992'], 'tilt': ['OK', 'OK'], 'hsta': ['OFF', 'OFF'], 'psta': ['OFF', 'INV'], 'fdir': ['ON', 'ON']}, 'scheduler': {'srsc': '000000005fa1ce0d', 'dstv': '0001', 'tzid': '0001'}} 2020-11-04 09:42:29.154 (DysonPurHotCoolCrypto) machine state or state change recieved 2020-11-04 09:42:29.154 Error: (DysonPurHotCoolCrypto) 'onMessage' failed 'ValueError':'invalid literal for int() with base 10: 'INV''. 2020-11-04 09:42:29.155 Error: (DysonPurHotCoolCrypto) ----> Line 509 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-04 09:42:29.155 Error: (DysonPurHotCoolCrypto) ----> Line 322 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-04 09:42:29.155 Error: (DysonPurHotCoolCrypto) ----> Line 138 in '/home/pi/domoticz/plugins/DysonPureLink/mqtt.py', function onMessage 2020-11-04 09:42:29.155 Error: (DysonPurHotCoolCrypto) ----> Line 447 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMQTTPublish 2020-11-04 09:42:29.155 Error: (DysonPurHotCoolCrypto) ----> Line 218 in '/home/pi/domoticz/plugins/DysonPureLink/value_types.py', function init 2020-11-04 09:42:30.056 (DysonPurHotCoolCrypto) Received 805 bytes of data 2020-11-04 09:42:30.057 (DysonPurHotCoolCrypto) 30 a2 06 00 22 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 0®."527/E3E-EU-MNA0 2020-11-04 09:42:30.057 (DysonPurHotCoolCrypto) 31 34 38 41 2f 73 74 61 74 75 73 2f 63 75 72 72 65 6e 74 7b 148A/status/current{ 2020-11-04 09:42:30.057 (DysonPurHotCoolCrypto) 22 6d 73 67 22 3a 22 53 54 41 54 45 2d 43 48 41 4e 47 45 22 "msg":"STATE-CHANGE" 2020-11-04 09:42:30.057 (DysonPurHotCoolCrypto) 2c 22 74 69 6d 65 22 3a 22 32 30 32 30 2d 31 31 2d 30 34 54 ,"time":"2020-11-04T 2020-11-04 09:42:30.057 (DysonPurHotCoolCrypto) 30 38 3a 34 32 3a 33 30 2e 30 30 30 5a 22 2c 22 6d 6f 64 65 08:42:30.000Z","mode 2020-11-04 09:42:30.057 (DysonPurHotCoolCrypto) 2d 72 65 61 73 6f 6e 22 3a 22 4c 41 50 50 22 2c 22 73 74 61 -reason":"LAPP","sta 2020-11-04 09:42:30.057 (DysonPurHotCoolCrypto) 74 65 2d 72 65 61 73 6f 6e 22 3a 22 4d 4f 44 45 22 2c 22 70 te-reason":"MODE","p 2020-11-04 09:42:30.057 (DysonPurHotCoolCrypto) 72 6f 64 75 63 74 2d 73 74 61 74 65 22 3a 7b 22 66 70 77 72 roduct-state":{"fpwr 2020-11-04 09:42:30.058 (DysonPurHotCoolCrypto) 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 61 75 74 ":["OFF","OFF"],"aut 2020-11-04 09:42:30.058 (DysonPurHotCoolCrypto) 6f 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 6f 73 o":["OFF","OFF"],"os 2020-11-04 09:42:30.058 (DysonPurHotCoolCrypto) 63 73 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 6f cs":["OFF","OFF"],"o 2020-11-04 09:42:30.058 (DysonPurHotCoolCrypto) 73 6f 6e 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 son":["OFF","OFF"]," 2020-11-04 09:42:30.058 (DysonPurHotCoolCrypto) 6e 6d 6f 64 22 3a 5b 22 4f 4e 22 2c 22 4f 4e 22 5d 2c 22 72 nmod":["ON","ON"],"r 2020-11-04 09:42:30.058 (DysonPurHotCoolCrypto) 68 74 6d 22 3a 5b 22 4f 4e 22 2c 22 4f 4e 22 5d 2c 22 66 6e htm":["ON","ON"],"fn 2020-11-04 09:42:30.058 (DysonPurHotCoolCrypto) 73 74 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 65 st":["OFF","OFF"],"e 2020-11-04 09:42:30.058 (DysonPurHotCoolCrypto) 72 63 64 22 3a 5b 22 4e 4f 4e 45 22 2c 22 4e 4f 4e 45 22 5d rcd":["NONE","NONE"] 2020-11-04 09:42:30.058 (DysonPurHotCoolCrypto) 2c 22 77 61 63 64 22 3a 5b 22 4e 4f 4e 45 22 2c 22 4e 4f 4e ,"wacd":["NONE","NON 2020-11-04 09:42:30.058 (DysonPurHotCoolCrypto) 45 22 5d 2c 22 6e 6d 64 76 22 3a 5b 22 30 30 30 34 22 2c 22 E"],"nmdv":["0004"," 2020-11-04 09:42:30.058 (DysonPurHotCoolCrypto) 30 30 30 34 22 5d 2c 22 66 6e 73 70 22 3a 5b 22 30 30 30 32 0004"],"fnsp":["0002 2020-11-04 09:42:30.058 (DysonPurHotCoolCrypto) 22 2c 22 30 30 30 32 22 5d 2c 22 62 72 69 6c 22 3a 5b 22 30 ","0002"],"bril":["0 2020-11-04 09:42:30.058 (DysonPurHotCoolCrypto) 30 30 32 22 2c 22 30 30 30 32 22 5d 2c 22 63 6f 72 66 22 3a 002","0002"],"corf": 2020-11-04 09:42:30.059 (DysonPurHotCoolCrypto) 5b 22 4f 4e 22 2c 22 4f 4e 22 5d 2c 22 63 66 6c 72 22 3a 5b ["ON","ON"],"cflr":[ 2020-11-04 09:42:30.059 (DysonPurHotCoolCrypto) 22 49 4e 56 22 2c 22 49 4e 56 22 5d 2c 22 68 66 6c 72 22 3a "INV","INV"],"hflr": 2020-11-04 09:42:30.059 (DysonPurHotCoolCrypto) 5b 22 30 30 39 33 22 2c 22 30 30 39 33 22 5d 2c 22 63 66 6c ["0093","0093"],"cfl 2020-11-04 09:42:30.059 (DysonPurHotCoolCrypto) 74 22 3a 5b 22 53 43 4f 46 22 2c 22 53 43 4f 46 22 5d 2c 22 t":["SCOF","SCOF"]," 2020-11-04 09:42:30.059 (DysonPurHotCoolCrypto) 68 66 6c 74 22 3a 5b 22 47 43 4f 4d 22 2c 22 47 43 4f 4d 22 hflt":["GCOM","GCOM" 2020-11-04 09:42:30.059 (DysonPurHotCoolCrypto) 5d 2c 22 73 6c 74 6d 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 ],"sltm":["OFF","OFF 2020-11-04 09:42:30.059 (DysonPurHotCoolCrypto) 22 5d 2c 22 6f 73 61 6c 22 3a 5b 22 30 30 39 30 22 2c 22 30 "],"osal":["0090","0 2020-11-04 09:42:30.059 (DysonPurHotCoolCrypto) 30 39 30 22 5d 2c 22 6f 73 61 75 22 3a 5b 22 30 32 37 30 22 090"],"osau":["0270" 2020-11-04 09:42:30.059 (DysonPurHotCoolCrypto) 2c 22 30 32 37 30 22 5d 2c 22 61 6e 63 70 22 3a 5b 22 30 31 ,"0270"],"ancp":["01 2020-11-04 09:42:30.059 (DysonPurHotCoolCrypto) 38 30 22 2c 22 30 31 38 30 22 5d 2c 22 68 6d 6f 64 22 3a 5b 80","0180"],"hmod":[ 2020-11-04 09:42:30.059 (DysonPurHotCoolCrypto) 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 68 6d 61 78 22 3a "OFF","OFF"],"hmax": 2020-11-04 09:42:30.059 (DysonPurHotCoolCrypto) 5b 22 32 39 39 32 22 2c 22 32 39 39 32 22 5d 2c 22 74 69 6c ["2992","2992"],"til 2020-11-04 09:42:30.060 (DysonPurHotCoolCrypto) 74 22 3a 5b 22 4f 4b 22 2c 22 4f 4b 22 5d 2c 22 68 73 74 61 t":["OK","OK"],"hsta 2020-11-04 09:42:30.060 (DysonPurHotCoolCrypto) 22 3a 5b 22 4f 46 46 22 2c 22 4f 46 46 22 5d 2c 22 70 73 74 ":["OFF","OFF"],"pst 2020-11-04 09:42:30.060 (DysonPurHotCoolCrypto) 61 22 3a 5b 22 49 4e 56 22 2c 22 4f 46 46 22 5d 2c 22 66 64 a":["INV","OFF"],"fd 2020-11-04 09:42:30.060 (DysonPurHotCoolCrypto) 69 72 22 3a 5b 22 4f 4e 22 2c 22 4f 4e 22 5d 7d 2c 22 73 63 ir":["ON","ON"]},"sc 2020-11-04 09:42:30.060 (DysonPurHotCoolCrypto) 68 65 64 75 6c 65 72 22 3a 7b 22 73 72 73 63 22 3a 22 30 30 heduler":{"srsc":"00 2020-11-04 09:42:30.060 (DysonPurHotCoolCrypto) 30 30 30 30 30 30 35 66 61 31 63 65 30 64 22 2c 22 64 73 74 0000005fa1ce0d","dst 2020-11-04 09:42:30.060 (DysonPurHotCoolCrypto) 76 22 3a 22 30 30 30 31 22 2c 22 74 7a 69 64 22 3a 22 30 30 v":"0001","tzid":"00 2020-11-04 09:42:30.060 (DysonPurHotCoolCrypto) 30 31 22 7d 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. 01"}} 2020-11-04 09:42:30.061 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/current', Data[Verb]: 'PUBLISH' 2020-11-04 09:42:30.062 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/current {'msg': 'STATE-CHANGE', 'time': '2020-11-04T08:42:30.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'product-state': {'fpwr': ['OFF', 'OFF'], 'auto': ['OFF', 'OFF'], 'oscs': ['OFF', 'OFF'], 'oson': ['OFF', 'OFF'], 'nmod': ['ON', 'ON'], 'rhtm': ['ON', 'ON'], 'fnst': ['OFF', 'OFF'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0002', '0002'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['INV', 'INV'], 'hflr': ['0093', '0093'], 'cflt': ['SCOF', 'SCOF'], 'hflt': ['GCOM', 'GCOM'], 'sltm': ['OFF', 'OFF'], 'osal': ['0090', '0090'], 'osau': ['0270', '0270'], 'ancp': ['0180', '0180'], 'hmod': ['OFF', 'OFF'], 'hmax': ['2992', '2992'], 'tilt': ['OK', 'OK'], 'hsta': ['OFF', 'OFF'], 'psta': ['INV', 'OFF'], 'fdir': ['ON', 'ON']}, 'scheduler': {'srsc': '000000005fa1ce0d', 'dstv': '0001', 'tzid': '0001'}} 2020-11-04 09:42:30.062 (DysonPurHotCoolCrypto) machine state or state change recieved 2020-11-04 09:42:30.062 Error: (DysonPurHotCoolCrypto) 'onMessage' failed 'ValueError':'invalid literal for int() with base 10: 'INV''. 2020-11-04 09:42:30.062 Error: (DysonPurHotCoolCrypto) ----> Line 509 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-04 09:42:30.062 Error: (DysonPurHotCoolCrypto) ----> Line 322 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMessage 2020-11-04 09:42:30.062 Error: (DysonPurHotCoolCrypto) ----> Line 138 in '/home/pi/domoticz/plugins/DysonPureLink/mqtt.py', function onMessage 2020-11-04 09:42:30.062 Error: (DysonPurHotCoolCrypto) ----> Line 447 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onMQTTPublish 2020-11-04 09:42:30.062 Error: (DysonPurHotCoolCrypto) ----> Line 218 in '/home/pi/domoticz/plugins/DysonPureLink/value_types.py', function init

I saw another error when trying to switch the fan to "ON" (clicking on switch in domoticz) : 2020-11-04 09:13:43.420 (DysonPurHotCoolCrypto) DysonPureLink plugin: onCommand called for Unit 12: Parameter 'On', Level: 0 2020-11-04 09:13:43.380 Status: User: eric initiated a switch command (2016/DysonPurHotCoolCrypto - Fan state/On) 2020-11-04 09:13:43.420 Error: (DysonPurHotCoolCrypto) 'onCommand' failed 'UnboundLocalError':'local variable 'arg' referenced before assignment'. 2020-11-04 09:13:43.420 Error: (DysonPurHotCoolCrypto) ----> Line 513 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py', function onCommand 2020-11-04 09:13:43.420 Error: (DysonPurHotCoolCrypto) ----> Line 294 in '/home/pi/domoticz/plugins/DysonPureLink/plugin.py',

I looked at code and I think it's because here the level is 0 but the plugin expects a 10:

if Unit == self.fanStateUnit:
            if Level == 10: arg="OFF"
            if Level == 20: arg="ON"
            topic, payload = self.myDevice.set_fan_state(arg) 

I'm not sure why domoticz is not behaving in my case as this, but maybe a <if Level <= 10: arg="OFF" > could make it work ?

Thanks again,

JanJaapKo commented 3 years ago

Hi,

I fixed the issue with the filter in the state change message and also made a fix for the 'arg' not initialized, can you pull latest and see what happens? I tested with your messages and they work fine. But this is of course only 1 version of the messages.

ricorico94 commented 3 years ago

Hi,

I don't see error anymore and the switches are now updated in domoticz when I use my android App or the remote : very good! I still can't switch on/off the fan by clicking the buttons in domoticz: switching on/off doesn't work (no error message visible in the log), but if my fan is already running, I can successfully control the speed from within domoticz (Fan Speed switch). by the way, I see in my case 2 "Fan Speed" switches (units 3 and 23): is it normal ? do they correspond to different features ?

the log file when I click on switch button within domoticz: 2020-11-04 15:09:13.873 (DysonPurHotCoolCrypto) DysonPureLink plugin: onCommand called for Unit 12: Parameter 'On', Level: 20 2020-11-04 15:09:13.874 (DysonPurHotCoolCrypto) MqttClient::Publish 527/E3E-EU-MNA0148A/command ({"msg": "STATE-SET", "mode-reason": "LAPP", "data": {"fnst": "ON"}, "time": "2020-11-04T14:09:13Z"}) 2020-11-04 15:09:13.875 (DysonPurHotCoolCrypto) Sending 131 bytes of data 2020-11-04 15:09:13.875 (DysonPurHotCoolCrypto) 30 80 01 00 1b 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 0�..527/E3E-EU-MNA0 2020-11-04 15:09:13.875 (DysonPurHotCoolCrypto) 31 34 38 41 2f 63 6f 6d 6d 61 6e 64 7b 22 6d 73 67 22 3a 20 148A/command{"msg":. 2020-11-04 15:09:13.875 (DysonPurHotCoolCrypto) 22 53 54 41 54 45 2d 53 45 54 22 2c 20 22 6d 6f 64 65 2d 72 "STATE-SET",."mode-r 2020-11-04 15:09:13.875 (DysonPurHotCoolCrypto) 65 61 73 6f 6e 22 3a 20 22 4c 41 50 50 22 2c 20 22 64 61 74 eason":."LAPP",."dat 2020-11-04 15:09:13.875 (DysonPurHotCoolCrypto) 61 22 3a 20 7b 22 66 6e 73 74 22 3a 20 22 4f 4e 22 7d 2c 20 a":.{"fnst":."ON"},. 2020-11-04 15:09:13.875 (DysonPurHotCoolCrypto) 22 74 69 6d 65 22 3a 20 22 32 30 32 30 2d 31 31 2d 30 34 54 "time":."2020-11-04T 2020-11-04 15:09:13.875 (DysonPurHotCoolCrypto) 31 34 3a 30 39 3a 31 33 5a 22 7d .. .. .. .. .. .. .. .. .. 14:09:13Z"} 2020-11-04 15:09:13.853 Status: User: eric initiated a switch command (2016/DysonPurHotCoolCrypto - Fan state/On)

In case it helps, I made a test to see MQTT messages received when using the remote control to switch on/off the fan: when I click on my remote to switch on: 2020-11-04 15:12:05.125 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/current', Data[Verb]: 'PUBLISH' 2020-11-04 15:12:05.126 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/current {'msg': 'STATE-CHANGE', 'time': '2020-11-04T14:12:05.000Z', 'mode-reason': 'PRC', 'state-reason': 'MODE', 'product-state': {'fpwr': ['OFF', 'ON'], 'auto': ['OFF', 'OFF'], 'oscs': ['OFF', 'OFF'], 'oson': ['OFF', 'OFF'], 'nmod': ['ON', 'ON'], 'rhtm': ['ON', 'ON'], 'fnst': ['OFF', 'FAN'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0001', '0001'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['INV', 'INV'], 'hflr': ['0093', '0093'], 'cflt': ['SCOF', 'SCOF'], 'hflt': ['GCOM', 'GCOM'], 'sltm': ['OFF', 'OFF'], 'osal': ['0090', '0090'], 'osau': ['0270', '0270'], 'ancp': ['0180', '0180'], 'hmod': ['OFF', 'OFF'], 'hmax': ['2992', '2992'], 'tilt': ['OK', 'OK'], 'hsta': ['OFF', 'OFF'], 'psta': ['OFF', 'OFF'], 'fdir': ['ON', 'ON']}, 'scheduler': {'srsc': '000000005fa1ce0d', 'dstv': '0001', 'tzid': '0001'}} 2020-11-04 15:12:05.127 (DysonPurHotCoolCrypto) machine state or state change recieved

and when I click on my remote to switch off: 2020-11-04 15:12:10.015 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/current', Data[Verb]: 'PUBLISH' 2020-11-04 15:12:10.016 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/current {'msg': 'STATE-CHANGE', 'time': '2020-11-04T14:12:10.000Z', 'mode-reason': 'PRC', 'state-reason': 'MODE', 'product-state': {'fpwr': ['ON', 'OFF'], 'auto': ['OFF', 'OFF'], 'oscs': ['OFF', 'OFF'], 'oson': ['OFF', 'OFF'], 'nmod': ['ON', 'ON'], 'rhtm': ['ON', 'ON'], 'fnst': ['FAN', 'OFF'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0001', '0001'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['INV', 'INV'], 'hflr': ['0093', '0093'], 'cflt': ['SCOF', 'SCOF'], 'hflt': ['GCOM', 'GCOM'], 'sltm': ['OFF', 'OFF'], 'osal': ['0090', '0090'], 'osau': ['0270', '0270'], 'ancp': ['0180', '0180'], 'hmod': ['OFF', 'OFF'], 'hmax': ['2992', '2992'], 'tilt': ['OK', 'OK'], 'hsta': ['OFF', 'OFF'], 'psta': ['OFF', 'OFF'], 'fdir': ['ON', 'ON']}, 'scheduler': {'srsc': '000000005fa1ce0d', 'dstv': '0001', 'tzid': '0001'}} 2020-11-04 15:12:10.016 (DysonPurHotCoolCrypto) machine state or state change recieved

I can notice the 2 changes: -when switching on: 'fpwr': ['OFF', 'ON'] and 'fnst': ['OFF', 'FAN'] -when switching off, they're listed the opposite way: 'fpwr': ['ON', 'OFF'] and 'fnst': ['FAN', 'OFF']

Booleano75 commented 3 years ago

Hi,

I don't see error anymore and the switches are now updated in domoticz when I use my android App or the remote : very good! I still can't switch on/off the fan by clicking the buttons in domoticz: switching on/off doesn't work (no error message visible in the log), but if my fan is already running, I can successfully control the speed from within domoticz (Fan Speed switch). by the way, I see in my case 2 "Fan Speed" switches (units 3 and 23): is it normal ? do they correspond to different features ?

the log file when I click on switch button within domoticz: 2020-11-04 15:09:13.873 (DysonPurHotCoolCrypto) DysonPureLink plugin: onCommand called for Unit 12: Parameter 'On', Level: 20 2020-11-04 15:09:13.874 (DysonPurHotCoolCrypto) MqttClient::Publish 527/E3E-EU-MNA0148A/command ({"msg": "STATE-SET", "mode-reason": "LAPP", "data": {"fnst": "ON"}, "time": "2020-11-04T14:09:13Z"}) 2020-11-04 15:09:13.875 (DysonPurHotCoolCrypto) Sending 131 bytes of data 2020-11-04 15:09:13.875 (DysonPurHotCoolCrypto) 30 80 01 00 1b 35 32 37 2f 45 33 45 2d 45 55 2d 4d 4e 41 30 0�..527/E3E-EU-MNA0 2020-11-04 15:09:13.875 (DysonPurHotCoolCrypto) 31 34 38 41 2f 63 6f 6d 6d 61 6e 64 7b 22 6d 73 67 22 3a 20 148A/command{"msg":. 2020-11-04 15:09:13.875 (DysonPurHotCoolCrypto) 22 53 54 41 54 45 2d 53 45 54 22 2c 20 22 6d 6f 64 65 2d 72 "STATE-SET",."mode-r 2020-11-04 15:09:13.875 (DysonPurHotCoolCrypto) 65 61 73 6f 6e 22 3a 20 22 4c 41 50 50 22 2c 20 22 64 61 74 eason":."LAPP",."dat 2020-11-04 15:09:13.875 (DysonPurHotCoolCrypto) 61 22 3a 20 7b 22 66 6e 73 74 22 3a 20 22 4f 4e 22 7d 2c 20 a":.{"fnst":."ON"},. 2020-11-04 15:09:13.875 (DysonPurHotCoolCrypto) 22 74 69 6d 65 22 3a 20 22 32 30 32 30 2d 31 31 2d 30 34 54 "time":."2020-11-04T 2020-11-04 15:09:13.875 (DysonPurHotCoolCrypto) 31 34 3a 30 39 3a 31 33 5a 22 7d .. .. .. .. .. .. .. .. .. 14:09:13Z"} 2020-11-04 15:09:13.853 Status: User: eric initiated a switch command (2016/DysonPurHotCoolCrypto - Fan state/On)

In case it helps, I made a test to see MQTT messages received when using the remote control to switch on/off the fan: when I click on my remote to switch on: 2020-11-04 15:12:05.125 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/current', Data[Verb]: 'PUBLISH' 2020-11-04 15:12:05.126 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/current {'msg': 'STATE-CHANGE', 'time': '2020-11-04T14:12:05.000Z', 'mode-reason': 'PRC', 'state-reason': 'MODE', 'product-state': {'fpwr': ['OFF', 'ON'], 'auto': ['OFF', 'OFF'], 'oscs': ['OFF', 'OFF'], 'oson': ['OFF', 'OFF'], 'nmod': ['ON', 'ON'], 'rhtm': ['ON', 'ON'], 'fnst': ['OFF', 'FAN'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0001', '0001'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['INV', 'INV'], 'hflr': ['0093', '0093'], 'cflt': ['SCOF', 'SCOF'], 'hflt': ['GCOM', 'GCOM'], 'sltm': ['OFF', 'OFF'], 'osal': ['0090', '0090'], 'osau': ['0270', '0270'], 'ancp': ['0180', '0180'], 'hmod': ['OFF', 'OFF'], 'hmax': ['2992', '2992'], 'tilt': ['OK', 'OK'], 'hsta': ['OFF', 'OFF'], 'psta': ['OFF', 'OFF'], 'fdir': ['ON', 'ON']}, 'scheduler': {'srsc': '000000005fa1ce0d', 'dstv': '0001', 'tzid': '0001'}} 2020-11-04 15:12:05.127 (DysonPurHotCoolCrypto) machine state or state change recieved

and when I click on my remote to switch off: 2020-11-04 15:12:10.015 (DysonPurHotCoolCrypto) MqttClient::onMessage Topic '527/E3E-EU-MNA0148A/status/current', Data[Verb]: 'PUBLISH' 2020-11-04 15:12:10.016 (DysonPurHotCoolCrypto) MQTT Publish: MQTT message incoming: 527/E3E-EU-MNA0148A/status/current {'msg': 'STATE-CHANGE', 'time': '2020-11-04T14:12:10.000Z', 'mode-reason': 'PRC', 'state-reason': 'MODE', 'product-state': {'fpwr': ['ON', 'OFF'], 'auto': ['OFF', 'OFF'], 'oscs': ['OFF', 'OFF'], 'oson': ['OFF', 'OFF'], 'nmod': ['ON', 'ON'], 'rhtm': ['ON', 'ON'], 'fnst': ['FAN', 'OFF'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0001', '0001'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['INV', 'INV'], 'hflr': ['0093', '0093'], 'cflt': ['SCOF', 'SCOF'], 'hflt': ['GCOM', 'GCOM'], 'sltm': ['OFF', 'OFF'], 'osal': ['0090', '0090'], 'osau': ['0270', '0270'], 'ancp': ['0180', '0180'], 'hmod': ['OFF', 'OFF'], 'hmax': ['2992', '2992'], 'tilt': ['OK', 'OK'], 'hsta': ['OFF', 'OFF'], 'psta': ['OFF', 'OFF'], 'fdir': ['ON', 'ON']}, 'scheduler': {'srsc': '000000005fa1ce0d', 'dstv': '0001', 'tzid': '0001'}} 2020-11-04 15:12:10.016 (DysonPurHotCoolCrypto) machine state or state change recieved

I can notice the 2 changes: -when switching on: 'fpwr': ['OFF', 'ON'] and 'fnst': ['OFF', 'FAN'] -when switching off, they're listed the opposite way: 'fpwr': ['ON', 'OFF'] and 'fnst': ['FAN', 'OFF']

Yes I confirm the on off command in not working for me also, and you are right the fpwr is the commant to implement to switch on and off the device , while fnst is a reporting function only to report the state. I had implemented this in my old plugin

def set_fan_power(self, mode):
command = self._create_command({'fpwr': mode}) return(self.device_command, command); and

if Unit == self.fanPowerUnit: Domoticz.Debug("Switch fanPowerUnit" + str(Level)) if Level == 0: arg="OFF" if Level == 10: arg="ON"
topic, payload = self.cloudDevice.set_fan_power(arg)

to recreate the behavior of the app and reduce the widget proliferation my suggestion (tested) for the V2 version of the fan state widget is :

1) add an addional level OFF Options = {"LevelActions" : "|||||||||||", "LevelNames" : "OFF|1|2|3|4|5|6|7|8|9|10|AUTO", "LevelOffHidden" : "false", "SelectorStyle" : "1"} if self.fanSpeedUnitV2 not in Devices:

2) call the set_fan_power also when selecting a value in the fan or select OFF state

if Unit == self.fanSpeedUnitV2: if Level==0: arg="OFF"
topic, payload = self.myDevice.set_fan_power(arg)
elif Level <=100:
arg="0000"+str(Level//10) topic, payload = self.myDevice.set_fan_speed(arg[-4:]) #use last 4 characters as speed level or AUTO self.mqttClient.Publish(topic, payload) arg="ON"
topic, payload = self.myDevice.set_fan_power(arg)
else: topic, payload = self.myDevice.set_fan_mode_auto("ON") #use last 4 characters as speed level or AUTO self.mqttClient.Publish(topic, payload) arg="ON"
topic, payload = self.myDevice.set_fan_power(arg)

3) implement the set_fan_power funciton in commands def set_fan_power(self, mode):
command = self._create_command({'fpwr': mode}) return(self.device_command, command); and

4) update the widget icon when switching off

if self.state_data.fan_speed is not None: f_mode = str(self.state_data.fan_mode) if (f_mode == "OFF"): nValueNew = 0 sValueNew = "OFF" # Auto else:

Fan speed

          f_rate = self.state_data.fan_speed
          if (f_rate == "AUTO"):
            nValueNew = 110
            sValueNew = "110" # Auto
          else:
            nValueNew = (int(f_rate))*10
            sValueNew = str((int(f_rate)) * 10)
        UpdateDevice(self.fanSpeedUnitV2, nValueNew, sValueNew)
Booleano75 commented 3 years ago

Hi Jan, I also found a problem in the set heat target , as the command to the device is ok, but the displayed value is 1 unit less than the set value

I changed the implementation in this way to make it work.

if 'hmax' in data: target = self._get_field_value(data['hmax'])

self.heat_target = None if target == 'OFF' else int(kelvin_to_celsius(float(target) / 10))

        self.heat_target = kelvin_to_celsius(  0.1 + float(target) / 10  ) 
JanJaapKo commented 3 years ago

Hi guys, sorry for the long delay, we did a bit of redecoration in the house which cost me most of my time and/or energy. Now all is done so I'll see if I can make some more steps on the plugin. Hope you can pull latest version to verify it works on your fans as well.

@ricorico94 : the Fan State is a read only parameter, you cannot use it to control the fan. It will show the status of the fan motor. For example if in auto mode no air flow is needed (due no filtering needed) it will show off. I updated the plugin to reflect it better. To switch on/off, you need the fan mode widget

@Booleano75 for your questions/remarks:

Will get back to the other comments as well

Booleano75 commented 3 years ago
  • if I understand you correct, when the fan is off, you expect that setting a speed will set the fan to on?

correct, this is the same behaviour of Dyson link app