souliss / bindingopenhab

Binding to connect your Souliss Network to openHAB
10 stars 6 forks source link

Add support to T31 - Temperature control #4

Closed fazioa closed 8 years ago

fazioa commented 9 years ago

https://github.com/souliss/souliss/blob/master/Souliss/base/T3n.cpp

This typical use five (5) memory slot, arranged as follow Temperature Control User Commands (IN / OUT) SLOT +0
Temperature Measured Value (IN / OUT) SLOT +1, SLOT +2 Temperature Setpoint Value (IN / OUT) SLOT +3, SLOT +4

Hardware and/or Software Command: ...software command from user interface, to increase or decrease the setpoint.

define Souliss_T3n_InSetPoint 0x01

            #define Souliss_T3n_OutSetPoint         0x02
            #define Souliss_T3n_AsMeasured          0x03
            #define Souliss_T3n_Cooling             ----- 0x04
            #define Souliss_T3n_Heating              -----   0x05
            #define Souliss_T3n_FanOff               -----   0x06
            #define Souliss_T3n_FanLow              -----    0x07
            #define Souliss_T3n_FanMed               -----   0x08
            #define Souliss_T3n_FanHigh              -----   0x09
            #define Souliss_T3n_FanAuto               -----  0x0A
            #define Souliss_T3n_FanManual           0x0B
            #define Souliss_T3n_SetTemp          -----   0x0C
            #define Souliss_T3n_ShutDown            0x0D

...following state defines let control heating, cooling and fans.

define Souliss_T3n_HeatingOn 0x02

            #define Souliss_T3n_CoolingOn           0x03
            #define Souliss_T3n_FanOn1              0x08
            #define Souliss_T3n_FanOn2              0x10
            #define Souliss_T3n_FanOn3              0x20    
fazioa commented 8 years ago

Number Temperature_GF_Soggiorno "Temperature [%.1f °C]" (T31, TechnicView_Node0) {souliss="T31:1:0:measured"} Number Temperature_2F_Living_SP "Temp Set Point [%.1f °C]" (T31, TechnicView_Node0) {souliss="T31:1:0:setpoint"} Switch setasmeasured "Set as measured" (T31, TechnicView_Node0) {souliss="T31:1:0:setasmeasured", autoupdate="false"} Switch heating_cooling "Heating Mode" (T31, TechnicView_Node0) {souliss="T31:1:0:heatingcooling", autoupdate="false"} Switch heating "Heating" (T31, TechnicView_Node0) {souliss="T31:1:0:heating"} Switch cooling "Cooling" (T31, TechnicView_Node0) {souliss="T31:1:0:cooling"} Switch fan_off "Fan Off" (T31, TechnicView_Node0) {souliss="T31:1:0:fanoff", autoupdate="false"} Switch fan_low "Fan Low" (T31, TechnicView_Node0) {souliss="T31:1:0:fanlow", autoupdate="false"} Switch fan_med "Fan Med" (T31, TechnicView_Node0) {souliss="T31:1:0:fanmed", autoupdate="false"} Switch fan_high "Fan High" (T31, TechnicView_Node0) {souliss="T31:1:0:fanhigh", autoupdate="false"} Switch power "Power Off" (T31, TechnicView_Node0) {souliss="T31:1:0:power"}