seydx / homebridge-philipsair-platform

Homebridge plugin for philips air purifier and humidifier.
MIT License
24 stars 14 forks source link

Air Purifier: Purifier Mode: true Loop #170

Open Achimek opened 11 months ago

Achimek commented 11 months ago

Describe the bug From time to time it's creating a loop with logs that I pasted in "logs" This is all logs with "debug" lvl of logging To Reproduce It's hard to reproduce

Expected behavior Do nothing

Logs [8/6/2023, 7:52:54 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 7:52:55 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 7:53:09 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 7:56:24 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 7:56:40 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:00:25 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:04:51 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:06:11 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:06:12 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:07:29 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:07:30 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:08:28 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:08:29 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:08:51 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:08:54 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:08:55 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:12:49 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:13:06 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:16:49 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:17:07 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:28:46 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:29:01 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:29:05 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:29:13 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:29:47 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:29:56 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:30:09 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [8/6/2023, 8:30:10 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true0

Screenshots image

Environment

Achimek commented 9 months ago

I have more errors

[9/27/2023, 6:33:02 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: DEBUG:aioairctrl.coap.client:syncing DEBUG:coap:Sending request - Token: 5855, Remote: <UDP6EndpointAddress 192.168.1.24> DEBUG:coap:Sending message <aiocoap.Message at 0x7f777b8e48: Type.NON POST (MID 16683, token 5855) remote <UDP6EndpointAddress 192.168.1.24>, 1 option(s), 8 byte(s) payload> DEBUG:coap:Incoming message <aiocoap.Message at 0x7f780d1fd0: Type.NON 2.05 Content (MID 16683, token 5855) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 8 byte(s) payload> DEBUG:coap:Received Response: <aiocoap.Message at 0x7f780d1fd0: Type.NON 2.05 Content (MID 16683, token 5855) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 8 byte(s) payload> DEBUG:coap:Response <aiocoap.Message at 0x7f780d1fd0: Type.NON 2.05 Content (MID 16683, token 5855) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 8 byte(s) payload> matched to request <PlumbingRequest at 0x7f780be748 around <aiocoap.Message at 0x7f777b8e48: Type.NON POST (MID 16683, token 5855) remote <UDP6EndpointAddress 192.168.1.24>, 1 option(s), 8 byte(s) payload> with 2 callbacks> DEBUG:aioairctrl.coap.client:synced: 00EA3383 DEBUG:aioairctrl.coap.client:REQUEST: {"state": {"desired": {"CommandType": "app", "DeviceId": "", "EnduserId": "", "mode": "P"}}} DEBUG:coap:Sending request - Token: 5856, Remote: <UDP6EndpointAddress 192.168.1.24> DEBUG:coap:Sending message <aiocoap.Message at 0x7f780be828: Type.NON POST (MID 16684, token 5856) remote <UDP6EndpointAddress 192.168.1.24>, 1 option(s), 264 byte(s) payload> DEBUG:coap:Incoming message <aiocoap.Message at 0x7f780be710: Type.NON 2.05 Content (MID 16684, token 5856) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 20 byte(s) payload> DEBUG:coap:Received Response: <aiocoap.Message at 0x7f780be710: Type.NON 2.05 Content (MID 16684, token 5856) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 20 byte(s) payload> DEBUG:coap:Response <aiocoap.Message at 0x7f780be710: Type.NON 2.05 Content (MID 16684, token 5856) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 20 byte(s) payload> matched to request <PlumbingRequest at 0x7f777b8e48 around <aiocoap.Message at 0x7f780be828: Type.NON POST (MID 16684, token 5856) remote <UDP6EndpointAddress 192.168.1.24>, 1 option(s), 264 byte(s) payload> with 2 callbacks> DEBUG:aioairctrl.coap.client:RESPONSE: b'{"status":"success"}' DEBUG:coap:Shutting down context

[9/27/2023, 6:33:03 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: DEBUG:coap:Incoming message <aiocoap.Message at 0x7f87752710: Type.NON 2.05 Content (MID 106, token 489e) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 3 option(s), 1512 byte(s) payload>

[9/27/2023, 6:33:03 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: DEBUG:coap:Received Response: <aiocoap.Message at 0x7f87752710: Type.NON 2.05 Content (MID 106, token 489e) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 3 option(s), 1512 byte(s) payload>

[9/27/2023, 6:33:03 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: DEBUG:coap:Response <aiocoap.Message at 0x7f87752710: Type.NON 2.05 Content (MID 106, token 489e) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 3 option(s), 1512 byte(s) payload> matched to request <PlumbingRequest at 0x7f880a6ac8 around <aiocoap.Message at 0x7f88994780: Type.NON GET (MID 10943, token 489e) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 2 option(s)> with 2 callbacks>

[9/27/2023, 6:33:03 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: DEBUG:coap.blockwise-requester:Notification received

[9/27/2023, 6:33:03 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: DEBUG:coap.blockwise-requester:Reporting completed notification

[9/27/2023, 6:33:03 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: DEBUG:aioairctrl.coap.client:observation status: {"state":{"reported":{"name":"Sypialnia","type":"AC3829","modelid":"AC3829/50","MCUBoot":true,"swversion":"1.4.0","DeviceVersion":"0.0.0","range":"Mario","Runtime":525334,"rssi":-37,"otacheck":false,"wifilog":false,"free_memory":57120,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"96cc4f94e1f911eabc6802024953075e","DeviceId":"443570ba764c11ec88c5ea99460f0a33","StatusType":"control","ConnectType":"Online","om":"1","pwr":"1","cl":false,"aqil":0,"uil":"1","dt":0,"dtrs":0,"mode":"P","func":"PH","rhset":50,"rh":56,"temp":26,"pm25":34,"iaql":6,"aqit":4,"aqit_ext":0,"ddp":"1","rddp":"0","err":32768,"wl":0,"fltt1":"A3","fltt2":"C7","fltsts0":307,"fltsts1":3575,"fltsts2":3575,"wicksts":3575},"desired":null}}

[9/27/2023, 6:33:03 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: {"name": "Sypialnia", "type": "AC3829", "modelid": "AC3829/50", "MCUBoot": true, "swversion": "1.4.0", "DeviceVersion": "0.0.0", "range": "Mario", "Runtime": 525334, "rssi": -37, "otacheck": false, "wifilog": false, "free_memory": 57120, "WifiVersion": "AWS_Philips_AIR@73.1", "ProductId": "96cc4f94e1f911eabc6802024953075e", "DeviceId": "443570ba764c11ec88c5ea99460f0a33", "StatusType": "control", "ConnectType": "Online", "om": "1", "pwr": "1", "cl": false, "aqil": 0, "uil": "1", "dt": 0, "dtrs": 0, "mode": "P", "func": "PH", "rhset": 50, "rh": 56, "temp": 26, "pm25": 34, "iaql": 6, "aqit": 4, "aqit_ext": 0, "ddp": "1", "rddp": "0", "err": 32768, "wl": 0, "fltt1": "A3", "fltt2": "C7", "fltsts0": 307, "fltsts1": 3575, "fltsts2": 3575, "wicksts": 3575}

[9/27/2023, 6:33:03 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [9/27/2023, 6:33:03 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: CMD: python3 /var/lib/homebridge/node_modules/homebridge-philipsair-platform/lib/pyaircontrol.py -H 192.168.1.24 -P 5683 -D set mode=P [9/27/2023, 6:33:04 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: DEBUG:coap:Incoming message <aiocoap.Message at 0x7f87752f60: Type.NON 2.05 Content (MID 108, token 489e) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 3 option(s), 1512 byte(s) payload>

[9/27/2023, 6:33:04 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: DEBUG:coap:Received Response: <aiocoap.Message at 0x7f87752f60: Type.NON 2.05 Content (MID 108, token 489e) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 3 option(s), 1512 byte(s) payload>

[9/27/2023, 6:33:04 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: DEBUG:coap:Response <aiocoap.Message at 0x7f87752f60: Type.NON 2.05 Content (MID 108, token 489e) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 3 option(s), 1512 byte(s) payload> matched to request <PlumbingRequest at 0x7f880a6ac8 around <aiocoap.Message at 0x7f88994780: Type.NON GET (MID 10943, token 489e) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 2 option(s)> with 2 callbacks>

[9/27/2023, 6:33:04 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: DEBUG:coap.blockwise-requester:Notification received

[9/27/2023, 6:33:04 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: DEBUG:coap.blockwise-requester:Reporting completed notification

[9/27/2023, 6:33:04 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: DEBUG:aioairctrl.coap.client:observation status: {"state":{"reported":{"name":"Sypialnia","type":"AC3829","modelid":"AC3829/50","MCUBoot":true,"swversion":"1.4.0","DeviceVersion":"0.0.0","range":"Mario","Runtime":526242,"rssi":-37,"otacheck":false,"wifilog":false,"free_memory":57096,"WifiVersion":"AWS_Philips_AIR@73.1","ProductId":"96cc4f94e1f911eabc6802024953075e","DeviceId":"443570ba764c11ec88c5ea99460f0a33","StatusType":"control","ConnectType":"Online","om":"1","pwr":"1","cl":false,"aqil":0,"uil":"1","dt":0,"dtrs":0,"mode":"P","func":"PH","rhset":50,"rh":56,"temp":26,"pm25":35,"iaql":6,"aqit":4,"aqit_ext":0,"ddp":"1","rddp":"0","err":32768,"wl":0,"fltt1":"A3","fltt2":"C7","fltsts0":307,"fltsts1":3575,"fltsts2":3575,"wicksts":3575},"desired":null}}

[9/27/2023, 6:33:04 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: {"name": "Sypialnia", "type": "AC3829", "modelid": "AC3829/50", "MCUBoot": true, "swversion": "1.4.0", "DeviceVersion": "0.0.0", "range": "Mario", "Runtime": 526242, "rssi": -37, "otacheck": false, "wifilog": false, "free_memory": 57096, "WifiVersion": "AWS_Philips_AIR@73.1", "ProductId": "96cc4f94e1f911eabc6802024953075e", "DeviceId": "443570ba764c11ec88c5ea99460f0a33", "StatusType": "control", "ConnectType": "Online", "om": "1", "pwr": "1", "cl": false, "aqil": 0, "uil": "1", "dt": 0, "dtrs": 0, "mode": "P", "func": "PH", "rhset": 50, "rh": 56, "temp": 26, "pm25": 35, "iaql": 6, "aqit": 4, "aqit_ext": 0, "ddp": "1", "rddp": "0", "err": 32768, "wl": 0, "fltt1": "A3", "fltt2": "C7", "fltsts0": 307, "fltsts1": 3575, "fltsts2": 3575, "wicksts": 3575}

[9/27/2023, 6:33:04 AM] [PhilipsAirPlatform] Air Purifier: Purifier Mode: true [9/27/2023, 6:33:04 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: CMD: python3 /var/lib/homebridge/node_modules/homebridge-philipsair-platform/lib/pyaircontrol.py -H 192.168.1.24 -P 5683 -D set mode=P [9/27/2023, 6:33:04 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: DEBUG:aioairctrl.coap.client:syncing DEBUG:coap:Sending request - Token: 6259, Remote: <UDP6EndpointAddress 192.168.1.24> DEBUG:coap:Sending message <aiocoap.Message at 0x7faba5b4e0: Type.NON POST (MID 47578, token 6259) remote <UDP6EndpointAddress 192.168.1.24>, 1 option(s), 8 byte(s) payload> DEBUG:coap:Incoming message <aiocoap.Message at 0x7fac03e208: Type.NON 2.05 Content (MID 47578, token 6259) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 8 byte(s) payload> DEBUG:coap:Received Response: <aiocoap.Message at 0x7fac03e208: Type.NON 2.05 Content (MID 47578, token 6259) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 8 byte(s) payload> DEBUG:coap:Response <aiocoap.Message at 0x7fac03e208: Type.NON 2.05 Content (MID 47578, token 6259) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 8 byte(s) payload> matched to request <PlumbingRequest at 0x7fac01f908 around <aiocoap.Message at 0x7faba5b4e0: Type.NON POST (MID 47578, token 6259) remote <UDP6EndpointAddress 192.168.1.24>, 1 option(s), 8 byte(s) payload> with 2 callbacks> DEBUG:aioairctrl.coap.client:synced: 07AA8076 DEBUG:aioairctrl.coap.client:REQUEST: {"state": {"desired": {"CommandType": "app", "DeviceId": "", "EnduserId": "", "mode": "P"}}} DEBUG:coap:Sending request - Token: 625a, Remote: <UDP6EndpointAddress 192.168.1.24> DEBUG:coap:Sending message <aiocoap.Message at 0x7fac01f908: Type.NON POST (MID 47579, token 625a) remote <UDP6EndpointAddress 192.168.1.24>, 1 option(s), 264 byte(s) payload> DEBUG:coap:Incoming message <aiocoap.Message at 0x7fac01f8d0: Type.NON 2.05 Content (MID 47579, token 625a) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 20 byte(s) payload> DEBUG:coap:Received Response: <aiocoap.Message at 0x7fac01f8d0: Type.NON 2.05 Content (MID 47579, token 625a) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 20 byte(s) payload> DEBUG:coap:Response <aiocoap.Message at 0x7fac01f8d0: Type.NON 2.05 Content (MID 47579, token 625a) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 20 byte(s) payload> matched to request <PlumbingRequest at 0x7faba5b4e0 around <aiocoap.Message at 0x7fac01f908: Type.NON POST (MID 47579, token 625a) remote <UDP6EndpointAddress 192.168.1.24>, 1 option(s), 264 byte(s) payload> with 2 callbacks> DEBUG:aioairctrl.coap.client:RESPONSE: b'{"status":"success"}' DEBUG:coap:Shutting down context

[9/27/2023, 6:33:05 AM] [PhilipsAirPlatform] [DEBUG] Air Purifier: DEBUG:aioairctrl.coap.client:syncing DEBUG:coap:Sending request - Token: 2e01, Remote: <UDP6EndpointAddress 192.168.1.24> DEBUG:coap:Sending message <aiocoap.Message at 0x7fa1753cc0: Type.NON POST (MID 60066, token 2e01) remote <UDP6EndpointAddress 192.168.1.24>, 1 option(s), 8 byte(s) payload> DEBUG:coap:Incoming message <aiocoap.Message at 0x7fa20771d0: Type.NON 2.05 Content (MID 60066, token 2e01) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 8 byte(s) payload> DEBUG:coap:Received Response: <aiocoap.Message at 0x7fa20771d0: Type.NON 2.05 Content (MID 60066, token 2e01) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 8 byte(s) payload> DEBUG:coap:Response <aiocoap.Message at 0x7fa20771d0: Type.NON 2.05 Content (MID 60066, token 2e01) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 8 byte(s) payload> matched to request <PlumbingRequest at 0x7fa2058908 around <aiocoap.Message at 0x7fa1753cc0: Type.NON POST (MID 60066, token 2e01) remote <UDP6EndpointAddress 192.168.1.24>, 1 option(s), 8 byte(s) payload> with 2 callbacks> DEBUG:aioairctrl.coap.client:synced: 43CF618A DEBUG:aioairctrl.coap.client:REQUEST: {"state": {"desired": {"CommandType": "app", "DeviceId": "", "EnduserId": "", "mode": "P"}}} DEBUG:coap:Sending request - Token: 2e02, Remote: <UDP6EndpointAddress 192.168.1.24> DEBUG:coap:Sending message <aiocoap.Message at 0x7fa2058908: Type.NON POST (MID 60067, token 2e02) remote <UDP6EndpointAddress 192.168.1.24>, 1 option(s), 264 byte(s) payload> DEBUG:coap:Incoming message <aiocoap.Message at 0x7fa20588d0: Type.NON 2.05 Content (MID 60067, token 2e02) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 20 byte(s) payload> DEBUG:coap:Received Response: <aiocoap.Message at 0x7fa20588d0: Type.NON 2.05 Content (MID 60067, token 2e02) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 20 byte(s) payload> DEBUG:coap:Response <aiocoap.Message at 0x7fa20588d0: Type.NON 2.05 Content (MID 60067, token 2e02) remote <UDP6EndpointAddress 192.168.1.24 (locally 192.168.1.20%wlan0)>, 1 option(s), 20 byte(s) payload> matched to request <PlumbingRequest at 0x7fa1753cc0 around <aiocoap.Message at 0x7fa2058908: Type.NON POST (MID 60067, token 2e02) remote <UDP6EndpointAddress 192.168.1.24>, 1 option(s), 264 byte(s) payload> with 2 callbacks> DEBUG:aioairctrl.coap.client:RESPONSE: b'{"status":"success"}' DEBUG:coap:Shutting down context