Hello,
I am trying to set a value for my UDI Isy994i controller. I have an Entity, input_number.box1, as the input for service: isy994.set_variable. I am using the following yaml code in a Button Card.
show_name: true
show_icon: true
type: button
tap_action:
action: call-service
service: isy994.set_variable
data:
value: '{{ input_number.box1 | int }}'
isy: HOME
name: HA.Integer_String1
target: {}
icon: mdi:numeric-0-box-multiple-outline
name: ISY994i HA.Integer String 1 Update
When I press the button I get the following (int) Integer error:
Failed to call service isy994/set_variable. expected int for dictionary value @ data['value']
If I try to use a random value, I get the same error:
value: '{{ range(0,255) | random | int }}'
When I use a hard value like:
value: 2000
or
value '2000'
I do not get an integer error.
I was wondering if I am missing something like the value format, or does the service: isy994.set_variable, only except hard data values?
Thank you…