Hi,
I wanted to have something on my view to initiate my Hue Scenes and have (some how) managed to produce this:
I’m quite pleased with it, and it actually works, which is always nice.
Would anyone have the full-res images for the Hue Scene Gallery, these are just screenshots from the app.
Also, in edit mode, the images appear to be jumping out of the card and I’m unsure if this will cause problems elsewhere:
This is my current code, if anyone could help me improve it I’d be most grateful!
type: vertical-stack
title: Hue Scene Selector
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
color: rgb(28, 128, 199)
show_icon: false
styles:
card:
- height: 165px
- width: 258px
- background-image: url("/local/pics/ArcticAurora.jpeg")
- background-repeat: no-repeat
- background-size: 258px 165px
tap_action:
action: call-service
service: hue.hue_activate_scene
service_data:
scene_name: arctic aurora
group_name: Study
dynamic: true
- type: custom:button-card
tap_action:
action: call-service
service: hue.hue_activate_scene
service_data:
scene_name: Frosty Dawn
group_name: Study
dynamic: true
styles:
card:
- height: 165px
- width: 258px
- background-image: url("/local/pics/FrostyDawn.jpeg")
- background-repeat: no-repeat
- background-size: 258px 165px
- type: custom:button-card
tap_action:
action: call-service
service: hue.hue_activate_scene
service_data:
scene_name: Galaxy
group_name: Study
dynamic: true
styles:
card:
- height: 165px
- width: 258px
- background-image: url("/local/pics/Galaxy.jpeg")
- background-repeat: no-repeat
- background-size: 258px 165px
- type: horizontal-stack
cards:
- type: custom:button-card
tap_action:
action: call-service
service: hue.hue_activate_scene
service_data:
scene_name: Moonlight
group_name: Study
dynamic: true
styles:
card:
- height: 165px
- width: 258px
- background-image: url("/local/pics/Moonlight.jpeg")
- background-repeat: no-repeat
- background-size: 258px 165px
- type: custom:button-card
tap_action:
action: call-service
service: hue.hue_activate_scene
service_data:
scene_name: Painted Sky
group_name: Study
dynamic: true
styles:
card:
- height: 165px
- width: 258px
- background-image: url("/local/pics/PaintedSky.jpeg")
- background-repeat: no-repeat
- background-size: 258px 165px
- type: custom:button-card
tap_action:
action: call-service
service: hue.hue_activate_scene
service_data:
scene_name: Winter Mountain
group_name: Study
dynamic: true
styles:
card:
- height: 165px
- width: 258px
- background-image: url("/local/pics/WinterMountain.jpeg")
- background-repeat: no-repeat
- background-size: 258px 165px