latest update broke automatic rules

Discussions about Z-Way software and Z-Wave technology in general
seattleneil
Posts: 172
Joined: 02 Mar 2020 22:41

Re: latest update broke automatic rules

Post by seattleneil »

Currently, Z-Way does not have logic to validate user rules. If it did, it would provide a warning that the rules you created will be constantly triggered (i.e., the "if" condition turning on your night light will be constantly true for many hours per day, and the "if" condition for turning off your night light will be constantly true for many hours per day). Please consider re-writing your rules so that they only trigger when necessary, as follows:

1. Install the Daylight module and configure it for your latitude and longitude (or adjust these values so that the sunrise/sunset occurs at the desired time, rather than the calculated time). Give the Daylight instance a name, such as "Daylight".
2. Update your "Nattljus" rule with an "if" condition of "Daylight" = off. Do not use the AND condition for time >= 5:30.
3. Update your "Nattljus off" rule with an "if" condition of "Daylight" = on. Do not use the OR condition for time <= 5:29.
4. Create a new automation schedule entry that runs at midnight to turns off the lights (the same entries as the "then" in your "Nattljus off" rule).

A couple of things to keep in mind:
1. You'll need to restart Z-Way to clear out the job queue.
2. Since the sunrise/sunset times are calculated at 3:01 AM, the lights may not turn on for the first evening. As a temporary workaround for the first night, add a second automation schedule entry that runs at 9 PM (or whenever it's sunset where you live) to turn on the lights (the same entries as the "then" in your "Nattljus" rule). After the first evening has passed, delete (or pause) this workaround rule.

Assuming you don't have other rules that are constantly triggering, your Z-Way system should be much happier. From the screenshot you provided, it looks like you may have other rules that would not pass Z-Way's rule validation check (if a validation check existed).
harre
Posts: 95
Joined: 24 Nov 2020 02:22

Re: latest update broke automatic rules

Post by harre »

seattleneil wrote:
21 May 2023 04:24
Thanks for the long explanation. I have had this setup for some years and that it triggers the rules all the time was quite good as sometimes when just having a scheduled one-time schedule it sometimes misses to update the state of the lights.

Is there a way to have the one-time trigger to make sure that the desired state is set to the lights?

I'll try to test the add-on you mentioned and see how it will work
Post Reply