Hi Guys, I’m quite the newbie.
I have a problem with yaml working in light card but not working in Horiz Card with a light card in it, if you get my meaning.
Is this the best place to ask my question??
Thanks
Dave
Hi Guys, I’m quite the newbie.
I have a problem with yaml working in light card but not working in Horiz Card with a light card in it, if you get my meaning.
Is this the best place to ask my question??
Thanks
Dave
this is a fine place to ask. explain more of what you’re trying to accomplish and also post the code that’s working as well as the one that’s not working that you’d like to fix.
Thanks a lot , I will do
Home Assistant Newbie YAML Question Re Light Card & Horiz Stack
Hi Guys,
OK, so I created a light card (not Mushroom) and was able to use this Card_Mod code to edit it :-
type: light
entity: light.triple
name: Triple
icon: mdi:led-strip-variant
card_mod:
style: |
ha-card {
background: rgba(51, 175, 255, 0.5);
color: darkblue;
border: solid 2px darkblue;
border-radius: 5px;
margin-left: 80%;
top: +0px;
width: 95px;
--mdc-icon-size: 0px;
box-shadow: rgba(17, 35, 123, 1) 5px 0px 20px;
}
This worked fine.
So I then created a Horizontal Stack and inserted a Light Card and tried to use the exact same code on that card
type: horizontal-stack
cards:
- type: light
entity: light.cabinet
name: Cabinet
icon: mdi:led-strip
hold_action:
action: toggle
title: Bloop
card_mod:
style: |
ha-card {
background: rgba(51, 175, 255, 0.5);
color: darkblue;
border: solid 2px darkblue;
border-radius: 5px;
margin-left: 0%;
top: +0px;
width: 95px;
--mdc-icon-size: 0px;
}
The Card_Mod code section does not work at all.
Can anyone tell me what rookie mistake I have made?
Thanks
Dave