Celsius to Fahrenheit change [SOLVED]

Discussions about Z-Way software and Z-Wave technology in general
Locked
Zway424
Posts: 36
Joined: 26 Aug 2015 04:40

Celsius to Fahrenheit change [SOLVED]

Post by Zway424 »

I'm a newbie and having difficulty changing a Aeon Labs multisensor from Celsius to Fahrenheit. I contacted Aeon Labs and they were very helpful by indicating that I need to change the value for "scale" from 0 to 1. They did not offer instruction on how to do this for Z-Way.

I am able to access the value for scale by entering the following URL into my web browser:

http://MY_IP_ADDRESS:8083/ZWaveAPI/Run/devices[4].instances[0].SensorMultilevel.data[1].scale.value

My browser returns:

0

However, I am not familiar with how to change the value from 0 to 1. Do I need to edit an XML file? If so, which one? or is there some other way that I can change API data? I've tried using

url 1: http://MY_IP_ADDRESS:8083/ZWaveAPI/Run/devices[4].instances[0].SensorMultilevel.data[1].scale.set(1)

However, I get error that reads:

TypeError: undefined is not a function

I understand the JSON file structure somewhat, however I don't follow how to change the value of an object for Z-way. I can read the full data tree in the JSON file by using the following URL:

url 2: http://MY_IP_ADDRESS:8083/ZWaveAPI/Data/

and I'm using a plugin from Google Chrome that parses the file to make it readable. Anyone that can please assist with how I can change the data that's found in either url 1 or url 2, would be greatly appreciated!


Thanks!
Last edited by Zway424 on 13 Sep 2015 04:52, edited 1 time in total.
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Celsius to Fahrenheit change

Post by pofs »

Though editing values in data holders is possible via JS, I strongly encourage you not to do so. Just changing scale value won't affect device in any way, and it will be overwritten back when the next packet from device arrives.

If you want to see Fahrenheit values in the UI, just edit Defaults.xml and set Fahrenheit parameter to 1 in command classes config.
Zway424
Posts: 36
Joined: 26 Aug 2015 04:40

Re: Celsius to Fahrenheit change

Post by Zway424 »

Thank you! That's exactly what I was looking for.
Locked