We have moved at community.getvera.com

Author Topic: ST814 Humidity calibration  (Read 12660 times)

Offline Don Diego

  • Hero Member
  • *****
  • Posts: 534
  • Karma: +300/-3
Re: ST814 Humidity calibration
« Reply #15 on: June 16, 2014, 02:50:54 pm »
Also, is the device id (i.e., diDT) that of the parent or child of the humidity sensor (ST814)?
If you want the number you are writing to appear on the child device, then it is the id of that device.  Writing directly to the ST814 would simply (temporarily) overwrite that device's reading, until it was refreshed with a real measurement.

Hi Rex--

  I'm not being very clear..

  The ST814 generates 3 ACTUAL devices, the parent, and two children (temp and humidity).

  Should I get the humidity from the ACTUAL parent device ID or the ACTUAL humidity child ID? At this point nothing is appearing on the GUI. Though perhaps I was trying the get the right variable from the wrong device..

  Thanks for your help.

    Don



 
Vera 3 (@1.5.622) (3); Vera Plus (2);
Trane/Schlage TStats (1); Schlage Deadbolt (2); Kwikset Lock (3);  GE 45602 Dimmer (14); GE 45603 Dimmer (17); HSM-100 (16); Everspring Siren (8), Everspring Temp/Humidity (4); HSM 200 (1)

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: ST814 Humidity calibration
« Reply #16 on: June 16, 2014, 03:15:34 pm »
Just to try once more and set you straight:
  • you can read the humidity from either the parent or the child device.  It's actually written to the parent first.
  • I think that both Rex and I suggested the wrong syntax for luup.variable_set, confusing it with luup.call_action
The correct syntax to SET for HUMIDITY is:
Code: [Select]
luup.variable_set("urn:upnp-org:serviceId:HumiditySensor1","CurrentLevel",value,dIDD)

Sorry for the confusion.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline Don Diego

  • Hero Member
  • *****
  • Posts: 534
  • Karma: +300/-3
Re: ST814 Humidity calibration
« Reply #17 on: June 16, 2014, 06:34:07 pm »
Just to try once more and set you straight:
  • you can read the humidity from either the parent or the child device.  It's actually written to the parent first.
  • I think that both Rex and I suggested the wrong syntax for luup.variable_set, confusing it with luup.call_action
The correct syntax to SET for HUMIDITY is:
Code: [Select]
luup.variable_set("urn:upnp-org:serviceId:HumiditySensor1","CurrentLevel",value,dIDD)

Sorry for the confusion.


Hi--

  Thanks for your help.

  This still isn't working. My LUUP code is as follows from a scene that is updating every 5 minutes:

local dIDT = 202      -- Device ID of actual ST814 device
local dIDD = 273      -- Device ID of dummy device
local adjust = -20    -- Amount to adjust Humidity

local curHumid = tonumber((luup.variable_get("urn:upnporg:serviceId:HumiditySensor1","CurrentHumidity",dIDT)))
local newHumid = curHumid + adjust
luup.variable_set("urn:upnp-org:serviceId:HumiditySensor1","CurrentLevel",value,dIDD)

Thanks

   Don

NOTE: Is "value" variable correct in the last line? Should it be "newHumid?"

Vera 3 (@1.5.622) (3); Vera Plus (2);
Trane/Schlage TStats (1); Schlage Deadbolt (2); Kwikset Lock (3);  GE 45602 Dimmer (14); GE 45603 Dimmer (17); HSM-100 (16); Everspring Siren (8), Everspring Temp/Humidity (4); HSM 200 (1)

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: ST814 Humidity calibration
« Reply #18 on: June 17, 2014, 02:50:38 am »
Quote
[NOTE: Is "value" variable correct in the last line? Should it be "newHumid?"

Yes, you're correct, it should be newHumid.  I only used value in the example because the previous reference to temperature was wrong.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: ST814 Humidity calibration
« Reply #19 on: June 17, 2014, 02:54:07 am »
Also, you have "upnporg" instead of "upnp-org" in part of a string.
You don't need the call tonumber either (it will coerce automatically.)
« Last Edit: June 17, 2014, 02:55:47 am by akbooer »
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline Don Diego

  • Hero Member
  • *****
  • Posts: 534
  • Karma: +300/-3
Re: ST814 Humidity calibration
« Reply #20 on: June 17, 2014, 04:53:06 am »
Also, you have "upnporg" instead of "upnp-org" in part of a string.
You don't need the call tonumber either (it will coerce automatically.)

Hi akbooer

  Thanks for your help.

     Don
Vera 3 (@1.5.622) (3); Vera Plus (2);
Trane/Schlage TStats (1); Schlage Deadbolt (2); Kwikset Lock (3);  GE 45602 Dimmer (14); GE 45603 Dimmer (17); HSM-100 (16); Everspring Siren (8), Everspring Temp/Humidity (4); HSM 200 (1)

Offline Don Diego

  • Hero Member
  • *****
  • Posts: 534
  • Karma: +300/-3
Re: ST814 Humidity calibration
« Reply #21 on: June 24, 2014, 01:26:12 pm »
Quote
[NOTE: Is "value" variable correct in the last line? Should it be "newHumid?"

Yes, you're correct, it should be newHumid.  I only used value in the example because the previous reference to temperature was wrong.

Hi akbooer

  I'm still having problems getting the calibrated hunidity to appear in the UI *see attached). Luup scene/code run every 15 minutes.

local dIDT = 202      -- Device ID of actual ST814 device
local dIDD = 273      -- Device ID of dummy device
local adjust = -20    -- Amount to adjust Humidity

local curHumid = tonumber((luup.variable_get("urn:upnp-org:serviceId:HumiditySensor1","CurrentHumidity",dIDT)))
local newHumid = curHumid + adjust
luup.variable_set("urn:upnp-org:serviceId:HumiditySensor1","CurrentLevel",value,dIDD)

See see attachment of Calibrated Humidity sensor (which is blank)

Thanks in advance for any help provided.

    Don

« Last Edit: June 24, 2014, 01:34:35 pm by Don Diego »
Vera 3 (@1.5.622) (3); Vera Plus (2);
Trane/Schlage TStats (1); Schlage Deadbolt (2); Kwikset Lock (3);  GE 45602 Dimmer (14); GE 45603 Dimmer (17); HSM-100 (16); Everspring Siren (8), Everspring Temp/Humidity (4); HSM 200 (1)

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: ST814 Humidity calibration
« Reply #22 on: June 24, 2014, 05:27:57 pm »
I think that "CurrentHumidity" should be "CurrentLevel" ?

... and "value" is still wrong.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline Don Diego

  • Hero Member
  • *****
  • Posts: 534
  • Karma: +300/-3
Re: ST814 Humidity calibration
« Reply #23 on: June 24, 2014, 06:17:12 pm »
I think that "CurrentHumidity" should be "CurrentLevel" ?

... and "value" is still wrong.

Akbooer

  Thank you

    Don
Vera 3 (@1.5.622) (3); Vera Plus (2);
Trane/Schlage TStats (1); Schlage Deadbolt (2); Kwikset Lock (3);  GE 45602 Dimmer (14); GE 45603 Dimmer (17); HSM-100 (16); Everspring Siren (8), Everspring Temp/Humidity (4); HSM 200 (1)

Offline Don Diego

  • Hero Member
  • *****
  • Posts: 534
  • Karma: +300/-3
Re: ST814 Humidity calibration
« Reply #24 on: June 25, 2014, 06:23:03 am »
I think that "CurrentHumidity" should be "CurrentLevel" ?

... and "value" is still wrong.

Hi akbooer

  Sorry but I still can't get this working.

  Using the lua test page I've learned that it doesn't like the following line of code (in red).

local dIDT = 202      -- Device ID of actual ST814 device
local dIDD = 273      -- Device ID of dummy device
local adjust = -20    -- Amount to adjust Humidity
local SES_SID = "urn:upnp-org:serviceId:HumiditySensor1"
local curHumid = tonumber((luup.variable_get(SES_SID,"CurrentLevel",dIDT)))
local newHumid = curHumid + adjust
luup.variable_set("urn:upnp-org:serviceId:HumiditySensor1","CurrentLevel",newHumid,dIDD)

It works fine without it (i.e., .. local newHumid = 10  or even local newHumid=curHumid) But if any calculation done it doesn't work.

Any ideas? Sorry for being dense.

Don
« Last Edit: June 25, 2014, 07:14:36 am by Don Diego »
Vera 3 (@1.5.622) (3); Vera Plus (2);
Trane/Schlage TStats (1); Schlage Deadbolt (2); Kwikset Lock (3);  GE 45602 Dimmer (14); GE 45603 Dimmer (17); HSM-100 (16); Everspring Siren (8), Everspring Temp/Humidity (4); HSM 200 (1)

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: ST814 Humidity calibration
« Reply #25 on: June 25, 2014, 01:06:25 pm »
What error message do you see in the log?
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: ST814 Humidity calibration
« Reply #26 on: June 25, 2014, 04:55:36 pm »
In fact, you call to luup.variable_get is failing because you have the wrong serviceId.

Try this:

Code: [Select]
local dIDT = 202      -- Device ID of actual ST814 device
local dIDD = 273      -- Device ID of dummy device
local adjust = -20    -- Amount to adjust Humidity
local SES_SID = "urn:micasaverde-com:serviceId:HumiditySensor1"

local curHumid = luup.variable_get(SES_SID,"CurrentLevel",dIDT)
local newHumid = curHumid + adjust
luup.variable_set(SES_SID,"CurrentLevel",newHumid,dIDD)

It's the little details that count!
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline Don Diego

  • Hero Member
  • *****
  • Posts: 534
  • Karma: +300/-3
Re: ST814 Humidity calibration
« Reply #27 on: June 26, 2014, 05:32:48 am »
What error message do you see in the log?

Hi akbooer

  Thanks for your help. I tried accessing the logs and I overwhelmed with the amount of data. Even trying to grep the logs I'm not sure what to look for. I was trying to filter by node #.

  Don
« Last Edit: June 26, 2014, 05:45:21 am by Don Diego »
Vera 3 (@1.5.622) (3); Vera Plus (2);
Trane/Schlage TStats (1); Schlage Deadbolt (2); Kwikset Lock (3);  GE 45602 Dimmer (14); GE 45603 Dimmer (17); HSM-100 (16); Everspring Siren (8), Everspring Temp/Humidity (4); HSM 200 (1)

Offline Don Diego

  • Hero Member
  • *****
  • Posts: 534
  • Karma: +300/-3
Re: ST814 Humidity calibration
« Reply #28 on: June 26, 2014, 06:10:50 am »
In fact, you call to luup.variable_get is failing because you have the wrong serviceId.

Try this:

Code: [Select]
local dIDT = 202      -- Device ID of actual ST814 device
local dIDD = 273      -- Device ID of dummy device
local adjust = -20    -- Amount to adjust Humidity
local SES_SID = "urn:micasaverde-com:serviceId:HumiditySensor1"

local curHumid = luup.variable_get(SES_SID,"CurrentLevel",dIDT)
local newHumid = curHumid + adjust
luup.variable_set(SES_SID,"CurrentLevel",newHumid,dIDD)

It's the little details that count!

Hi akbooer-

  Thanks for your help. That works.. WOW!! I'm trying to trigger dehumidifiers from the ST814 and without an accurate humidity reading it makes no sense.

    Don
Vera 3 (@1.5.622) (3); Vera Plus (2);
Trane/Schlage TStats (1); Schlage Deadbolt (2); Kwikset Lock (3);  GE 45602 Dimmer (14); GE 45603 Dimmer (17); HSM-100 (16); Everspring Siren (8), Everspring Temp/Humidity (4); HSM 200 (1)

Offline Colorado-Al

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: ST814 Humidity calibration
« Reply #29 on: September 18, 2015, 05:38:37 pm »
I just installed an Everspring ST814 and found the Humidity to be about 8 points high compared to my 2 non-zwave hygrometers.
I used the approach in the above thread to create a dummy "sensor" and the above code, substituting in the device IDs of my actual sensor and dummy sensor and an offset value of -8. Working great!
Thanks!!!
« Last Edit: September 18, 2015, 05:41:13 pm by Colorado-Al »