I have. What I was trying to do was was split my configuration in to several different files and folder locations to get it better organized. I was not understanding that I could not just cut and past my existing yaml file and save the code into a new file. Your explanation is far better (to me) than this document. I was having difficulties understanding how HA was using the new file. This created errors because of my spacing and hyphens.
Thanks for all your help. I am very close to “getting it” now. You referenced a document above that about object list and object. What document are you referencing?
Your reply made me turn on an idea light: I solved the problem applying the glow at the card, and setting same size at the card and the glow, now the only clickable area is the icon.
Something like this:
template_name:
size: 35px
show_name: false
styles:
card:
- height: 35px
- width: 35px
- background: transparent
- border-radius: 100%
- -webkit-box-shadow: 0px 0px 40px 20px var(--button-card-light-color)
- box-shadow: 0px 0px 40px 20px var(—button-card-light-color)
icon:
- border-radius: 100%
- height: 35px
- width: 35px
Is it possible to include an editableinput_datetime entity within a button by any chance?
I’m looking for a solution to display this editable entity in as small a space as possible, so I can neatly integrate it within my layout. So far it seems the only way is via an entities card, which adds too much gumf for my needs.
e.g. like this entities card but smaller and with no border or extra text:
Thanks.
input_datetime:
test:
name: Test
has_date: false
has_time: true
initial: '21:00:00'
to do something similar (using input_number though) I user stack-in-card and inside I have Entities card that has button-cards to display labels and units and original input_text customised to have no icon and no label, here’s how it looks
Not sure it’s possible to just use your input_datetime in button-card directly - maybe you can do it by generating html code instead of plain text but I haven’t tried it.
@RomRider Actually, I mentioned in one of my previous posts that as an attempt to see if state was an issue, I created two template sensors one for my upstairs hub and one for my downstairs hub. Those sensors use the current activity as the state, which is why the later code looks like that.
Do you or @petro have an example of a template switch for a remote button that’s just a press and release type (momentary)? Like the “OK” button shown in your screenshot. From what I can see of template switches, they are like normal switches meaning they are on or off. Whereas a remote button is on while you press it, then off when you release.
thanks for the example.
just wanted to ask - is the styles section generic here as for this particular button with no entity styling of name is irrelevant, isn’t it?
apart form that (actually, before doing that), you’ll need to investigate how your input_datetime is constructed in HTML and then find out what to change to get the desired result (as the element in question might be deep inside ha-card or there might be no ha-card visible at all as it’s inside shadow-root - all sorts of stuff).