stefan-kaestle / openhab2-addons

Add-ons for openHAB 2.x
Eclipse Public License 2.0
16 stars 1 forks source link

Set Thermostat Value #53

Closed kreack closed 4 years ago

kreack commented 4 years ago

Hi Guys,

some question to be a sure, that my settings are right (or wrong) :-):

BSH Thermostate Thing:

//Heizregler
    Thing thermostat Thermostat_W       "Heizkörper Wohnzimmer"           [ id="hdm:HomeMaticIP:3014F711A0000056D85895E8" ]
    Thing climate-control Climate_W     "Temperaturregelung Wohnzimmer"   [ id="roomClimateControl_hz_1" ]

BSH Thermostate Items:

//Heizregler
Number      Thermostat_W_Ist       "Ist Termperatur Wohnzimmer"     <temperature>      (Wohnzimmer)             {channel="boschshc:thermostat:1:Thermostat_W:temperature"}
Number      Thermostat_W_Soll      "Soll Temperatur Wohnzimmer"     <radiator>         (Wohnzimmer)             {channel="boschshc:thermostat:1:Thermostat_W:valve-tappet-position"}
Number      Climate_W_Ist          "Ist Termperatur Wohnzimmer"     <temperature>      (Wohnzimmer)             {channel="boschshc:climate-control:1:Climate_W:temperature"}
Number      Climate_W_Soll         "Soll Temperatur Wohnzimmer"     <radiator>         (Wohnzimmer)             {channel="boschshc:climate-control:1:Climate_W:setpoint-temperature"}

BSH Thermostate Rules:

rule "Heizungsregelung Wohnzimmer Temperaturabhängig"
when
    Item Heizugsregelung_rolle changed or 
    Item Sommerpause changed or 
    Item Abwesenheit changed or 
    Item Contact_W changed or 
    Item W_Temperature changed or
    Item Climate_W_Soll changed or
    Time cron "0 0 6,10,14,23 ? * * *" 
then
//logInfo("Bedingungen für die Rolle werden überprüft")
        // Abwesenheitsstatus ist deaktiviert, Sommerpause für Heizungssteuerung ist deaktiviert, Heizungsregelungsrolle ist aktiviert, Balkontür im Wohnzimmer ist zu
    if (Heizugsregelung_rolle.state == ON && Sommerpause.state == OFF && Abwesenheit.state == OFF && Contact_W.state == CLOSED) {
        if ((day <= 7) && (((hour >= 6) && (hour <= 14)) || ((hour <=14) && (hour <= 23)))) {
            **Climate_W_Soll.sendCommand("21.5")**
        }
        else {
            **Climate_W_Soll.sendCommand("17")**
        }
    }
    else {
        **Climate_W_Soll.sendCommand("5")**
    }
end

do I manage right the temperature Value, or I need to add some additional BSH Items (Thermostat_W_Soll) to set and hold the right value at my thermostat? Sorry for beginner question :-) Thanks in advance

armin-gh commented 4 years ago

Hi Climate_W_Soll is the right item to set the intended temperature Thermostat_W_Soll ist not a temperature value, it is the position of the valve (0-100, 0 is closed, 100 is fully open) and this is read only as far as I know

Not sure about the rule, so far I let the controller do that job. "Heizugsregelung_rolle" (typo here :-) ) contains if the thermostat is in automatic or manual mode?

Armin

coeing commented 4 years ago

Thanks @armin-gh for the explanation, your info is fully correct :) We recently added an overview over the supported channels of each thing to the README.md of the bundle: https://github.com/stefan-kaestle/openhab2-addons/blob/bosch-shc-3.0/bundles/org.openhab.binding.boschshc/README.md

If you find descriptions that should be extended/changed/added to be better understandable, feel free to tell us by opening an issue about it!

armin-gh commented 4 years ago

Hi, @coeing if you want to you can add samples from my configuration with two thermostats, a twinguard and the window contact to the samples. Covers a few things not yet included in the Readme, all available channels for each item linked to items

They belong all to the same room in the Controller configuration and thus only have one climate control. The items belong to groups to store data in the influxdb and visualization in Grafana

Things

  Thing window-contact  balkontuer       "Balkontuer"            [ id="hdm:HomeMaticIP:3014F711A000009A185AB854" ]
  Thing thermostat      heizung1         "Heizung WZ 1" [id="hdm:HomeMaticIP:3014F711A000005A185BB182" ]
  Thing thermostat      heizungwz2       "Heizung WZ 2" [id="hdm:HomeMaticIP:3014F711A000005A185B5576"]
  Thing twinguard       twinguardWZ      "Twinguard WZ" [id="hdm:ZigBee:000d6f000efb849f" ]
  Thing climate-control ccwohnzimmer     "CC Wohnzimmer" [id="roomClimateControl_hz_6" ]

Items

Group gSHC
Group gSHCSet
Group Wohnung
Group Wohnzimmer ( Wohnung)
Contact SHC_Balkontuer       "Balkontür [MAP(SHCKontakt.map):%s]"  ( gSHC )      { channel="boschshc:window-contact:65561fa0:balkontuer:contact" }
Number SHC_TempWZ1          "[%.1f] °C" <temperature>  (Wohnzimmer,gSHC) { channel="boschshc:thermostat:65561fa0:heizung1:temperature" }
Number SHC_ValvWZ1          "Valv Pos WZ1" (Wohnzimmer,gSHC) { channel="boschshc:thermostat:65561fa0:heizung1:valve-tappet-position" }
Number SHC_TempWZ2          "[%.1f] °C" <temperature>  (Wohnzimmer,gSHC) {channel="boschshc:thermostat:65561fa0:heizungwz2:temperature"}
Number SHC_ValvWZ2          "Valv Pos WZ2" (Wohnzimmer,gSHC) { channel="boschshc:thermostat:65561fa0:heizungwz2:valve-tappet-position" }
Number SHC_TempWZTG1        "[%.1f] °C" <temperature> (Wohnzimmer,gSHC) { channel="boschshc:twinguard:65561fa0:twinguardWZ:temperature" }
String SHC_TempRating       "Rating [%s]" (Wohnzimmer,gSHC) { channel="boschshc:twinguard:65561fa0:twinguardWZ:temperature-rating" }
Number SHC_Humidity         "[%.1f] %%" (Wohnzimmer,gSHC) { channel="boschshc:twinguard:65561fa0:twinguardWZ:humidity"}   
String SHC_HumRating        "Rating [%s]" (Wohnzimmer,gSHC) { channel="boschshc:twinguard:65561fa0:twinguardWZ:humidity-rating" }
Number SHC_Purity           "[%d] ppm" (Wohnzimmer,gSHC) {  channel="boschshc:twinguard:65561fa0:twinguardWZ:purity"}
String SHC_AirDescripton    "Desc [%s]" ( Wohnzimmer,gSHC) { channel="boschshc:twinguard:65561fa0:twinguardWZ:air-description" }
String SHC_PurRating        "Rating [%s]" ( Wohnzimmer,gSHC) { channel="boschshc:twinguard:65561fa0:twinguardWZ:purity-rating" }
String SHC_CombRating       "Rating [%s]" (Wohnzimmer,gSHC) { channel="boschshc:twinguard:65561fa0:twinguardWZ:combined-rating" }
Number SHC_CCWZ1Set         "[%.1f] °C" <temperature> (Wohnzimmer,gSHCSet) { channel="boschshc:climate-control:65561fa0:ccwohnzimmer:setpoint-temperature"}
Number SHC_CCWZ1Now         "[%.1f] °C" <temperature> (Wohnzimmer) { channel="boschshc:climate-control:65561fa0:ccwohnzimmer:temperature"}
kreack commented 4 years ago

Hi @armin-gh & @coeing ,

many thanks for fast feedback! so everything seems to have been right (except typos by "Heizugsregelung_rolle") :-) Guys you are the best!

Regards, Sergo