Code device sensorMultilevel problem!

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
ricargr
Posts: 15
Joined: 13 May 2014 22:47

Code device sensorMultilevel problem!

Post by ricargr »

Hi,

I have a daikin AC and it have external and internal temperature sensor. I have every value (number) updated to a file with a simple bash script.

What i want to do is create two virtual temperature sensorMultilevel in zway (ver 2.3.6), for that I tried with the app “Code Device” but I am not able to get the value. I am trying with: system(“cat /home/pi/tempvalue”)

Please could you help me? I see my knowlegde is low.

Thank you very much
ricargr
Posts: 15
Joined: 13 May 2014 22:47

Re: Code device sensorMultilevel problem!

Post by ricargr »

Please any help?

I have more information; when reading with cat the plain file with the number 27, in the virtual sensor created shows [0,"27\n"] instead of 27.
Thank you very much
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Code device sensorMultilevel problem!

Post by PoltoS »

parseInt(system(“cat /home/pi/tempvalue”)[1], 10)
Post Reply