Use attributes from a switch

Hi all,

I use homee to connect to devices and Home Assistant for dashboarding and automations.

So far everything works great but now I’m switching also the switches (eg Eltakto) actions to Home assistant and I have some problems here.

Example:
I have an Eltako switch with 4 buttons. In home assistant I just see sensors for 2.
In the Dev tools I see in the sensor many attributes:

The problem for me is how can I use them (in an automation) to trigger an automation just if one of those 4 buttons is pushed? I have no idea how to use attributes or if I can even use them for my purpose…so sorry if it is a stupid question.

When you press the buttons on the switch, what changes? Do you see anything in the state or attributes that can help you identify which button was pressed (or released, or double-pressed, or held)?

Depending on which button I push the value jumps quickly to 1 or 0 and goes back to 2:

But if I use this, nothing works.

Found it: Issue was that I have to insert 2.0 or 0.0!

Yes…states are always strings in HA, so those values don’t change from 2 to 1 or 0, but ‘2.0’ to ‘1.0’ or ‘0.0’. Does anything else change in the attributes?

No nothing else changed…but I could solve the 4 vs 2 issue button with the findings you brought me to. I was always conzentrating on the change of the attributes and have not seen that the status quickly changed.
THANK you very much.

I can use now all 4 buttons.