Hi,
Trying to dynamically set the max charging current of my EV charger (Wallbox).
The official integration requires a number for this entity and I am getting this value using either a sensor template or a number template.
I don’t know how to write the code accordingly in my automation.
The line with the issue:
value: intensite_charge_max
The error message:
Message malformed: expected float for dictionary value @ data['value']
The whole code of the automation:
description: ""
mode: single
triggers:
- trigger: state
entity_id:
- schedule.charge_wallbox
from: "off"
to: "on"
conditions:
- type: is_plugged_in
condition: device
device_id: 32c07c1fcebb8b3ea13fc5618aff6f5e
entity_id: 88755145729a5980d908d9bae4d2b750
domain: binary_sensor
actions:
- type: turn_on
device_id: 98b1133c2a3ff690e5a6d6c59cf4b798
entity_id: bad869d26fa098ca8a5c8734069a6ff8
domain: switch
- repeat:
sequence:
- device_id: 98b1133c2a3ff690e5a6d6c59cf4b798
domain: number
entity_id: 9a282aa7773dd0acfa56b73eb469f313
type: set_value
value: intensite_charge_max
while:
- type: is_battery_level
condition: device
device_id: 32c07c1fcebb8b3ea13fc5618aff6f5e
entity_id: c6df260289cd13b6c5ce08846f07dc81
domain: sensor
below: 81
alias: Megane