Code device sensorMultilevel problem!

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

Code device sensorMultilevel problem!

Post by ricargr » 12 Feb 2019 07:38

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: 6
Joined: 13 May 2014 22:47

Re: Code device sensorMultilevel problem!

Post by ricargr » 12 Feb 2019 15:42

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: 4717
Joined: 26 Jan 2011 19:36

Re: Code device sensorMultilevel problem!

Post by PoltoS » 14 Feb 2019 23:08

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

Post Reply