[userModule] Smart MotionTrigger (Updated 2016/12/05)

Tips, Tricks and Scripts to enhance your home automation and workaround known device bugs, limitations and incompatibilities
Post Reply
maros
Posts: 103
Joined: 05 Apr 2014 11:21

[userModule] Smart MotionTrigger (Updated 2016/12/05)

Post by maros »

Trigger switches based on security sensors like motion or door sensors if certain preconditions are met (eg. luminosity below a certain level). Lets you specify multiple devices to trigger and check, a delay for turning off lights and multiple other devices to check. This module will ensure that devices are not triggered if any of the selected devices is already turned on. Optionally it will re-evaluate the preconditions regularly, and turn off the light once the preconditions aren't met anymore

Tested with Z-Way version v2.1.1
Bug/Issue tracker at https://github.com/maros/Zway-MotionTrigger/issues
Documentation at https://github.com/maros/Zway-MotionTri ... /README.md
Download at https://github.com/maros/Zway-MotionTrigger/releases

Installation can be done directly via git or via the the Zway App-Store. Install the BaseModule first.
Last edited by maros on 04 Feb 2017 15:25, edited 3 times in total.
Z-Way 2.2.4 on Raspi B | My Zway GitHub repos | Amazon Wishlist to support module development
maros
Posts: 103
Joined: 05 Apr 2014 11:21

Re: [userModule] Smart MotionTrigger (Updated 2016/01/08)

Post by maros »

A new version was released on github.com and will shortly be available via the appstore. Please note that you will need to re-create your triggers since the config schema/format has changed considerably.

So what are the new features?
  • Dimmer handling improved. Dimmer level can be either set statically, dynamically based on luminosity or via custom javascript code
  • Preconditions reworked. Time, day of week, binary sensors/switches and multilevel sensors/switches may be used as preconditions to check before triggering a light. Preconditions may be luminosity sensors, solar altitude, other lights in the same room, ... These preconditions can be re-checked regularly to untigger the light immediately once the condition do not apply anymore (eg. if another light was switched on in the meantime)
  • The module also emits an event whenever a light is switched on or off. ie. Allows other motion triggers instances (or other modules), to act immediately after one trigger has been switched off.
  • Update module state if the light was switched off manually.
Please also upgrade to the latest version of BaseModule.
Z-Way 2.2.4 on Raspi B | My Zway GitHub repos | Amazon Wishlist to support module development
Post Reply