KNX Percentage button Summer/Winter/stop system

Hi,

I have a house, that has a heating / cooling system in place. I do not have access to the ETS file nor the original visualization software, so i am building my own visualization in HA to control the house and customize.

I need a button / buttons where i can choose from 3 different modes:

Summer - sends 0% to 2/7/10 address
Winter - sends 0,4% to 2/7/10 address
Stop system sends 0,8% to 2/7/10 address

status of the system is read out of the same group address and should be translated into different colours like red for Winter with a sun symbol, blue for summer with a snowflake symbol and a stop sign when system is stopped.

it is important the it is comma and not dot in the percentage send to the KNX bus.

Anyone has a good solution / idea to this?

Hi :wave:!
This doesn’t look like percentages to me, but more like scene numbers or some proprietary 1byte integer DPT (using values 0, 1 and 2).
You can always use a select entity or multiple button entities to use that.

I could be wrong, but this is what i read from the KNX bus:

232 07-04-2024 09:51:06,742 fra bus Lav 1.1.1 - 2/7/10 - 6 GroupValue_Write 5.001 percentage (0…100%) $02 | 0,8%

i tried with buttons: - but since the all have the same group adress, they cannot co-excist due to the unique ID thing in HA. So i would need something else i think.

Buttons use {group_address}_{payload} as unique id, so yes they can coexist.

Where do you read this from? Looks like ETS, but you mentioned that you don’t have the project file …
It seems that the DPT there is just set wrong - which doesn’t really matter except for readability.

I do read it via ETS. I dont have the ETS file, but i can still monitor the bus via an IP interface… Maybe the DPT is set wrong. So you think it is a scene?

Maybe - without the file you can’t know. It’s definitely some 1byte unsigned int. In the end it doesn’t matter, except for you can use it as such when configuring your entities.

Well, a little trial on error here, and it turns out that it is scenes. So summer is scene 1, winter is scene 2 and system stop is scene 3.

Now i just need to find a nice way of controlling it. Experimenting with mushroom chips - but is there a drop down menu kind of thing that can be used also? i am experimenting with colors and logos like this:

{% if is_state(‘sensor.summer_winter_stop_sensor’,‘1’) %}
mdi:snowflake
{% endif %}

{% if is_state(‘sensor.summer_winter_stop_sensor’,‘2’) %}
mdi:sun-clock
{% endif %}

{% if is_state(‘sensor.summer_winter_stop_sensor’,‘3’) %}
mdi:stop
{% endif %}

{% if is_state(‘sensor.summer_winter_stop_sensor’,‘1’) %}
blue
{% endif %}

{% if is_state(‘sensor.summer_winter_stop_sensor’,‘2’) %}
red
{% endif %}

:clap::clap:
Select entity
https://www.home-assistant.io/integrations/knx/#select

What am i doing wrong here? it does not get the icon colors… it works on other cards, but not the chips card.

type: custom:mushroom-chips-card
chips:
- type: entity
entity: scene.summer_mode
tap_action:
action: none
hold_action:
action: toggle
double_tap_action:
action: none
icon: mdi:snowflake
icon_color: |+
{% if is_state(‘sensor.summer_winter_stop_sensor’,‘1’) %}
blue
{% endif %}

        content_info: name
        use_entity_picture: false
      - type: entity
        entity: scene.winter_mode
        tap_action:
          action: none
        hold_action:
          action: toggle
        double_tap_action:
          action: none
        icon: mdi:sun-thermometer-outline
        icon_color: |+
          {% if is_state('sensor.summer_winter_stop_sensor','2') %}
          deep-orange
          {% endif %}
        content_info: name
      - type: entity
        entity: scene.stop_system
        tap_action:
          action: none
        hold_action:
          action: toggle
        double_tap_action:
          action: none
        icon: mdi:stop
        icon_color: |+
          {% if is_state('sensor.summer_winter_stop_sensor','3') %}
          red
          {% endif %}
        content_info: name
    alignment: center

type: custom:mushroom-chips-card
chips:
- type: entity
entity: scene.summer_mode
tap_action:
action: none
hold_action:
action: toggle
double_tap_action:
action: none
icon: mdi:snowflake
icon_color: |+
{% if is_state(‘sensor.summer_winter_stop_sensor’,‘1’) %}
blue
{% endif %}

        content_info: name
        use_entity_picture: false
      - type: entity
        entity: scene.winter_mode
        tap_action:
          action: none
        hold_action:
          action: toggle
        double_tap_action:
          action: none
        icon: mdi:sun-thermometer-outline
        icon_color: |+
          {% if is_state('sensor.summer_winter_stop_sensor','2') %}
          deep-orange
          {% endif %}
        content_info: name
      - type: entity
        entity: scene.stop_system
        tap_action:
          action: none
        hold_action:
          action: toggle
        double_tap_action:
          action: none
        icon: mdi:stop
        icon_color: |+
          {% if is_state('sensor.summer_winter_stop_sensor','3') %}
          red
          {% endif %}
        content_info: name
    alignment: center