Skip to content

YamlCardThermo2

olialb edited this page Jun 22, 2026 · 2 revisions

Card type cardThermo2

The card type cardThermo can be used as a second alternative to control a thermostat at home

Note: This card type is only supported in ticaki/ioBroker.nspanel-lovelace-ui for EU panels.

You need/can define the following card attributes and slots with references to items in openHAB:

card attribute default value from skin file optional / Mandetory Description
min 5.0 ° O Minimum temperature which can be selected
min 30.0 ° O Maximum temperature which can be selected
steps 0.5 ° O Steps for up and down
controlled over the popup card
Slot number OH item type slot types default value optional / Mandetory Description
1 Number number - M Target temperature 1
2 Number number empty O Current temperature
3 Number number empty O Current humidity
4 String text empty O Current "run state" of the thermostat
5 Switch, String button, switch OFF O The state of this item represent the ON/OFF state of the thermostat and activates and deactivates the target themperature setting
6-12 any any empty O Slots to set any mode or usages as radio buttons (icon and color cn be controlled)
13 any any - O Main usage of this slot is to set an additinal mode of the thermostat (for example over an input_sel popup) but you can use it also for anything else (only the icon and icon color can be controlled)

image

Item configuration for a Bosch Thermostat II used in this example:

Group gThermostatSchlafzimmer "Schlafzimmerthermostat"  {ga="Thermostat" [ thermostatTemperatureRange="5,30" ], alexa="Thermostat"}
Number:Temperature H_Schlafzimmer_SetHeatTemp "Zieltemperatur [%.1f°C]" <temperature> (gThermostatSchlafzimmer) { ga="thermostatTemperatureSetpoint", alexa="TargetTemperature"}
Number:Temperature H_Schlafzimmer_Temperatur "Temperatur Schlafzimmer [%.1f°C]" <temperature> (gThermostatSchlafzimmer) { ga="thermostatTemperatureAmbient", alexa="CurrentTemperature"}
Number:Temperature H_Schlafzimmer_SetCoolTemp "Zieltemperatur [%.1f°C]" <temperature>
Switch H_Schlafzimmer_Lock "Lock"
Switch H_Schlafzimmer_boost "Boost"
Switch H_Schlafzimmer_windowOpen "Window Open"
String H_Schlafzimmer_OpMode "Thermostat Operation Mode" {stateDescription=""[options="manual=Manual,pause=Pause,schedule=Schedule"]}
String H_Schlafzimmer_SysMode "Thermostat System Mode" {stateDescription=""[options="off=Off,heat=Heat,cool=Cool"]}
String H_Schlafzimmer_RunState "Thermostat Running State" {stateDescription=""[options="idle=Idle,heat=Heat,cool=Cool"]}

Example card:

cards:
  - name: ThermoExt2
    title: Schafzimmerthermostat
    type: cardThermo2
    min: 5.0
    max: 30.0
    steps: 0.5
    details: True
    slots:
      - class: ohItem
        type: number
        item: H_Schlafzimmer_SetHeatTemp
      - class: ohItem
        type: text
        item: H_Schlafzimmer_Temperatur
      - class: ohItem
        type: text
        item: H_Schlafzimmer_Humid
      - class: ohItem
        type: text
        item: H_Schlafzimmer_RunState

      #Slot 5-8 are used as radio buttons for H_Schlafzimmer_SysMode states
      - class: ohItem
        type: button
        item: H_Schlafzimmer_SysMode
        radioButtonState: "Off"
        iconColor: default=green,Off=red
      - class: ohItem
        type: button
        item: H_Schlafzimmer_SysMode
        radioButtonState: "Heat"
        iconColor: default=grey,Heat=red
      - class: ohItem
        type: button
        item: H_Schlafzimmer_SysMode
        radioButtonState: "Cool"
        iconColor: default=grey,Cool=blue
      - class: ohItem
        type: button
        item: H_Schlafzimmer_SysMode
        radioButtonState: "Auto"
        iconColor: default=grey,Auto=white

      #slot 9-11 are used for different thermostats settings
      - class: ohItem
        type: switch
        item: H_Schlafzimmer_Lock
        iconColor: ON=red,OFF=green
        icon: ON=lock,OFF=lock-open-variant
      - class: ohItem
        type: switch
        item: H_Schlafzimmer_boost
        iconColor: ON="red",OFF=grey
        icon: "\uFA44"
      - class: ohItem
        type: switch
        item: H_Schlafzimmer_windowOpen
        iconColor: ON=blue,OFF=grey
        icon: ON=window-open-variant,OFF=window-closed-variant
      - class: #slot 12 is not used

      #slot 13 is used for an input_sel popup to the the H_Schlafzimmer_OpMode
      - class: ohItem
        type: input_sel
        item: H_Schlafzimmer_OpMode
        icon: dots-vertical-circle-outline

image

Clone this wiki locally