Hi all!
I would kindly ask for some help. For two days I’m banging my head for this…
I have this config for card:
type: vertical-stack
title: LED Aura Control
cards:
- type: entities
entities:
- type: custom:mushroom-select-card
name: LED State
options:
- BREATHING
- FLASHING
- ALWAYS_ON
- ALWAYS_OFF
- GRADUAL_ON
- GRADUAL_OFF
entity: input_select.led_state
- type: custom:mushroom-number-card
name: LED Speed
entity: input_number.led_speed
min: 0
max: 255
- type: custom:mushroom-select-card
name: LED Color
options:
- RED
- BLUE
- PURPLE
entity: input_select.led_color
- type: custom:mushroom-number-card
name: LED Count
entity: input_number.led_count
min: 0
max: 255
- type: button
tap_action:
action: call-service
service: esphome.finger_set_aura_led
service_data:
state: >-
{% set mode_values = {
'BREATHING': '1', 'FLASHING': '2', 'ALWAYS_ON': '3', 'ALWAYS_OFF': '4', 'GRADUAL_ON': '5', 'GRADUAL_OFF': '6'} %}
{{ mode_values[states('input_select.led_state')] | int }}
speed: '{{ states(''input_number.led_speed'') | int }}'
color: >-
{% set color_values = { 'RED': '1', 'BLUE': '2', 'PURPLE': '3' } %}
{{ color_values[states('input_select.led_color')] | int }}
count: '{{ states(''input_number.led_count'') | int }}'
name: Apply LED Settings
icon: mdi:check
color: var(--primary-color)
Can’t get it to work… I get error: can’t call service esphome/finger_set_aura_led. expected int for dictionary value @ data[‘state’]
(this is translation from error to english sorry)