I have seen this error all over the place here but somehow I can’t apply the answers to my situation.
Like all the others I’d like to set a value based on a variable.
Below screenshot shows where I am coming from (point2) and what I want to do (point1)
I have tried quite a few variations, with quotes, without quotes, adding “data:”, whatever I found as proposed solution, but somehow don’t get any further.
In fact, I don’t understand why HA is complaining about a float in the first place? This is supposed to be an integer value but anyway, can’t get it to work in the UI and also not via the automation.yaml.
- id: '1736929362414'
alias: 'Discharge: Allow'
description: ''
triggers: []
conditions: []
actions:
- device_id: ecaf0cd09262b32282ffdb7fda3754b7
entity_id: 39b174fbc1f1572e371e9cb01a0d57e2
domain: number
type: set_value
value: "{{ states('input_number.batterymindischargesoc') | float }}"
- device_id: ecaf0cd09262b32282ffdb7fda3754b7
domain: number
entity_id: b8ae709d170ec3d19d6dd6447fd87f48
type: set_value
value: 20
…
Anyone got an idea what I might be missing?
Thanks
4 posts - 4 participants