diff --git a/dyson_pure_link_device.py b/dyson_pure_link_device.py index 7a04bff..ab59e87 100644 --- a/dyson_pure_link_device.py +++ b/dyson_pure_link_device.py @@ -20,4 +20,4 @@ def password(self): return self._password def __repr__(self): - return 'Dyson device from plugin with serial {0} of type {1}'.format(self.serial, self.product_type) \ No newline at end of file + return 'Dyson device from plugin with serial {0} of type {1}'.format(self.serial, self.product_type) diff --git a/plugin.py b/plugin.py index 668dc92..b4a96c1 100644 --- a/plugin.py +++ b/plugin.py @@ -3,7 +3,7 @@ # Author: Jan-Jaap Kostelijk # """ - +

Dyson Pure Link plugin


Connects to Dyson Pure Link devices
@@ -254,7 +254,9 @@ def onCommand(self, Unit, Command, Level, Hue): topic, payload = self.myDevice.set_fan_mode_auto(str(Command).upper()) if Unit == self.standbyMonitoringUnit: topic, payload = self.myDevice.set_standby_monitoring(str(Command).upper()) - + if Unit == self.nightModeUnit: + topic, payload = self.myDevice.set_night_mode(str(Command).upper()) + self.mqttClient.Publish(topic, payload) def onConnect(self, Connection, Status, Description):