When I display an entity’s attribute in a card (see below screenshot), it doesn’t line up with the rest of the items in the card (attribute: Status) How do I force it to line up with the rest of the items in the card?
type: entities
entities:
- entity: switch.litter_robot_on_off
name: Power
- type: attribute
entity: vacuum.litter_robot_litter_box
name: Status
attribute: status
- entity: switch.litter_robot_night_light_mode
name: Night Light
- entity: switch.litter_robot_panel_lockout
name: Panel Lockout
- entity: sensor.litter_robot_waste_drawer
name: Waste Drawer
- type: conditional
conditions:
- entity: sensor.litter_robot_sleep_mode_start_time
state_not: unknown
row: sensor.litter_robot_sleep_mode_start_time
name: Sleep Mode Start Time
- type: conditional
conditions:
- entity: sensor.litter_robot_sleep_mode_end_time
state_not: unknown
row: sensor.litter_robot_sleep_mode_end_time
name: Sleep Mode Stop Time
- entity: script.reset_litter_robot_waste_drawer
name: Reset Waste Drawer
title: Litter-Robot
state_color: true
show_header_toggle: false
Do I need to use lovelace-card-mod to adjust the alignment of the text Off
? Anyway, I gave it my best shot below; however, it didn’t make any difference.
type: entities
entities:
- entity: switch.litter_robot_on_off
name: Power
- type: attribute
entity: vacuum.litter_robot_litter_box
name: Status
attribute: status
style: |
:host {
text-align: left;
}
- entity: switch.litter_robot_night_light_mode
name: Night Light
- entity: switch.litter_robot_panel_lockout
name: Panel Lockout
- entity: sensor.litter_robot_waste_drawer
name: Waste Drawer
- type: conditional
conditions:
- entity: sensor.litter_robot_sleep_mode_start_time
state_not: unknown
row: sensor.litter_robot_sleep_mode_start_time
name: Sleep Mode Start Time
- type: conditional
conditions:
- entity: sensor.litter_robot_sleep_mode_end_time
state_not: unknown
row: sensor.litter_robot_sleep_mode_end_time
name: Sleep Mode Stop Time
- entity: script.reset_litter_robot_waste_drawer
name: Reset Waste Drawer
title: Litter-Robot
state_color: true
show_header_toggle: false