I am trying to get a notification like “the front door is not closed” once a script has checked all my door sensors.
To be more clear :
I have several fibaro door sensors
I want to have a notification if one or more of them are in “alarm contact true” and then get a notification saying “front door is not closed” and/or “backdoor is closed”
I have managed to create an array thanks to javascript logic app but i cannot retrieve the array and use it to say the notification correctly.
Are you trying to setup your own app or looking for a way to get this working?
Heimdall has this functionality, so you might want to have a look at that app, or you can just create flows, not sure why you want to use a script for it, but maybe i don’t understand exactly what you are trying to accomplish
if i click on it, i want to get notification that tells me which door is left opened (or which door sensor is in alarm) and if none, then notifies me All is fine
You could also do something like this…
Im using my thermostat to check if there is an fire (if temperature >40*C then write a text to “T_BrandAlarm_Text” also including the actual temperature
then in a different flow I check if the “T_BrandAlarm_Text” changes and write that text (string) to to push notification
Not sure if/how to accomplish it with heimdall, but can probably be done, I use heimdall as my alarm when i leave the house, have a look at the Pre Arming check in the link i just sent you.
If that doesn’t solve the issue you can just create 1 or more regular flows
If this is working for you and you just want to know the status of all sensors, you can add them using tags in your message field, if you just want to get a list of sensors that are triggered you need some other logic in the AND field probably (not sure, cause i can’t see the code ou are using to check)