lovelace-mushroom
lovelace-mushroom copied to clipboard
[Feature]: Scene selector
Requirements
- [X] I have updated Mushroom to the latest available version
- [X] I did a search to see if there is a similar issue or if a pull request is open.
Is your feature request related to a problem?
It is not possible to select scenes
Describe the solution you'd like
It would be nice to have a button which opens a scene selector :)
Describe alternatives you've considered
No response
Additional context
No response
I've been using chips as a solution to this problem
Most of the complexity comes from the chips lighting up depending on which scene is active, which is done by referencing a text_input.
You could easily avoid that and just have a chip activate a scene.
YAML:
type: custom:mushroom-chips-card
chips:
- type: template
icon: mdi:lightbulb-off-outline
content: 'Off'
icon_color: |-
{% if states('input_text.active_scene_office') == 'off' %}
white
{% else %}
disabled
{% endif %}
tap_action:
action: call-service
service: input_text.set_value
target:
entity_id: input_text.active_scene_office
data:
value: 'off'
entity: office Off
- type: template
entity: scene.office_low
icon: mdi:brightness-4
icon_color: |-
{% if states('input_text.active_scene_office') == 'low' %}
#FFC896
{% else %}
disabled
{% endif %}
content: Low
tap_action:
action: call-service
service: input_text.set_value
target:
entity_id: input_text.active_scene_office
data:
value: low
- type: template
entity: office Max
icon: mdi:brightness-7
icon_color: |-
{% if states('input_text.active_scene_office') == 'max' %}
#FFC896
{% else %}
disabled
{% endif %}
content: Max
tap_action:
action: call-service
service: input_text.set_value
target:
entity_id: input_text.active_scene_office
data:
value: max
Thank you, but I really hate this YAML shit 😅 it is just an incredibly bad way for configuration and IMO one of the biggest downsides of HA, beside the general bad usability.
It could also be nice to have the scenes as buttons in a footer like available in the grid view.