Yes thanks, I understand now. Was a bit confusing at first, since the previous naming exactly coincided with my home hardware, having a boiler heat up when my boiler feeds the external water boiler / cv system (with a 3-way valve)…
I would of course welcome any sensor you can create, if not, I template the values out of the main climate entity.
If anything, I think it would be really cool if you could embrace the water tap icon in the integration, indicating the heater is heating for hot water, and not heating. The plugise hardware sees this and shows it on the Anna thermostat, so why not use that info too? it would really add to the usefulness if the integration.
If its any use to you, here’s what I use, with comments in front of the sensors needed in the core Plugwise integration, now superseded by the sensors the beta integration creates:
sensor:
- platform: template
sensors:
kantoor_thermostat_state:
friendly_name: Current state
value_template: >
{{states('climate.kantoor')|capitalize}}
icon_template: >
{% set state = states('climate.kantoor') %}
{% if state == 'auto' %} mdi:autorenew
{% elif state == 'idle' %} mdi:pause
{% else %} mdi:power-off
{% endif %}
kantoor_thermostat_hvac_action:
friendly_name: Hvac action
value_template: >
{{state_attr('climate.kantoor','hvac_action')|capitalize}}
icon_template: >
{% set action = state_attr('climate.kantoor','hvac_action') %}
{% set icon = {'heating':'mdi:fire',
'cooling':'mdi:snowflake',
'auto':'mdi:autorenew'} %}
{{icon[action] if action in icon else 'mdi:pause-circle'}}
# kantoor_thermostat_temperature_current:
# friendly_name: Current temp
# value_template: >
# {{state_attr('climate.kantoor','current_temperature')}}
# icon_template: >
# {% if state_attr('climate.kantoor','current_temperature') > 15 %} mdi:home-thermometer
# {% else %} mdi:home-thermometer-outline
# {% endif %}
# unit_of_measurement: '°C'
# kantoor_thermostat_temperature_target:
# friendly_name: Target temp
# value_template: >
# {{state_attr('climate.kantoor','temperature')}}
# icon_template: >
# {{'mdi:thermostat'}}
# unit_of_measurement: '°C'
# kantoor_thermostat_temperature_boiler:
# friendly_name: Boiler temp
# value_template: >
# {{state_attr('climate.kantoor','boiler_temperature')}}
# icon_template: >
# {% set boiler = state_attr('climate.kantoor','boiler_temperature')|int %}
# {% if boiler > 60 %} mdi:thermometer-high
# {% elif boiler > 20 %} mdi:thermometer
# {% elif boiler > 0 %} mdi:thermometer-low
# {% else %} mdi:thermometer-alert
# {% endif %}
# unit_of_measurement: '°C'
# kantoor_thermostat_temperature_outdoor:
# friendly_name: Outdoor temp
# value_template: >
# {{state_attr('climate.kantoor','outdoor_temperature')}}
# icon_template: >
# {% set outdoor = state_attr('climate.kantoor','outdoor_temperature')|int %}
# {% if outdoor > 20 %} mdi:thermometer-high
# {% elif outdoor > 10 %} mdi:thermometer
# {% elif outdoor > 0 %} mdi:thermometer-low
# {% else %} mdi:thermometer-alert
# {% endif %}
# unit_of_measurement: '°C'
kantoor_thermostat_available_schemas:
friendly_name: Available schemas
value_template: >
{{state_attr('climate.kantoor','available_schemas')}}
icon_template: >
{{'mdi:calendar-multiple-check'}}
kantoor_thermostat_selected_schema:
friendly_name: Selected schema
value_template: >
{{state_attr('climate.kantoor','selected_schema')}}
icon_template: >
{{'mdi:calendar-multiple-check'}}
kantoor_thermostat_preset_modes:
friendly_name: Preset modes
value_template: >
{{state_attr('climate.kantoor','preset_modes')}}
icon_template: >
{{'mdi:format-list-bulleted'}}
kantoor_thermostat_current_preset_mode:
friendly_name: Current preset mode
value_template: >
{{state_attr('climate.kantoor','preset_mode')|replace('_',' ')|capitalize}}
icon_template: >
{% set mode = state_attr('climate.kantoor','preset_mode') %}
{% set icon = {'Temporary':'mdi:gesture-double-tap',
'Regulier':'mdi:check-circle',
'Manual':'mdi:gesture-swipe-vertical',
'away':'mdi:home-export-outline',
'vacation':'mdi:beach',
'asleep':'mdi:hotel',
'no_frost':'mdi:snowflake'} %}
{{icon[mode] if mode in icon else 'mdi:home'}}
kantoor_thermostat_hvac_modes:
friendly_name: Hvac modes
value_template: >
{{state_attr('climate.kantoor','hvac_modes')}}
icon_template: >
{{'mdi:format-list-text'}}
kantoor_thermostat_min_temp:
friendly_name: Min temp
value_template: >
{{state_attr('climate.kantoor','min_temp')}}
icon_template: >
{{'mdi:thermometer-minus'}}
kantoor_thermostat_max_temp:
friendly_name: Max temp
value_template: >
{{state_attr('climate.kantoor','max_temp')}}
icon_template: >
{{'mdi:thermometer-plus'}}
inside_temperature_color_name:
value_template: >
{% set temp = states('sensor.temperatuur_living')|float %}
{% if temp < -5 %} mediumblue
{% elif temp < 0 %} dodgerblue
{% elif temp < 5 %} deepskyblue
{% elif temp < 10 %} lightblue
{% elif temp < 15 %} turquoise
{% elif temp < 20 %} green
{% elif temp < 25 %} darkgreen
{% elif temp < 30 %} orange
{% elif temp < 35 %} crimson
{% else %} firebrick
{% endif %}
bottom one of course merely for customizations
thanks, and please keep up the good work, much appreciated!