Page 1 of 1

Retrieve setpoint and temp from evohome

Posted: Monday 02 April 2018 12:38
by JuanUil
Hi guys,

I have been searching the forum over and over but I can not find an answer.
Since yesterday I have an EvoHome system installed with four TRV's.
I want to retrieve the setpoint and temperature from each device.
When I try

Code: Select all

setpoint=otherdevices_svalues['Kerkstraat: Hal']
print(setpoint)
I get

Code: Select all

2018-04-02 12:37:28.398 LUA: 19.0;19.0;Auto;2018-04-02T19:30:00Z
can anybody help me to retrieve the different values.

thanx in advance
Jan

Re: Retrieve setpoint and temp from evohome

Posted: Monday 02 April 2018 14:09
by waaren
Hi Jan,

would it be an option for you to use dzVents for this ?

Re: Retrieve setpoint and temp from evohome

Posted: Monday 02 April 2018 14:43
by JuanUil
Hi Waaren,

I'm not familiar with DzEvents. I prefer LUA.
But is you have a way to retrieve with DzEvents I could try to translate to LUA.

Thnx

Jan

Re: Retrieve setpoint and temp from evohome

Posted: Monday 02 April 2018 14:52
by mrf68
The WIKI shows an example of retrieving wheaterstation data:

sWeatherTemp, sWeatherHumidity, sWeatherUV, sWeatherPressure, sWeatherUV2 = otherdevices_svalues['Weerstation']:match("([^;]+);([^;]+);([^;]+);([^;]+);([^;]+)")

You define several variables from an output that holds multiple values. I think you could use that.

Martin

Re: Retrieve setpoint and temp from evohome

Posted: Monday 02 April 2018 15:13
by JuanUil
Hi Martin,

thnx for the tip!!

I programmed:

Code: Select all

sTemp, sSetpoint = otherdevices_svalues['Kerkstraat: Hal']:match("([^;]+);([^;]+)")

print(sSetpoint.."  "..sTemp)
and the result:

Code: Select all

 2018-04-02 15:12:16.531 LUA: 17.5 18.5 
thanx for the help!!

Jan