
I would like, depending on the Agile price, to use the current battery SoC value to set the same value for min SoC on grid, so my battery stops discharging during that period.
This is how far I've got (not very far!) but it doesn't input the value for min SoC on grid. I've spent hours looking at the code here & trying various ways, but can't work it out due to my lack of knowledge with templates
service: input_number.set_value
data_template:
value: "{{states('sensor.battery_soc')}}"
target:
entity_id: number.min_soc_on_grid
Thanks, Chris