Search found 4 matches
- 07 Nov 2015 00:50
- Forum: Discussions in English
- Topic: CodeDevice - Status update - SOLVED
- Replies: 3
- Views: 14516
Re: CodeDevice - Status update
After another evening with some reading about "expressions" and "statements" and a look at the code of the CodeDevice-Module here is the solution: Code to get value: zway.devices[3].SwitchBinary.data.level.value == true ? "on" : "off"; Effekt: The codedevice g...
- 06 Nov 2015 00:15
- Forum: Discussions in English
- Topic: CodeDevice - Status update - SOLVED
- Replies: 3
- Views: 14516
Re: CodeDevice - Status update
... some hours later ... One step more ... Don't know why, but deleting the CodeDevice and starting from beginning, let's me define an update-time and this code in "Code to get value": zway.devices[3].SwitchBinary.data.level.value has a result in z-way-server.log: Notification: device-info...
- 05 Nov 2015 20:51
- Forum: Discussions in English
- Topic: CodeDevice - Status update - SOLVED
- Replies: 3
- Views: 14516
Re: CodeDevice - Status update
@home again ... Did some more test to understand the CodeDevice ... got only more questions ... This is my CodeDevice (BinarySwitch): on: setTimeout(function(){zway.devices[3].Basic.Set(255)},Math.floor(((Math.random()*10)+1)*1000*60)) off: setTimeout(function(){zway.devices[3].Basic.Set(0)},Math.fl...
- 05 Nov 2015 15:44
- Forum: Discussions in English
- Topic: CodeDevice - Status update - SOLVED
- Replies: 3
- Views: 14516
CodeDevice - Status update - SOLVED
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 CodeDe...