Service call on number entity value-change

Hi there,

I have created a number template with which I want to set the charge-limitation of my Skoda EV.
The integration, which I am using is Skoda-Connect, which does provide a Service to do the same.

Here’s the service with which I can set the Charge-Limitation:

service: skodaconnect.set_charge_limit
data:
  limit: 50
  device_id: 2c1c0d706fe211bd09c09d56a282aecc

and this is the number-template I have created (based on reference here in the forum)

template:
  - number:
    - name: mycar_charge_limitation
      unique_id: 'mycar_charge_limitation'
      state: "{{ states('sensor.mycar_minimum_charge_level') }}"
      set_value:
      - service: skodaconnect.set_charge_limit
        data:
          limit: "{{ value }}"
          device_id: 2c1c0d706fe211bd09c09d56a282aecc
      step: '10'
      min: '10'
      max: '100'

but when I try to change the limitation by using the number slider, I am getting the following error in my logs.

Logger: custom_components.skodaconnect
Source: custom_components/skodaconnect/__init__.py:363
Integration: Skoda Connect (documentation, issues)
First occurred: 12:40:06 (1 occurrences)
Last logged: 12:40:06

Service call 'set_charge_limit' failed Charge limit "90.0" is not supported.

Using the service, and acknowleding the change with the button in the Service, everything is working - and the states('sensor.mycar_minimum_charge_level') does reflect the changed setting as expected.

Have I missed something?

thanks in advance
and with best regards,
Chris

What about:

limit: "{{ value | int(0) }}"

hm… still throwing an error in the logs :frowning:

Logger: skodaconnect.vehicle
Source: custom_components/skodaconnect/__init__.py:357
Integration: Skoda Connect (documentation, issues)
First occurred: 13:31:41 (1 occurrences)
Last logged: 13:31:41

Exception encountered while waiting for request status: Failure during get request status: 'TMB....7235'
Logger: skodaconnect.connection
Source: custom_components/skodaconnect/__init__.py:357
Integration: Skoda Connect (documentation, issues)
First occurred: 13:31:41 (1 occurrences)
Last logged: 13:31:41

Failure during get request status: 'TMB....7235'
Logger: custom_components.skodaconnect
Source: custom_components/skodaconnect/__init__.py:361
Integration: Skoda Connect (documentation, issues)
First occurred: 13:31:41 (1 occurrences)
Last logged: 13:31:41

Failed to execute service call 'set_charge_limit' with data '<ServiceCall skodaconnect.set_charge_limit (c:01GFB479VPDRP5R9F2NHV9N2SF): limit=70, device_id=2c1c0d706fe211bd09c09d56a282aecc>'

Is it a EV or PHEV vehicule ? because PHEV is limited to a max of 50 for this parameter… Maybe try with a value of 40 to see…

it is an EV - and I can change all this within the service directly - to any value up to 100%
But I will do another test

Seems to me now that the problem is within the integration… (Error code :

Failure during get request status: 'TMB....7235'

yep.
It does update the state - it just takes some time.
The integration is throwing the error immediately after changing the slider (value)… maybe, it is waiting for an immediate reply somehow.