Switches multiple switches and scenes based on various conditions such as time, day of week, date presence and sensor values. Multiple conditions can be combined using boolean junctions AND and OR (see nested condition).
Conditions work in both directions and turn the controlled devices/scenes on and off.
If the conditions apply multiple switches and scenes can be either turned on or off. Once the conditions do not apply anymore the opposite action (off or on) will be performed. If no switched devices are configured, this module will create a basic binary sensor that indicates the state of the condition.
Conditions that need to apply in order for the selected switches to be swiched on or off.
Type of the condition. Can be a binary, multilevel, presence, date or time conditions. Furthermore conditions may be nested to create complex rules.
Comparison device/value for binary sensors and switches.
Comparison device/operator/value for multilevel sensors and switches.
Check for presence mode.
Multiple time periods when the condition should be apply. Time in HH:MM format
Multiple date periods when the condition should be apply. Date in MM.DD format
For complex conditions, multiple conditions may be nested using boolean junctions.
Multiple switched devices. If no devices are specified, this module will create a binary sensor to act as the switched device.
Switched binary devices and status (on,off)
Switched multilevel devices and status (on,off,exact level)
Scenes that should be activated if the condition toggles on or off.
Events that should be emitted if the condition toggles on or off.
Thermostat that should be changed if the condition toggles on or off. Sets the thermostat to its original level once the condition toggles back to off.
Custom events can be emitted when the condition toggles on or off. EventWatcher can then be used to catch and act upon these events.
No virtual device is created
Install the BaseModule from https://github.com/maros/Zway-BaseModule first
The prefered way of installing this module is via the "Zwave.me App Store" available in 2.2.0 and higher. For stable module releases no access token is required. If you want to test the latest pre-releases use 'k1_beta' as app store access token.
For developers and users of older Zway versions installation via git is recommended.
cd /opt/z-way-server/automation/userModules
git clone https://github.com/maros/Zway-ConditionSwitch.git ConditionSwitch --branch latest
To update or install a specific version
cd /opt/z-way-server/automation/userModules/ConditionSwitch
git fetch --tags
# For latest released version
git checkout tags/latest
# For a specific version
git checkout tags/1.02
# For development version
git checkout -b master --track origin/master
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
Switch icon by Francesco Terzini from the Noun Project
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.