TasmotaLight¶
-
class
knut.services.light.tasmota_light.TasmotaLight(location: str, uid: str, room: str, ip: str, dimmable: bool = False)¶ Light with the Tasmota firmware as light service.
Extend the
Lightservice to use a tasmota light which can be controlled via a web API.The light has an uid and location within a room.
If the state of the light changes, e.g. when calling
status_setter(), the methodon_change()is called with the uid as argument. Any listener can register upon this event.