From 0c31cb178cd37f83ffa076fc8ab8156b246d05f5 Mon Sep 17 00:00:00 2001 From: Ben Vezzani Date: Sat, 28 Oct 2023 19:33:33 -0400 Subject: [PATCH] Fixes sensors for Big+Quiet (#82) --- custom_components/dyson_local/sensor.py | 7 ++++--- devices.txt | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 devices.txt diff --git a/custom_components/dyson_local/sensor.py b/custom_components/dyson_local/sensor.py index 84ee04e..d56584c 100644 --- a/custom_components/dyson_local/sensor.py +++ b/custom_components/dyson_local/sensor.py @@ -60,10 +60,11 @@ async def async_setup_entry( DysonParticulatesSensor(coordinator, device, name), ] ) - elif isinstance(device, DysonBigQuiet): - if hasattr(device, "carbon_dioxide") and device.carbon_dioxide is not None: - entities.append(DysonCarbonDioxideSensor(coordinator, device, name)) else: + if isinstance(device, DysonBigQuiet): + if hasattr(device, "carbon_dioxide") and device.carbon_dioxide is not None: + entities.append(DysonCarbonDioxideSensor(coordinator, device, name)) + entities.extend( [ DysonPM25Sensor(coordinator, device, name), diff --git a/devices.txt b/devices.txt new file mode 100644 index 0000000..c813c69 --- /dev/null +++ b/devices.txt @@ -0,0 +1,22 @@ + + +Serial: N9R-US-PJB7094A +Name: +Device Type: 527 +Credential: 8xPhRU9+SwTOTyU1Fni0VLpjd/hrDCPb2oyqp1eOGM78TmGnd7pae6jNsYTH4qwMnpOOFt2C/6z+20FDfGibhw== + +Serial: NM7-US-REA2128A +Name: Downstairs +Device Type: 475 +Credential: bRSU6+ck9EVZ4PtCUaqJp/XtbEzxEBgGLvPwg3XFJWRQvGMJYKKY8SjFF+153WQ3/YLmy3mUeB2glO6efEHZIQ== + +Serial: NM7-US-REA2583A +Name: Dyson Fan +Device Type: 475 +Credential: qQF4gMdA6Pg8OvY0OKmjpSOq/PAdcnD/Qv3KW8ecrLV3P82iMf9fK/TJBBpw0/2r7uovH0AwXL/WLHJYWpkNvg== + +Serial: X3V-US-RKA0414A +Name: Dyson Purifier Hot+Coolâ„¢ +Device Type: 527K +Credential: 8qno2lc/IRy2xAFUem4u6AwBmk8YzWiDesTCS37VcSuphygAry+LDukJWfS1y93iYqGvWIaJ4xOWxu5r4OS+3g== +