Skip to content

Commit

Permalink
Fixes sensors for Big+Quiet (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotvezz authored Oct 28, 2023
1 parent 5b5935b commit 0c31cb1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
7 changes: 4 additions & 3 deletions custom_components/dyson_local/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
22 changes: 22 additions & 0 deletions devices.txt
Original file line number Diff line number Diff line change
@@ -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==

1 comment on commit 0c31cb1

@peterb4951
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am really new to this - only installed Home Assistant yesterday and was struggling with Dyson until I discovered this update. My fan does not have the information needed so I used my Dyson Account. There is no description on the entry boxes - first one requires Dyson username. Second Dyson password, then Dyson email another password which needs to go into the third. It then worked. Thanks very much

Please sign in to comment.