Since ver 4x it doesn't work anymore !
Loglevel is set to '0'
debugPrint has been tried also.
Restarted z-way, Rebooted Pi, Power Cycled. !!
This used to work.
console.log("Alexa M.B. Room=" + vDev.get("location") + " SwitchBinary " + vDev.get("metrics:title"));
Am I missing something ?
Programming JS Console.log doesn't work
Programming JS Console.log doesn't work
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.4, Raz 7 Pro, Serial API Version: 07.42
Re: Programming JS Console.log doesn't work
It should work. Do you see any lines in the log with [core]? If so, they are all printed with console.log (or debugPrint, which is same).
Maybe in your case one of the two values is null and nothing is printed then (since null + "anything" = null)?
Maybe in your case one of the two values is null and nothing is printed then (since null + "anything" = null)?
Re: Programming JS Console.log doesn't work
Yes I see 22,000 [core] events. in 48 hours.
I changed it to console.log("Alexa Check"); , so no null's
It still doesn't work, That's when I scan for new devices.
I also checked the Daylight App, It's supposed to log the event times, I have not altered that one, but it still doesn't log the console.log entries.
It all used to work before 4.0.1, not sure if 4.0.0 worked. Definitely worked before.
I changed it to console.log("Alexa Check"); , so no null's
It still doesn't work, That's when I scan for new devices.
I also checked the Daylight App, It's supposed to log the event times, I have not altered that one, but it still doesn't log the console.log entries.
It all used to work before 4.0.1, not sure if 4.0.0 worked. Definitely worked before.
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.4, Raz 7 Pro, Serial API Version: 07.42
Re: Programming JS Console.log doesn't work
Are you sure your log-level in config.xml is 0?
Re: Programming JS Console.log doesn't work
Are you sure your log-level in config.xml is 0?
Re: Programming JS Console.log doesn't work
Right now with 4.0.2 timestamped 28/04/2020
<log-level>0</log-level>
Same as before 4.0.1 with timestamp of years ago.
I just wondered if it was only me with the issue.
I have a working system, I will do a total rebuild sometime soon.
Thanks for your advice.
<log-level>0</log-level>
Same as before 4.0.1 with timestamp of years ago.
I just wondered if it was only me with the issue.
I have a working system, I will do a total rebuild sometime soon.
Thanks for your advice.
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.4, Raz 7 Pro, Serial API Version: 07.42
Re: Programming JS Console.log doesn't work
It might be due to full SD card or logrotate log rotation