latest update broke automatic rules

Discussions about Z-Way software and Z-Wave technology in general
harre
Posts: 95
Joined: 24 Nov 2020 02:22

latest update broke automatic rules

Post by harre »

I have a simple rule that turn on my lights when it's getting dark. I had stopped triggering now. I have tried restarting without any luck.

I have tried to have just a time activated rule with still no lights going on and off.

Logs doesn't reveal much. Is there a way to further debug this?
harre
Posts: 95
Joined: 24 Nov 2020 02:22

Re: latest update broke automatic rules

Post by harre »

Update:
I manually installed latest beta and it started working again
https://storage.z-wave.me/z-way-server/ ... _armhf.deb
seattleneil
Posts: 172
Joined: 02 Mar 2020 22:41

Re: latest update broke automatic rules

Post by seattleneil »

As a simpler alternative to the Astronomy module, I've been very happy using a different module called Daylight that you may want to check out since it's very processor efficient - it creates a binary sensor that turns on at sunrise and off at sunset. The Daylight module works by scheduling a cron entry to run every day at 3:01 AM for calculating the sunrise and sunset times for today, and then updates 2 cron entries (to run at the calculated sunrise and sunset times). To turn a light off at sunset, I simply add an automation rule that's triggered when the sensor turns off.

If you're interested, you can see all of Z-Way's cron entries by running this command:
curl -u admin:[YOUR ADMIN PASSWORD] --globoff 'http://127.0.0.1:8083/ZAutomation/api/v1/instances/2'

The JSON output can be cut-and-pasted into a JSON pretty printer website where you should see an entry for daylight.newdate at 3:01 AM, with daylight.sunrise and daylight.sunset entries at the appropriate time.

In other words, instead of troubleshooting why the Astronomy module isn't working, you can disable and/or delete that module and use the Daylight module.
harre
Posts: 95
Joined: 24 Nov 2020 02:22

Re: latest update broke automatic rules

Post by harre »

Thanks for the tip, i also want to turn off the lights in the night when I'm sleeping to reduce light and cost.
micky1500
Posts: 298
Joined: 07 Feb 2016 16:29
Location: England

Re: latest update broke automatic rules

Post by micky1500 »

I use the Daylight app.
I'm in the UK, but I set my location as in Sweden, the timings are better for me.

How are you detecting when its getting dark ?
An old Generation 3 light sensor ?

Expertui. Expert commands, Device Settings. Set everything to Zero.
Old Sensors have more options after 4.0 upgrade.
https://forum.z-wave.me/viewtopic.php?f ... ngs#p97425

Hope this helps towards a solution.
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.1, Raz 7 Pro, Serial API Version: 07.38
User avatar
PoltoS
Posts: 7571
Joined: 26 Jan 2011 19:36

Re: latest update broke automatic rules

Post by PoltoS »

@harre, please provide more info: what should we look at in this huge log? Please describe in more details what stopped working for you
harre
Posts: 95
Joined: 24 Nov 2020 02:22

Re: latest update broke automatic rules

Post by harre »

PoltoS wrote:
17 May 2023 04:45
@harre, please provide more info: what should we look at in this huge log? Please describe in more details what stopped working for you
I have attached my rules there are two, one to turn on the lights and one for turn off.

The time component is there to have the lights off between midnight and 05:30.

I know the logs are massive, but that's because I don't know what to look for. I was thinking if there's some more debugging I can enable to pinpoint this issue.

This rules have been working without any issues for like two years.
Attachments
Screenshot_20230517-081813.png
Screenshot_20230517-081813.png (220.23 KiB) Viewed 2102 times
Screenshot_20230517-081841.png
Screenshot_20230517-081841.png (218.04 KiB) Viewed 2102 times
Screenshot_20230517-081903.png
Screenshot_20230517-081903.png (230.94 KiB) Viewed 2102 times
harre
Posts: 95
Joined: 24 Nov 2020 02:22

Re: latest update broke automatic rules

Post by harre »

PoltoS wrote:
17 May 2023 04:45
@harre, please provide more info: what should we look at in this huge log? Please describe in more details what stopped working for you
Any news about this issue? Please advise if I can take more steps into debugging it
harre
Posts: 95
Joined: 24 Nov 2020 02:22

Re: latest update broke automatic rules

Post by harre »

The queue seems to be filling up quite a lot.

It's most the nonce report in the list
Attachments
Screenshot_20230520-233638.png
Screenshot_20230520-233638.png (273.45 KiB) Viewed 2020 times
Post Reply