Hi,
really happy with the card, made my ui a lot compact and cleaner especially on phone. I noticed a thing happening on Android, not sure if warranted to open an issue (might be my phone or Android and not your code etc).
Let’s say I have HA app open on android phone with 3 cards visible, where card 2 is room card and other two cards are not.
If I put my finger anywhere on cards 1 or 3 (even on an entity) and drag up or down immediately, the action is interpreted as drag and scrolls the ui, however if I touch room card 2 on an entity and immediately drag, the action will be interpreted as touch and will trigger the tap_action of the entity.
Any way to work around this apart from conditioning myself to scroll via the empty edges?
I’m afraid not. This is just a shortcoming of the app or maybe even smart phones.
You could change the tap_action to hold action but thats annoying when you try to switch on an entity. But even than, if you scroll with your finger on an icon, it will switch on.
Hi, nice card.I’ve tried to change the Icon Size in the entities bar, any idea? I don’t find the right CSS item, neither with card-mod. Where can I find an example?
I made this to change icon color for the vacuum according to what it’s doing and it’s working great, i.e. immediately changes when state of the entity changes:
Hmm could be that it doesn’t work with script entities. Let me check tomorrow. But sometimes single quotes around the values help. So ‘paused’ in stead of paused
I think it’s related to the script entities as you mentioned, although it seems not in the info_entities: block, in the following the volume buttons hide correctly, the media buttons after reload.
Seems like it yeah. One other thing, my mediaplayer doesn’t have a state ‘paused’ or ‘buffering’ so I cant test that states for you.
Ontopic: The card uses the states that hass gives it. So maybe the scripts entities work in another way? But are you trying to control a mediaplayer? If so, why not use the mini-mediaplayer card?
I already have mini-media-players for 3 pcs in there that show/hide depending on which one I play something, but the button I try to color just launches Kodi. Since many other entities I have on dashboard turn yellow when on, I was working on those that don’t like the vacuum or the Kodi button.
I could probably make a input_boolean helper that would copy the state of kodi (on unrelated note I have several entities like this and they drive my imagined ocd up the wall as yellow ain’t the same as the yellow in default ha theme and I can’t find the value for that one), but I really liked the vacuum icon turning different colors on different states so wanted to copy that.
The script entities work differently, they’re always on and get triggered (sort of as automations I think?). The reason I use so many scripts where I could use button or input_boolean is when I change device or switch integrations, the old device goes poof from all and every automation and dashboard yaml, and god help you if you forgot what was where. So I use scripts, that “press” the buttons on the devices, and if the device goes poof, I just replace it in the script and my dashboard remains intact. Hope that makes sense.