Id love to have the Marquee start scrolling in from the right side border, and not half way.
When the Marquee text is longer, eg when 2 alerts are on, the text scrolls in fine and uses the whole card.
Would anyone have a suggestion how to make that happen with single alert marquees…?
Ofc I did try the various justify-self options, but all I can change there is the left-side text… and even the stretch doesnt really help, because then the text gets centered and not left aligned either.
thanks Petro, and, yes, I have been experimenting in adjusting the width, and even tried the width: 100% which is also mentioned in several of these links… nothing changes though.
It seems the only thing affecting position at the right marquee entry is the length of the string of the marquee. other than that I havent been able to find a setting influencing it. Unless I change the width of the card column completely, but that is not what Wel;re after here, it should remain its default width like all cards.
Ive taken out the button_card_template and wrote all css in this card_config, to be sure no conflicts exist between the various stylings:
ok…
ive brought some stylings to the card settings, hoping it would attach that to the whole name: also simplified the html a bit because of that. and it is way better, but now the first div is lowered and no longer center aligned, nor is the padding setting of 12px respected…
Ive tried to end the div after the too make it a larger section, but again, that doest really change anything:
Yep, play around until it works. Without being able to change the backend, that’s what you have to do. In normal circumstances you’d change the underlying classes. Everything in custom button card is a work around with trail and error.
hello.
really like this where the text is moving. i would like to make a list of all the lights which are on. how could i do that? here is the code i have to find out which lights are on, but i would like to have then sliding in one row like you did,.
type: entity-filter
title: lights and switches currently on
show_header_toggle: false
entities:
- light.play_room_light
- light.play_room_spots
- light.liam_light
- light.liam_spot
- light.all_lightscolor_stripe
- light.eden_light
- light.eden_spots
- light.giraffe
- light.kids_bath
- light.laundry
- light.bath_mirror
- light.bath_shower
- light.entrance
- light.bed
- light.daniel
- light.gil
- light.spots_bed_room
- light.dressing
state_filter:
- 'on'
- open
show_empty: false
card:
type: glance
title: lights and switches currently on
Hi. But how do I choose which lights ?
I don’t want all the lights. Just someone of them.
And if they are on I would like to return a text (I don’t want to use the light name as results. I want a friendlier name as results)
sorry… so I want to list (with a friendly name, i.e. a text ) the lights and switches which are on, but only from a selection of lights and switches from my house.
sorry for that.
right, now this is getting more about creating the correct list and names, than using the marquee.
you can set the list and then select ‘on’ from those entities. Depending on your skills, you can do that in a core template entity, or in a javascript variable…
he fact you want other names than the friendly_name forces you to use a so called ‘mapper’, which does not make it easier.
My suggestion would be to first create the list and use those friendly_name s, and see where that takes you.
{% set lights = ['light.all_liam', 'light.all_play_room','light.all_eden','light.all_kids_bath'] %}
{{ expand(lights) |selectattr('state','eq','on')
|map(attribute='name')| list }}