Add other entity sensors to state_content on a tile

It would be great if you can add other entity sensors to a tile. Consider this example:

  - type: horizontal-stack
    cards:
      - entity: switch.greenwave_6_6
        type: tile
        state_content:
          - state
          - last-changed
      - entity: switch.greenwave_6_5
        type: tile
        state_content:
          - state
          - last-changed

Would be great if I can add sensor.greenwave_6_electric_consumption_w_6 to a tile.

This may be able to do what you want:

If not, ask the developer they are active and open to enhancement ideas.

2 Likes

I think OP is talking about the new state content option rather than custom tile features.

You can add non-standard information to the tile state field using card-mod.

type: tile
entity: lock.front_door_ble
card_mod:
  style:
    ha-tile-info$: |
      .secondary:after {
        visibility: visible;
        content: " ⸱ {{ states('sensor.front_door_battery_level') }}%";
      }
8 Likes