Floorplan - Show text status instead of enum

Hi there,
i managed to get my floorplan up and running.
But if i want to show the status of my boiler, i only get the enum value, not the status text.
if i try the same in picture-card, with the same entity, it works like a charm!
see picture.
left: picture-element card
right: floorplan card.

code for picture:

  - type: state-label
    entity: sensor.solarfocus_biomass_boiler_status_2
    style:
      top: 94%
      left: 50%

code for floorplan:

    - name: Statustexte
      entities:
        - element: status_kessel
          entity: sensor.solarfocus_biomass_boiler_status_2
      state_action:
        - service: floorplan.text_set
          service_data: ${ entity.state }

how can i show the correct status text?
also, same question i gues, how can i show the entity messure unit in the “service_data” call? for generic usage in groups :slight_smile: (like by photovoltaik. right now i make 2 separted texts for W and kWh and only show the state, but its allready in the config of the entity available… so, why not use it :wink:

thx a lot!

For my second question:
How to show entity attributes, i found the solution…

its just that simple:

entity.attributes.unit_of_measurement

there u can reference all of the attributes an entity has (like shown in the hover-info or developer dashboard)
:slight_smile:

Now i only need to know how to show corresponding text-value of enum

check the entity in Dev_Tools , might be an attributes aswell :wink: