type: vertical-stack cards: - type: custom:stack-in-card mode: horizontal cards: - type: tile entity: sensor.battery_2_soc name: Battery 2 vertical: false hide_state: false show_entity_picture: false icon_tap_action: action: call-service service: input_boolean.toggle target: entity_id: input_boolean.battery_2_show_more card_mod: style: .: | :host { --ha-card-border-radius: 0px; --ha-card-border-width: 0px; } - type: entities show_header_toggle: false state_color: false card_mod: style: .: | #states > * { margin: -4px !important; } :host { margin: -5px !important; --ha-card-border-radius: 0px; --ha-card-border-width: 0px; } entities: - entity: sensor.battery_2_modell name: Modell icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:-2px !important; color: gray;} - entity: sensor.battery_2_software_version name: Version icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left: -2px !important; color: gray;} - entity: sensor.battery_2_serial_number name: Serial icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left: -2px !important; color: gray;} - type: custom:stack-in-card mode: horizontal cards: - type: entities show_header_toggle: false state_color: false card_mod: style: .: | #states > * { margin: 4px 0px !important; } :host { margin: -5px !important; --ha-card-border-radius: 0px; --ha-card-border-width: 0px; } entities: - entity: sensor.battery_2_power name: Power icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_voltage name: Voltage icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_current name: Current icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_soc name: SOC icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_remaining_capacity name: " " icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_capacity name: Capacity icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_total_cycle_capacity name: Cycle capacity icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_cycle_count name: Cycle count icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_charge_energy_today name: Charge today icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_discharge_energy_today name: Discharge today icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - type: entities show_header_toggle: false state_color: false card_mod: style: .: | #states > * { margin: 4px 0px !important; } :host { margin: -5px !important; --stack-card-margin: 0px; --ha-card-border-radius: 0px; --ha-card-border-width: 0px; } entities: - entity: sensor.battery_2_cell_average_voltage name: Average icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_cell_differential_voltage name: Difference icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_balance_current name: Balancing icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_mosfet_temperature name: MOSFET icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_temperature_t1 name: T1 icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_temperature_t2 name: T2 icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_temperature_t4 name: T4 icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_temperature_t5 name: T5 icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_charge_energy_total name: Charge total icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - entity: sensor.battery_2_discharge_energy_total name: Discharge total icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray;} - type: custom:stack-in-card mode: horizontal keep: margin: false box_shadow: false background: false outer_padding: false border_radius: false visibility: - condition: user users: - 541919ad78e8431aa587ce1a482b6c56 - condition: state entity: input_boolean.battery_2_show_more state: "on" cards: - type: entities show_header_toggle: false state_color: false card_mod: style: | #states > * { margin: -2px !important; } ha-card { border: none; !important; margin: -4px !important; font-size: 11px; } entities: - entity: sensor.battery_2_cell_01_voltage name: "01." icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left: 0 !important; color: gray} .value {color: {{state_attr('sensor.battery_2_cell_01_voltage','color')}};} - entity: sensor.battery_2_cell_02_voltage name: "02." icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray} .value {color: {{state_attr('sensor.battery_2_cell_02_voltage','color')}};} - entity: sensor.battery_2_cell_03_voltage name: "03." icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray} .value {color: {{state_attr('sensor.battery_2_cell_03_voltage','color')}};} - entity: sensor.battery_2_cell_04_voltage name: "04." icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray} .value {color: {{state_attr('sensor.battery_2_cell_04_voltage','color')}};} - type: entities show_header_toggle: false state_color: false card_mod: style: | #states > * { margin: -2px !important; } ha-card { border: none; !important; margin: -4px !important; font-size: 11px; } entities: - entity: sensor.battery_2_cell_05_voltage name: "05." icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray} .value {color: {{state_attr('sensor.battery_2_cell_05_voltage','color')}};} - entity: sensor.battery_2_cell_06_voltage name: "06." icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray} .value {color: {{state_attr('sensor.battery_2_cell_06_voltage','color')}};} - entity: sensor.battery_2_cell_07_voltage name: "07." icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray} .value {color: {{state_attr('sensor.battery_2_cell_07_voltage','color')}};} - entity: sensor.battery_2_cell_08_voltage name: "08." icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray} .value {color: {{state_attr('sensor.battery_2_cell_08_voltage','color')}};} - type: entities show_header_toggle: false state_color: false card_mod: style: | #states > * { margin: -2px !important; } ha-card { border: none; !important; margin: -4px !important; font-size: 11px; } entities: - entity: sensor.battery_2_cell_09_voltage name: "09." icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray} .value {color: {{state_attr('sensor.battery_2_cell_09_voltage','color')}};} - entity: sensor.battery_2_cell_10_voltage name: "10." icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray} .value {color: {{state_attr('sensor.battery_2_cell_10_voltage','color')}};} - entity: sensor.battery_2_cell_11_voltage name: "11." icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray} .value {color: {{state_attr('sensor.battery_2_cell_11_voltage','color')}};} - entity: sensor.battery_2_cell_12_voltage name: "12." icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray} .value {color: {{state_attr('sensor.battery_2_cell_12_voltage','color')}};} - type: entities show_header_toggle: false state_color: false card_mod: style: | #states > * { margin: -2px !important; } ha-card { border: none; !important; margin: -4px !important; font-size: 11px; } entities: - entity: sensor.battery_2_cell_13_voltage name: "13." icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray} .value {color: {{state_attr('sensor.battery_2_cell_13_voltage','color')}};} - entity: sensor.battery_2_cell_14_voltage name: "14." icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray} .value {color: {{state_attr('sensor.battery_2_cell_14_voltage','color')}};} - entity: sensor.battery_2_cell_15_voltage name: "15." icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray} .value {color: {{state_attr('sensor.battery_2_cell_15_voltage','color')}};} - entity: sensor.battery_2_cell_16_voltage name: "16." icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important; color: gray} .value {color: {{state_attr('sensor.battery_2_cell_16_voltage','color')}};} - type: custom:stack-in-card mode: horizontal keep: margin: false box_shadow: false background: false outer_padding: false border_radius: false visibility: - condition: user users: - 541919ad78e8431aa587ce1a482b6c56 - condition: state entity: input_boolean.battery_2_show_more state: "on" cards: - type: entities card_mod: style: .: | #states > * { margin: -10px 0px !important; } :host { margin: -5px !important; --stack-card-margin: 0px; --ha-card-border-radius: 0px; --ha-card-border-width: 0px; } entities: - entity: switch.battery_2_balance_enable name: Balancing secondary_info: none icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important;} - entity: switch.battery_2_float_mode_enable name: Float mode secondary_info: none icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important;} - type: entities card_mod: style: .: | #states > * { margin: -10px 0px !important; } :host { margin: -5px !important; --stack-card-margin: 0px; --ha-card-border-radius: 0px; --ha-card-border-width: 0px; } entities: - entity: switch.battery_2_charge_enable name: Charging secondary_info: none icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important;} - entity: switch.battery_2_discharge_enable name: Discharging secondary_info: none icon: nothing card_mod: style: hui-generic-entity-row: $: > state-badge {display: none;} .info {margin-left:0 !important;}