I’m having the following test example:
type: entities
entities:
- entities:
- entity: sensor.br_precipitation_forecast_total
name: Forecast
entity: sensor.br_rainchance_1d
type: 'custom:multiple-entity-row'
- entity: sensor.br_visibility
What I’m trying to achieve is to make sensor.br_visibility an “folded” entity of the multiple entity Forcast row.
I have not come that far with:
type: entities
entities:
- entities:
- entity: sensor.br_visibility
- entities:
- entity: sensor.br_precipitation_forecast_total
name: Forecast
entity: sensor.br_rainchance_1d
type: 'custom:multiple-entity-row'
type: 'custom:fold-entity-row'
Am I embarking on a lost cause or is it just a matter of finding the correct indenting?
Tseven
July 22, 2020, 8:12pm
2
Did you get this working?
Care to share the code?
/Regards
Tseven
July 22, 2020, 8:58pm
4
I did few attempts and got something working, still WIP…
type: entities
title: Doors locked or open?
entities:
- entities:
- entity: binary_sensor.all_doors_closed
name: All doors
icon: 'mdi:door'
show_state: false
type: 'custom:multiple-entity-row'
state_color: true
entities:
- entity: binary_sensor.front_door
name: Front
icon: 'mdi:door'
state_color: true
- entity: binary_sensor.back_door
name: Back
icon: 'mdi:door'
state_color: true
- entity: binary_sensor.cellar_door
name: Cellar
icon: 'mdi:door'
state_color: true
head: null
entity: binary_sensor.all_doors_closed
name: All doors
icon: 'mdi:door'
type: 'custom:fold-entity-row'
1 Like
Thanks for sharing. However, I’m trying to do the reverse, i.e. location of ‘custom: fold-entity-row’ is embedded in the ‘custom:multiple-entity-row’ but failed sofar.
To be a bit more clearer as to what I’m aiming for. In the current result, I want to have the drop down floor pump switch (custom:fold-entity-row) to be integrated with the monitoring values floor pump status (custom: multiple-entity-row). The floor pump switch is a control function and I do not want this to be displayed by default. Sofar, not much success. Any hints?
type: entities
entities:
- entities:
- entity: sensor.floor_pump_status
type: 'custom:multiple-entity-row'
state_color: true
entities:
- entity: sensor.floor_pump_power
name: Power
unit: W
head: null
entity: switch.fibaro_system_fgwpe_f_wall_plug_switch_5
type: 'custom:fold-entity-row'
Tseven
July 24, 2020, 11:36am
8
I can try to solve, could you edit the picture to the result you are looking for?
What sensor/text/value do you want as the dropdown header?
The switch should be easy to add in the multiple-entity-row section.
/Regards
Just move Floor Pump Status row up and Floor Pump Switch down (folded out)
Tseven
July 24, 2020, 1:10pm
10
I think you have to settle for one of the values on the first row, either power or status.
It is possible to embed multiple-entity-row
inside fold-entity-row
. Here’s the relevant part of the code showing the syntax and formatting required, taken from my dashboard where I have the header displaying the on/off toggle for my garden lights and two scenes, with the fold out displaying the individual lights.
- type: custom:fold-entity-row
head:
type: custom:multiple-entity-row
entity: light.garden_lights
toggle: true
entities:
- icon: mdi:palette
name: Ambient
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.garden_lights_ambient
- icon: mdi:palette
name: Read
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.garden_lights_read
padding: 40
open: true
entities:
# List your fold out entities here
1 Like