dahlb / ha_blueair

Home Assistant Integration for Blueair Class Filters
MIT License
25 stars 6 forks source link

Add support for Sense+ filter and Aware sensors #61

Open mlkh0225 opened 6 months ago

mlkh0225 commented 6 months ago

Hi,

Currently trying to setup Sense+ filter and Aware sensors for HA, but kept getting error 'wifi_status' and fail

2024-01-01 13:32:07.471 DEBUG (MainThread) [blueair_api.util_http] response status: 200
2024-01-01 13:32:07.473 DEBUG (MainThread) [blueair_api.util_http] response raw: [{"userId":99963,"uuid":"2503466FF88007A2","scope":"device","name":"auto_mode_dependency","currentValue":"pm","defaultValue":"pm"},{"userId":434707,"uuid":"2503466FF88007A2","scope":"device","name":"brightness","currentValue":"4","defaultValue":"0"},{"userId":434707,"uuid":"2503466FF88007A2","scope":"device","name":"child_lock","currentValue":"0","defaultValue":"0"},{"userId":99963,"uuid":"2503466FF88007A2","scope":"device","name":"dealerCountry","currentValue":"","defaultValue":""},{"userId":99963,"uuid":"2503466FF88007A2","scope":"device","name":"dealerName","currentValue":"","defaultValue":""},{"userId":434707,"uuid":"2503466FF88007A2","scope":"device","name":"fan_speed","currentValue":"1","defaultValue":"0"},{"userId":434707,"uuid":"2503466FF88007A2","scope":"device","name":"fan_usage","currentValue":"0;0;0;0;0;51840","defaultValue":""},{"userId":434707,"uuid":"2503466FF88007A2","scope":"device","name":"filterType","currentValue":"row","defaultValue":"row"},{"userId":99963,"uuid":"2503466FF88007A2","scope":"device","name":"filter_status","currentValue":"OK","defaultValue":""},{"userId":434707,"uuid":"2503466FF88007A2","scope":"device","name":"mode","currentValue":"auto","defaultValue":"auto"},{"userId":99963,"uuid":"2503466FF88007A2","scope":"device","name":"model","currentValue":"Blueair Sense+","defaultValue":"Blueair Sense+"},{"userId":99963,"uuid":"2503466FF88007A2","scope":"device","name":"purchaseDate","currentValue":"","defaultValue":""},{"userId":99963,"uuid":"2503466FF88007A2","scope":"device","name":"serial","currentValue":"","defaultValue":""}]
2024-01-01 13:32:07.473 DEBUG (MainThread) [blueair_api.device] result: {'auto_mode_dependency': 'pm', 'brightness': '4', 'child_lock': '0', 'dealerCountry': '', 'dealerName': '', 'fan_speed': '1', 'fan_usage': '0;0;0;0;0;51840', 'filterType': 'row', 'filter_status': 'OK', 'mode': 'auto', 'model': 'Blueair Sense+', 'purchaseDate': '', 'serial': ''}
2024-01-01 13:32:07.473 ERROR (MainThread) [custom_components.ha_blueair.blueair_data_update_coordinator] 'wifi_status'
2024-01-01 13:32:07.474 DEBUG (MainThread) [custom_components.ha_blueair.blueair_data_update_coordinator] Finished fetching ha_blueair-Sense+ data in 0.214 seconds (success: False)
dahlb commented 5 months ago

I expect 1.8.5 will fix this

mlkh0225 commented 5 months ago

@dahlb Sense+ can now be added to HA, however Aware is still getting errors, this time 'filter_status' Since Aware is a sensor only device and pairs with the filter only Sense, they can't be treated normal filters

2024-01-18 13:50:24.806 DEBUG (MainThread) [blueair_api.util_http] response headers:<CIMultiDict('Content-Encoding': 'gzip', 'Content-Type': 'application/json;charset=UTF-8', 'Date': 'Thu, 18 Jan 2024 05:50:24 GMT', 'Server': 'nginx/1.12.1', 'Vary': 'Accept-Encoding,Accept-Encoding', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive')>
2024-01-18 13:50:24.806 DEBUG (MainThread) [blueair_api.util_http] response status: 200
2024-01-18 13:50:24.806 DEBUG (MainThread) [blueair_api.util_http] response raw: [{"userId":434707,"uuid":"2C01466DB5D045F1","scope":"device","name":"brightness","currentValue":"100","defaultValue":"100"},{"userId":434707,"uuid":"2C01466DB5D045F1","scope":"device","name":"child_lock","currentValue":"0","defaultValue":"0"},{"userId":99963,"uuid":"2C01466DB5D045F1","scope":"device","name":"dealerCountry","currentValue":"","defaultValue":""},{"userId":99963,"uuid":"2C01466DB5D045F1","scope":"device","name":"dealerName","currentValue":"","defaultValue":""},{"userId":434707,"uuid":"2C01466DB5D045F1","scope":"device","name":"fan_speed","currentValue":"0","defaultValue":"0"},{"userId":434707,"uuid":"2C01466DB5D045F1","scope":"device","name":"mode","currentValue":"manual","defaultValue":"manual"},{"userId":99963,"uuid":"2C01466DB5D045F1","scope":"device","name":"model","currentValue":"Blueair Aware","defaultValue":"Blueair Aware"},{"userId":99963,"uuid":"2C01466DB5D045F1","scope":"device","name":"purchaseDate","currentValue":"","defaultValue":""},{"userId":99963,"uuid":"2C01466DB5D045F1","scope":"device","name":"serial","currentValue":"","defaultValue":""}]
2024-01-18 13:50:24.806 DEBUG (MainThread) [blueair_api.device] result: {'brightness': '100', 'child_lock': '0', 'dealerCountry': '', 'dealerName': '', 'fan_speed': '0', 'mode': 'manual', 'model': 'Blueair Aware', 'purchaseDate': '', 'serial': ''}
2024-01-18 13:50:24.806 ERROR (MainThread) [custom_components.ha_blueair.blueair_data_update_coordinator] 'filter_status'
2024-01-18 13:50:24.808 DEBUG (MainThread) [custom_components.ha_blueair.blueair_data_update_coordinator] Finished fetching ha_blueair-Aware data in 0.234 seconds (success: False)