lambolighting

Home Assistant Room Card

Aug 6th, 2025
826
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.81 KB | Source Code | 0 0
  1. type: custom:bubble-card
  2. card_type: button
  3. button_type: slider
  4. modules:
  5.  - default
  6.   - get_state_attribute
  7.   - sub_button_coloring
  8.   - main_button_coloring
  9.   - subbutton_below
  10.   - type
  11. entity: light.yeelight_color_0x7e3e200
  12. name: Living Room
  13. icon: mdi:sofa-outline
  14. show_attribute: true
  15. get_state_attribute:
  16.   - entity: sensor.living_room_temp_sensor_temperature
  17.   - entity: sensor.living_room_temp_sensor_humidity
  18. sub_button:
  19.   - entity: binary_sensor.entrance_door_sensor_contact
  20.     show_name: false
  21.     show_last_changed: false
  22.     show_last_updated: false
  23.   - entity: light.yeelight_color_0x7e3e200
  24.     tap_action:
  25.       action: toggle
  26.     icon: mdi:desk-lamp
  27.     light_background: true
  28.     state_background: true
  29.   - entity: light.lr_decorative_lamp
  30.     icon: mdi:track-light
  31.     state_background: true
  32.     tap_action:
  33.       action: toggle
  34.   - entity: media_player.lg_webos_tv_qned756ra
  35.     icon: mdi:television
  36.     state_background: true
  37. sub_button_coloring:
  38.   button_1:
  39.     entity: light.bedroom_lights_group_bedroom_lights
  40.     on_color: "#A699C0"
  41.     on_icon_color: "#4D4356"
  42.   defaults:
  43.     off_color: "#353535"
  44.     off_icon_color: "#DBDBDB"
  45.   button_2:
  46.     entity: light.bed_side_lights
  47.     on_color: "#8B7781"
  48.     on_icon_color: "#E5C4D3"
  49.   button_3:
  50.     entity: media_player.lg_webos_tv_qned756ra
  51.     on_color: "#415671"
  52.     on_icon_color: "#97B4C2"
  53. main_button_coloring:
  54.   entity: light.yeelight_color_0x7e3e200
  55.   on_color: "#DEAEA9"
  56.   on_icon_color: "#DEAEA9"
  57. grid_options:
  58.   columns: 6
  59.   rows: 2
  60. card_layout: large-sub-buttons-grid
  61. allow_light_slider_to_0: true
  62. light_transition: true
  63. light_transition_time: "400"
  64. button_action:
  65.   tap_action:
  66.     action: navigate
  67.     navigation_path: "#living-room"
  68. tap_action:
  69.   action: navigate
  70.   navigation_path: "#living-room"
  71.  
Advertisement
Add Comment
Please, Sign In to add comment