CodeDevice - Status update - SOLVED
Posted: 05 Nov 2015 15:44
Hey, there!
I would say I'm new to zwave and razberry ... and somewhat overwhelmed by the possibillities generated by this automation-toolkit and so I'm looking for some guidance.
I have some minor experience in programming with nodejs (and so partially with JS).
I have managed to generated a CodeDevice based on a DÜWI-Wallplug which randomly delays switch-on and switch-off +-(1 to 10) Minutes.
Now I want this CodeDevice to update his status ... yeah I know it is not essentiall because the "real" düwi-device is updating his status ... BUT I want to know and learn ...
The düwi delivers his status as "true"(on) or "false"(off).
How does the function have to look for the status updating? Is only the returncode "on" / "off" needed ...
Where can I look for debug info? Maybe my "script" fails ... can I insert "debug lines" like console.log("reached point 1") ... where is it printed? ... is it the z-way-server.log? ... sorry didn't test it yesterday night ... it was too late.
I would say I'm new to zwave and razberry ... and somewhat overwhelmed by the possibillities generated by this automation-toolkit and so I'm looking for some guidance.
I have some minor experience in programming with nodejs (and so partially with JS).
I have managed to generated a CodeDevice based on a DÜWI-Wallplug which randomly delays switch-on and switch-off +-(1 to 10) Minutes.
Now I want this CodeDevice to update his status ... yeah I know it is not essentiall because the "real" düwi-device is updating his status ... BUT I want to know and learn ...
The düwi delivers his status as "true"(on) or "false"(off).
How does the function have to look for the status updating? Is only the returncode "on" / "off" needed ...
Where can I look for debug info? Maybe my "script" fails ... can I insert "debug lines" like console.log("reached point 1") ... where is it printed? ... is it the z-way-server.log? ... sorry didn't test it yesterday night ... it was too late.