How to make schedule conditional?

Discussions about Z-Way software and Z-Wave technology in general
msambol
Posts: 8
Joined: 09 Oct 2018 12:48

How to make schedule conditional?

Post by msambol »

I would like to have a virtual button which I can use to indicate when I am travelling away from home, and use it to pause my scheduled events like turning on lights and opening window shutters. I thought I could use the dummy device for this, but I can not find a way to make scheduled events conditional, or to pause the schedules.

Can anyone recommend a way to do this?
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: How to make schedule conditional?

Post by PoltoS »

Your Schedule can run a scene that can be a trigger for logical rule that depends on the Dummy device.

A bit overcomplicated, but works ;)
msambol
Posts: 8
Joined: 09 Oct 2018 12:48

Re: How to make schedule conditional?

Post by msambol »

Thank you for responding. Yes that is over complicated, but I'll take what I can get. I didn't realize a rule can trigger on a scene, will try.

Stuff like this will unfortunately keep non technical people away from this platform.
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: How to make schedule conditional?

Post by PoltoS »

Show me where you can easily do such a specific things.

Z-Way style is to allow it complicated and if the request becomes popular, make an app for that
tomshuette
Posts: 73
Joined: 29 Nov 2016 11:26

Re: How to make schedule conditional?

Post by tomshuette »

Year, more and more Apps :)

But we lost the overview

We Need a Tool to show the interconnection and Logic over all
piet66
Posts: 266
Joined: 04 Feb 2017 17:00

Re: How to make schedule conditional?

Post by piet66 »

Here a tool which may help a little bit.
You can display the interconnections as graphics, but not the rules :cry: .

Extract the contents of the zip file to z-way-server/htdocs/smarthome/user/.
Call it, logged in as administrator, with http://<your ip>:8083/smarthome/user/MxInfo and click onto dependencies.html.

Attachment removed, will upload new version.
Last edited by piet66 on 03 Mar 2019 11:28, edited 2 times in total.
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 10 (buster, 32bit)
RaZberry by Z-Wave.Me ZW0700 7.20.00 07.38/1766938484 1025/257
Z-Way version v3.2.3 from 2022-04-06 04:56:23 +0300
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: How to make schedule conditional?

Post by PoltoS »

Wow! Nice tool for inspection of the API content.

But I get few errors:
js/dependencies.min.js:1 Uncaught TypeError: Cannot read property 'indexOf' of undefined
at js/dependencies.min.js:1
at Array.forEach (<anonymous>)
at Object.success (js/dependencies.min.js:1)
at u (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at k (jquery.min.js:2)
at XMLHttpRequest.<anonymous> (jquery.min.js:2)

:1 Uncaught TypeError: Cannot read property 'getAttribute' of undefined
at http://192.168.0.32:8083/smarthome/user/MxInfo/:1:249
at Array.sort (native)
at srt (http://192.168.0.32:8083/smarthome/user/MxInfo/:1:147)
at window.onload (http://192.168.0.32:8083/smarthome/user/MxInfo/:1:704)

Also not sure why do you need this: http://192.168.0.32:8083/smarthome/user ... asses.html
Just to inspect the xml in more comfort?

And ZWave_cmd_classes.xml and cmd_classes.json are already in the UI source tree. You are better to use them from Z-Way not to bring 2 Mb more (this is critical on small platforms)

If people will like it, may be it is worth to include in standard package with a contrinution notice? What do you think? You can make it as PR.
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: How to make schedule conditional?

Post by PoltoS »

And one more:
configjson.js:342 Uncaught TypeError: Cannot read property 'forEach' of undefined
at configjson.js:342
at Array.forEach (<anonymous>)
at buildDevArrays (configjson.js:338)
at Object.success (configjson.js:267)
at u (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at k (jquery.min.js:2)
at XMLHttpRequest.<anonymous> (jquery.min.js:2)
micky1500
Posts: 298
Joined: 07 Feb 2016 16:29
Location: England

Re: How to make schedule conditional?

Post by micky1500 »

A Wow from me too.
I'm finding out what is hidden away using this.
I don't see any Dependencies, but the other tools are great.
I don't get any errors. On 2.3.8 with Jessie Build.

Thanks piet66
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.1, Raz 7 Pro, Serial API Version: 07.38
piet66
Posts: 266
Joined: 04 Feb 2017 17:00

Re: How to make schedule conditional?

Post by piet66 »

Hi PoltoS,
I'm getting none of your errors. Running on Raspi Jessi with Z-Way 2.3.7, browser is Firefox. Must be anything different on your machine.

You can easily delete those functions you don't want to use to save space. I did it for me and for me they were useful.

You can include it in standard package, if it's working. But not all functions are useful for all people. And I don't know how to make it as PR.

Hi micky,
attached a screenshot of a dependencies graph.
Attachments
Bildschirmfoto vom 2019-02-17 20-26-29.png
Bildschirmfoto vom 2019-02-17 20-26-29.png (163.54 KiB) Viewed 6426 times
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 10 (buster, 32bit)
RaZberry by Z-Wave.Me ZW0700 7.20.00 07.38/1766938484 1025/257
Z-Way version v3.2.3 from 2022-04-06 04:56:23 +0300
Post Reply