Create a scene based on an event

Go to blockly…

I have an EnOcean motion sensor, I will use that one for this example but it’s the same for any other devices.

First add a “If” block and click on the star to add an “elseif” :


Then in the first if clause, we will add the “Sensor ON” and in the second the “Sensor OFF”.
To do that we need the block “Device event ==” in utils and the “Event Device” block in “EnOcean”.

Here is the result :


Finally, we want to be notified when a new motion is detected ( We used the “Pushover” service).

Here is the final result :


Note : It’s possible that some motion sensor don’t have an “Event” block.
If you think it’s the case, contact us.