Logic Machine Forum
Data conversion (zwave app related) - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Hardware (https://forum.logicmachine.net/forumdisplay.php?fid=12)
+--- Thread: Data conversion (zwave app related) (/showthread.php?tid=434)



Data conversion (zwave app related) - gjniewenhuijse - 21.10.2016

In my zwave app i connect a groupaddress to write and read the setpoint temp (4 bytes).

But my visualisation software (domovea) needs a 2 byte 9.001 datatype.

How to convert this data on a gentle way?

I have
4/5/1 setpoint temp to_from zwave (4 byte)
4/5/2 setpoint temp to_from domovea (2 byte)

I can make two event scripts:
on 4/5/1: grp.write('4/5/2', event.getvalue())

on 4/5/2: grp.write('4/5/1', event.getvalue())

But then i get a continues loop of writes.

How to make it possible that i can set my setpoint in domovea and in the termostat (over zwave)?


RE: Data conversion (zwave app related) - admin - 22.10.2016

Have a look at event.sender variable, it should be different when event comes from a script or an app.


RE: Data conversion (zwave app related) - ODES - 09.01.2017

I agree with admin you should look at events and sender. It makes a huge difference from where the comes from. events coming from script are different from those coming from app. It is also necessary to check whether data provided is accurate otherwise the output will not be as desired. Make sure you use latest versions of app or software. Hope it was helpful.