distance
#
- class platypush.message.event.distance.DistanceSensorEvent(distance: float, unit: str = 'mm', *args, **kwargs)[source]#
Bases:
Event
Event triggered when a new value is processed by a distance sensor.
- __init__(distance: float, unit: str = 'mm', *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