hide_unavailable: true does not hide
Mariusthvdb opened this issue · comments
consider:
- type: custom:multiple-entity-row
entity: sensor.kelder_aanbouw_hygro_temp_temperature
hide_unavailable: true
state_header: Temp
name: Kelder
entities:
- entity: sensor.kelder_aanbouw_hygro_temp_humidity
name: Vocht
- entity: sensor.kelder_aanbouw_hygro_temp_battery
name: Battery
secondary_info:
entity: sensor.kelder_aanbouw_hygro_temp_signal_strength
name: Signal
while the sensor.kelder_aanbouw_hygro_temp_temperature
entity is unavailable:
still showing:
supposed to be hidden from the view.
HA 2024.2
M-E-R: 4.5.0
using core conditional does work as hoped for:
card:
type: conditional
conditions:
- entity: sensor.[[id]]_hygro_temp_temperature
state_not: unavailable
card:
type: custom:multiple-entity-row
entity: sensor.[[id]]_hygro_temp_temperature
# hide_unavailable: true
state_header: Temp
name: '[[name]]'
<<: &width
styles:
width: 60px
text-align: center
entities:
- entity: sensor.[[id]]_hygro_temp_humidity
name: Vocht
<<: *width
- entity: sensor.[[id]]_hygro_temp_battery
name: Battery
<<: *width
secondary_info:
entity: sensor.[[id]]_hygro_temp_signal_strength
name: Signal
I've got the same issue. Did you figure it out?
nope, the Entity option is bugged, and no response from the author yet, so we are left to use the core conditional.
we can do this (add the hide_unavailable
option to the entities, and that works):
type: entities
entities:
- type: custom:multiple-entity-row
entity: sensor.kelder_aanbouw_hygro_temp_temperature
hide_unavailable: true
state_header: Temp
name: Kelder
entities:
- entity: sensor.kelder_aanbouw_hygro_temp_humidity
name: Vocht
hide_unavailable: true
- entity: sensor.kelder_aanbouw_hygro_temp_battery
name: Battery
hide_unavailable: true
secondary_info:
entity: sensor.kelder_aanbouw_hygro_temp_signal_strength
hide_unavailable: true
name: Signal
It still shows the main entity though, and that ofc is the issue at hand
You are using “hide_unavailavle” in a wrong place - and yet call it a bug.
Read docs - this option is supported only for entities inside “entities” option, not for the main entity.
yep.
I already mentioned the latter in my post above.
And concede to the former.
Should be a feature request.
closing.