setting evohome room temp setpoint depending on an dummy thermostat value

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Lebo2d9
Posts: 139
Joined: Tuesday 06 September 2016 20:39
Target OS: Raspberry Pi / ODroid
Domoticz version: L stab
Location: Belgium
Contact:

setting evohome room temp setpoint depending on an dummy thermostat value

Post by Lebo2d9 »

Hi,

I have a honywell evohome system and i set the room temperature with a virtual switch.
on_action http://127.0.0.1:8080/json.htm?type=set ... &used=true
off_action http://127.0.0.1:8080/json.htm?type=set ... &used=true
This is working great.
Now I want that the setpoint is controlled with a virtual thermostat(idx=55) but i don't know how to refer to the idx value.

Can someone help me?

Kind regards

Koen
Domoicz on RPI3 (wifi) directly connected 3x ds18b20 for CV temp, Evohome (9 zone), 1 remote 220V switch based on ESP-12. RFXtrx433E, 16x AMST-606, 5 Somfy RTS motors
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: RE: setting evohome room temp setpoint depending on an dummy thermostat value

Post by stlaha2007 »

Lebo2d9 wrote:Hi,

I have a honywell evohome system and i set the room temperature with a virtual switch.
on_action http://127.0.0.1:8080/json.htm?type=set ... &used=true
off_action http://127.0.0.1:8080/json.htm?type=set ... &used=true
This is working great.
Now I want that the setpoint is controlled with a virtual thermostat(idx=55) but i don't know how to refer to the idx value.

Can someone help me?

Kind regards

Koen
Depends on what you want....

A setpoint is the temperature you want the room or zone to be.
The evohome has switches to change to different comforts like normal eco etc.

You can feed the temperature from a temp-sensor if you like, but thats not the setpoint you want. As the temp drops, your setpoint also ;-)

What's the bigger picture your trying to build???

Grtz Stephan
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: setting evohome room temp setpoint depending on an dummy thermostat value

Post by stlaha2007 »

Reread your post.... Sorry....

You need the GET the value from the Thermostat first, within a script, and that needs to be fed into the switch....

Like the following script i'm getting the setpoint from the thermostat and livingroom temperature from the real thermostat, and feed this into the combined sensor temp-setpoint (which is a virtual one created from the EvoHome (which i don't have).

Code: Select all

pi@domoticz:~/scripts$ cat update_heat_zone_living.sh
#!/bin/bash
#### Description of get_watermeter.sh
#### Purpose:           To read and write Current Living Temp and Thermostat Setpoint from/into Domoticz
#### Created:           2016-11-05
#### Modified:          2016-11-07
#### Owner:             STLAHA2007
#### Functionalities:   Read current temp and setpoint from Domoticz  {curl/json/grep/awk/sed}
####                    Write into combined Zone sensor to Domoticz  {curl/json/grep/awk/sed}
#### This script needs {Unix-style} execute rights (755 - rwx r-x r-x)
#### Declare temporary variables for read/calculate/write
declare    CurrentLiving_Temp
declare    CurrentLiving_SetPoint
declare -i CurrentLiving_Temp_IDX
declare -i CurrentLiving_SetPoint_IDX
declare    HeatZoneLiving_Value
declare -i HeatZoneLiving_IDX

declare DomoURL
DomoURL=$(echo "http://domoticz.internet.address:port")

CurrentLiving_Temp_IDX=468    ### Temperature Sensor (Temperature Tab)
CurrentLiving_SetPoint_IDX=467   ### SetPoint Device (Utility Tab)
HeatZoneLiving_IDX=401      ### Your Zone Device (Temperature Tab) or modify url below the rebuild for the switch!!!!

#### read and calculate current temp and setpoint
CurrentLiving_Temp=$(echo $(curl -s "$(echo $DomoURL)/json.htm?type=devices&rid=$(echo $CurrentLiving_Temp_IDX)" | grep "Data\"" | awk '{print $3}' | sed 's/\"//g' | sed 's/\,//g'| sed 's/\.000//g' ))
CurrentLiving_SetPoint=$(echo $(curl -s "$(echo $DomoURL)/json.htm?type=devices&rid=$(echo $CurrentLiving_SetPoint_IDX)" | grep "Data\"" | awk '{print $3}' | sed 's/\"//g' | sed 's/\,//g'| sed 's/\.000//g' ))

HeatZoneLiving_Value=$(echo $(curl -s "$(echo $DomoURL)/json.htm?type=devices&rid=$(echo $HeatZoneLiving_IDX)" | grep "Data\"" ))

echo $CurrentLiving_Temp
echo $CurrentLiving_SetPoint
echo $HeatZoneLiving_Value

echo "HeatzoneLiving_Value needs to look like....:"
HeatZoneLiving_Value=$(echo $CurrentLiving_Temp";"$CurrentLiving_SetPoint";0;")

echo $HeatZoneLiving_Value
##echo "Electra: "$(echo $M_E_Curr)" kWh    Gas: "$(echo $M_G_Curr)" m3     Water: "$(echo $M_W_Curr)" m3"
curl -s "$(echo $DomoURL)/json.htm?type=command&param=udevice&idx=$(echo $HeatZoneLiving_IDX)&nvalue=0&svalue=$(echo $HeatZoneLiving_Value)"
This has to be run on the commandline or cronjob... But is also implementable in the on/off scriptboxes....

Hope this solves your question better..


grtz Stephan

Sent from my K00C using Tapatalk
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest