recallfx / node-red-contrib-eufy-security

Eufy security node for Node RED
MIT License
6 stars 6 forks source link

Example for Eufy Alarm #7

Closed nitram-rem closed 1 year ago

nitram-rem commented 3 years ago

Hi,

i'm currently trying to create a node-red flow which receives an alarm and start a flow in Homee to switch all light on. The question is how can i analyse the incoming alarm event in a node-red function to create at the end the correct payload to sned it to the Homee. Would it be possible to provide some function examples?

greetings

recallfx commented 3 years ago

Hello, Here is an example of basic motion flow: https://github.com/recallfx/node-red-contrib-eufy-security/blob/master/examples/motion.json

Should look like this: image

Here motion and alarm are simple debug nodes, that can be replaced with anything, for example switch on hubitat lights: image

Debug node motion will print lots of information like this: image

Most important is to setup eufy-security node to subscribe on these events (plus alarm event that is at the top) image

nitram-rem commented 3 years ago

Hi Marius,

thanks for your fast answer. Next question. Is it possible to cacade two switch nodes? On the first iw ill differ betwenn Alarm, Motion, Close and any other Event and on the cascaded i will differ in the motion tree between the different camera's so i can switch the light on in the correct region.

gxIQbnbP7A

second switch:

td6VjWkv86

greetings

Martin

recallfx commented 3 years ago

You can cascade, the result of the switch will be same message, then you can check based on that message properties what else to do. In my case msg.payload.device.name is Kids room and I can wire logic based on that.

nitram-rem commented 3 years ago

Hi, next question is it also possible to control the Eufy central using Node-red? As an example woult it be possible to switch between the securtiy modes? Like switch from at home to absend or geofencing? And if yes how should the command be formated? As i understood in the documentation this is currently not possible, right? Because after i have a proper working absences detection via fritz box it would be great to switch the guard mode of Eufy from at home to absend or something.