Intercept service call associating alarm/sensors to devices

Problem :
When you have an alarm system opening a window or lowering a blind could make the alarm ring.

Actual solution :
Per every blind/window/switch build a template based in the same data of the actual object and insert a script to do the check BEFORE actually open it.

Desired possible solutions :

  • Change the call globally to insert default behaviour (disable sensor, disable alarm, don’t open, play an audio warning etc.)
  • insert sensor-object relationship and define a behaviour
  • both