platypush.message.event.light

class platypush.message.event.light.LightStatusChangeEvent(light_id=None, light_name=None, on=None, bri=None, sat=None, hue=None, ct=None, *args, **kwargs)[source]

Event triggered when the state of a lightbulb changes

__init__(light_id=None, light_name=None, on=None, bri=None, sat=None, hue=None, ct=None, *args, **kwargs)[source]
Parameters:
  • light_id (int) – Light ID that triggered the event
  • light_name (str) – Light name that triggered the event
  • on (bool) – Set if the power state of the bulb changed
  • bri (int) – Set if the brightness state of the bulb changed
  • sat (int) – Set if the saturation state of the bulb changed
  • hue (int) – Set if the hue state of the bulb changed
  • ct (int) – Set if the color temperature state of the bulb changed