Source code for switchbot_utility.switchbot_ir_light

from .switchbot_ir_device import SwitchbotIrDevice


[docs]class IrLight(SwitchbotIrDevice): """Switchbot virtual IR Light""" def __init__(self, deviceId): super().__init__(deviceId)
[docs] def brightness_up(self) -> str: """Brightness up""" self._body["command"] = "brightnessUp" result = self.command(self.deviceId, self._body) return result.text
[docs] def brightness_down(self) -> str: """Brightness down""" self._body["command"] = "brightnessDown" result = self.command(self.deviceId, self._body) return result.text