#Passing raw event to Python script

1 messages · Page 1 of 1 (latest)

hard rock
#

I have a device that sends events like this, as logged in devices's Activity panel:

DimmerButton Step event was fired with parameters: {'step_mode': 1, 'step_size': 13, 'transition_time': 1, 'options_mask': None, 'options_override': None}

How do I set up an automation that triggers on this event and passes the raw data of this event to a Python script to handle? I tried the "Manual event" trigger with various names "Step", "Step event", etc but those triggers never fire. And there is no option for the raw event under the events of the specific Device - only synthetic events generated based on that which discard parameter values of the original event. Alternatively, can I set up a Python script to invoke something like hass.bus.listen by itself to listen for that event without an automation?