Hello together,
i try to send a value by click on the action_button.
I don’t get it!!
my Yaml:
type: custom:slider-button-card
entity: input_number.lichtnummer
slider:
direction: left-right
background: solid
use_state_color: false
use_percentage_bg_opacity: true
show_track: false
toggle_on_click: false
force_square: false
show_name: true
show_state: false
compact: false
icon:
show: true
use_state_color: true
tap_action:
action: more-info
icon: ''
action_button:
mode: custom
icon: mdi:power
show: true
show_spinner: true
tap_action:
action: call-service
service: input_number.set_value
service_data:
entity_id: input_number.lichtnummer
value: |
{% if is_state('input_number.lichtnummer', '0') %}
100
{% else %}
0
{% endif %}
give me the error message:
Error calling service input_number/set_value. expected float for dictionary value @ data[‘value’]
when i try a float number like
value: |
{% if is_state('input_number.lichtnummer', '0') %}
100.0
{% else %}
0.0
{% endif %}
i get the same error.
Does anyone know how to do this?
Just to toggle between 0 or 100 to input_number.lichtnummer by click on the action_button?
Reading the doc doesn`t help me,
Reading Forum with similar problems-> its so incredibly difficult to understand.
ChatGpt → LOL
Greetings Patrick