sensor.light
#
- class platypush.message.event.sensor.light.LightOffEvent(*args, **kwargs)[source]#
Bases:
Event
Event triggered when a light off event is detected
- __init__(*args, **kwargs)[source]#
- Parameters:
target (str) – Target node
origin (str) – Origin node (default: current node)
id (str) – Event ID (default: auto-generated)
timestamp (float) – Event timestamp (default: current time)
logging_level – Logging level for this event (default:
logging.INFO
)disable_web_clients_notification – Don’t send a notification of this event to the websocket clients
kwargs – Additional arguments for the event
- class platypush.message.event.sensor.light.LightOnEvent(*args, **kwargs)[source]#
Bases:
Event
Event triggered when a light on event is detected
- __init__(*args, **kwargs)[source]#
- Parameters:
target (str) – Target node
origin (str) – Origin node (default: current node)
id (str) – Event ID (default: auto-generated)
timestamp (float) – Event timestamp (default: current time)
logging_level – Logging level for this event (default:
logging.INFO
)disable_web_clients_notification – Don’t send a notification of this event to the websocket clients
kwargs – Additional arguments for the event