Voice enunciate open / close for doors & windows using webCoRe

See the attached picture / code example you can import into your webCore instance.

This Piston creates a variable with the device name of any door or window that opens or closes (or any contact) and then speaks it. So in my house now anytime someone opens a door or window my Fabriq speakers say something like "Front door opened" and then "Front door closed". Could also be modified to monitor glass break sensors to do the same thing but add firing of a siren for good measure.

I am thinking webCore is going to be my primary platform for automating all of these contacts due to its power to leverage limitless numbers of variables and conditions...

Domenic


  • Quick question on this...  Is there a reason or advantage to the initial define statement?  I've seen similar code that omits that part.  Not sure if doing the screenshot export changed the format of the code when it made everything generic.


    I'd only bother with the initial define statement if it allowed the subsequent code to simply read:

    If any of {DoorWindows} contact changes to open ...


    I was just curious if the export caused that line to expand to repeat all the sensors that were defined above.

  • Not exactly sure if the define is required, was reading a tutorial that suggested it. Haven’t tried without. I now have three of those FABRIQ speakers around the house and love them. You can also place them in group mode. Think cheap Sonos...
  • Did some testing and defining the variable is necessary to use it later to save the list of matching devices, though you can define it as a device and leave it empty since it gets overridden later with the devices that match the condition.


    I had something similar created to toggle a virtual lock so that an icon on my main ActionTiles screen will change accordingly and alert me that a zone is open.  I can then click on a link next to it to pull up the AT screen that displays every sensor status.

Login or Signup to post a comment