From 09c62c585737704483ec642586aa88ee374af62d Mon Sep 17 00:00:00 2001 From: Jonathan Robichaud Date: Sat, 16 Mar 2024 15:01:56 -0300 Subject: [PATCH] Add support for nightmode --- src/blueair_api/device_aws.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/blueair_api/device_aws.py b/src/blueair_api/device_aws.py index 5a26005..2133e4c 100644 --- a/src/blueair_api/device_aws.py +++ b/src/blueair_api/device_aws.py @@ -98,6 +98,11 @@ async def set_child_lock(self, child_lock: bool): self.child_lock = child_lock await self.api.set_device_info(self.uuid, "childlock", "vb", child_lock) self.publish_updates() + + async def set_night_mode(self, night_mode: bool): + self.night_mode = night_mode + await self.api.set_device_info(self.uuid, "nightmode", "vb", night_mode) + self.publish_updates() def __repr__(self): return {