benct / lovelace-multiple-entity-row

Show multiple entity states and attributes on entity rows in Home Assistant's Lovelace UI
MIT License
768 stars 55 forks source link

Toogle & Text #322

Closed duczz closed 6 months ago

duczz commented 6 months ago

Hello,

is there a way to set the toogle right and the Button in center to the Button? (See Button and Text Gast, its center to the toggle) - the toggle must be right, because all toggles are in default right

maybe with state_header: "Party " or a extra text-align?

image

entity: input_boolean.advanced_heating_control_wohnzimmer_party_mode
name: Modus
show_state: true
toggle: true
state_header: Party
icon: mdi:arrow-decision
styles:
  width: 60px
  text-align: right
type: custom:multiple-entity-row
entities:
  - entity: input_boolean.advanced_heating_control_wohnzimmer_guest_mode
    name: Gast
    toggle: true
ildar170975 commented 6 months ago

What you posted is not a code. Use formatting.

duczz commented 6 months ago

the code button diesnt work here, always unformat, see picture. image

ildar170975 commented 6 months ago

paste code into triple "`"

duczz commented 6 months ago

you see on top, that these is nor working, these already exist

ildar170975 commented 6 months ago

We are spending to much time for this (.

formatted code
duczz commented 6 months ago

its `` not...

ildar170975 commented 6 months ago

triple "`"

?

duczz commented 6 months ago

maybe i was blind haha

ildar170975 commented 6 months ago

Seems that this was already discussed & answered: https://community.home-assistant.io/t/lovelace-multiple-entity-row/109109/397?u=ildar_gabdullin

duczz commented 6 months ago

This code works.

entity: sun.sun
name: Modus
icon: mdi:temperature-celsius
show_state: false
type: custom:multiple-entity-row
entities:
  - entity: input_boolean.advanced_heating_control_schlafzimmer_guest_mode
    name: Gast
    toggle: true
    styles:
      width: 100px    
  - entity: input_boolean.advanced_heating_control_schlafzimmer_party_mode
    name: Party
    toggle: true