not sure which thread to put this, so please allow a dedicated post…
have this button-card I want to show conditionally, when a persistent notification is active:
- type: conditional
conditions:
- entity: persistent_notification.notification
state: notifying
card:
- !include /config/lovelace/includes/include_button_updater.yaml
without the condition, this button is showing fine. However, if I use the above in a horizontal stack, or even standalone:
type: horizontal-stack
cards:
- type: custom:button-card
template: horizontal-filler
- !include /config/lovelace/includes/include_button_trash_alert.yaml
- type: conditional
conditions:
- entity: persistent_notification.notification
state: notifying
card:
- !include /config/lovelace/includes/include_button_updater.yaml
- type: custom:button-card
color_type: blank-card
- type: custom:button-card
color_type: blank-card
- type: custom:button-card
template: horizontal-filler
I get ‘no card type configured’
If I put the conditional card in the button card itself,
type: conditional
conditions:
- entity: persistent_notification.notification
state: notifying
card:
type: custom:button-card
template: button_body
entity: 'binary_sensor.updater'
icon: 'mdi:home-assistant'
aspect_ratio: 1/1
name: Hassio
show_state: false
styles:
card:
- font-size: 10px
etc
etc
it works alright (but I don’t want the card to be hidden on all views, so thats not the real solution for me now…)
It must be a referencing issue, but I cant see it. what am I missing? Or is using an include simply impossible with the conditional card maybe?