Replies: 5 comments 7 replies
-
hi, try adding a custom off colour to each icon, see it if works for you. example 1: entity_1:
entity_id: light.h6072_4976
ulm_custom_card_andyblac_room_icon_color: rgba(var(--color-theme),0.4)
ulm_custom_card_andyblac_room_icon_color_on: yellow example 2: entity_1:
entity_id: light.h6072_4976
ulm_custom_card_andyblac_room_icon_color: rgba(221,221,221,0.4)
ulm_custom_card_andyblac_room_icon_color_on: yellow the you can also control the other icons In the same way, the full list of variables is listed in the guide here |
Beta Was this translation helpful? Give feedback.
-
also, for temperature label you can simply use - type: custom:button-card
template:
- custom_card_andyblac_room
name: "Salon"
styles:
card:
- background: url(/local/pictures/salon.jpg) center
- background-size: cover
tap_action:
action: navigate
navigation_path: salon
variables:
ulm_custom_card_andyblac_room_color: blue
ulm_custom_card_andyblac_room_use_label_icons: true
sensor_label_1: sensor.thermostat_salon_air_temperature the hope this helps. |
Beta Was this translation helpful? Give feedback.
-
ok, added more support -- added option to use Area info: with this you no longer need to specify an also, if you are using and as promise you can now also use # Office
- type: custom:button-card
view_layout:
grid-area: room10
template:
- custom_card_andyblac_room
tap_action:
action: navigate
navigation_path: office
variables:
ulm_custom_card_andyblac_room_area_id: office
ulm_custom_card_andyblac_room_use_area_picture: true
# ulm_custom_card_andyblac_room_color: rgb(245,90,49)
sensor_label_1: sensor.wiser_lts_temperature_office
sensor_label_2: sensor.wiser_lts_humidity_office
custom_2:
entity_id: climate.wiser_office
ulm_custom_card_andyblac_room_sensor_show_on_state_only: true
sensor_1:
entity_id: binary_sensor.office_door_contact
sensor_2:
entity_id: cover.office_window_shade
sensor_5:
entity_id: switch.office_sockets_1_left
tap_action:
action: toggle
sensor_6:
entity_id: switch.office_sockets_1_right
# ulm_custom_card_andyblac_room_sensor_color: rgba(245,90,49,0.4)
tap_action:
action: toggle
entity_3:
entity_id: light.office_dimmer
ulm_custom_card_andyblac_room_icon_color: rgba(var(--color-theme),0.5)
ulm_custom_card_andyblac_room_icon_color_bg: rgba(var(--color-theme),0.2)
ulm_custom_card_andyblac_room_icon_color_on: amber
ulm_custom_card_andyblac_room_icon_color_on_bg: rgba(var(--color-amber),0.3) please test by downloading from here |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
OK, please try the new beta, it should now use the original image and not the resized 512x512 version. |
Beta Was this translation helpful? Give feedback.
-
Hi,
First, thank you very much for these custom cards, exactly what I was looking for!
I wonder how can I change the opacity of the icons for entities 1 to 4 (the right side icons?)
I would like to have no opacity since I like to use background image on my room cards. With the actual opacity settings, the icons are barely visible when the entity is off. See attached picture, the lower card is the standard room card, the one on the top is yours.
Any idea?
Background image is applied using this
Here is the code used for this card:
Thanks
Beta Was this translation helpful? Give feedback.
All reactions