How to make schedule conditional?

Discussions about Z-Way software and Z-Wave technology in general
micky1500
Posts: 298
Joined: 07 Feb 2016 16:29
Location: England

Re: How to make schedule conditional?

Post by micky1500 »

dependencies.html doesn't work for me.
I get 'Reading device data...' and nothing else. in Chrome and Edge.
The other tools work perfectly :)
Will be using your tool to clean my config.json file.
I suspect after an unexpected power outage, I have corruption. Route Map has stopped working again.
Your tool is showing more devices that don't exist than are actually real..
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 »

PoltoS wrote:
17 Feb 2019 20:13
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)
I tested this function again with my own config and also with the default config.json. Both are working.
There must be a difference in your config in profiles paragraph.
Command: profile.hide_single_device_events.forEach(function(device) {
Must be an (empty) array.
Last edited by piet66 on 18 Feb 2019 12:58, edited 1 time 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
piet66
Posts: 266
Joined: 04 Feb 2017 17:00

Re: How to make schedule conditional?

Post by piet66 »

PoltoS wrote:
17 Feb 2019 20:07
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)
To get more info about the problem you can change in file dependencies.html the string 'js/dependencies.min.js' into 'js/dependencies.js' and reload the function.
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
piet66
Posts: 266
Joined: 04 Feb 2017 17:00

Re: How to make schedule conditional?

Post by piet66 »

micky1500 wrote:
17 Feb 2019 22:54
Will be using your tool to clean my config.json file.
I suspect after an unexpected power outage, I have corruption. Route Map has stopped working again.
Your tool is showing more devices that don't exist than are actually real..
How do you want to do that? My tools don't change anything in the system. I think it's not really necessary. I don't think that removing old devices will help. There's no info about routing in config.json. Don't know where it is stored. You can display some info about device neighbours with zwave_configuration.html. Look at devices/<number>/data/neighbours.
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
piet66
Posts: 266
Joined: 04 Feb 2017 17:00

Re: How to make schedule conditional?

Post by piet66 »

micky1500 wrote:
17 Feb 2019 22:54
dependencies.html doesn't work for me.
I get 'Reading device data...' and nothing else. in Chrome and Edge.
If you want me to look after this problem, I need your device and instance data.
In this case get the data by
http://<your ip>:8083/ZAutomation/api/v1/devices
and
http://<your ip>:8083/ZAutomation/api/v1/instances,
store each in a file and send it.

Which language do you use?
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