Help Needed
Posted: Sat Mar 23, 2024 4:45 pm
Hi, hope someone has the time to help. I'm trying to set an action for an automation I want to do, but I think it needs a template which I'm no good at
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
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