Hi all, after some help. I’m sure this really simple but I can’t work it out (although I think I have been close on a few occasions).
On my Victron inverter (already integrated into HA), I can set the grid setpoint to control how much energy I want to export (i.e. 0, -1000, -2000 watts etc). On my dashboard I have some ‘hard coded’ button values which calls an automation which sets the value, this works fine but I will have loads of buttons for each negative setpoint, and want I really want is a drop-down box (input_select) to choose a value and then click a‘Set’ button. I’ve created a selection helper (NegSetpoint) with my values but I can can’t figure out how to use the selected value in my automation?
This is my yaml, essentially I’m trying to get the value in my iPhone notification message “{{ states(‘input_select.negsetpoint’) }}” into the value of the action?
alias: Victron_Grid_Setpoint_0
description: ""
triggers: []
conditions: []
actions:
- device_id: 3c585aac0331c3386bc22f0abeb16cce
domain: number
entity_id: 8c8cbe44291627021e759b4f475697e7
type: set_value
value: 0
enabled: true
- action: notify.mobile_app_chriss_iphone
metadata: {}
data:
message: Victron grid setpoint set to 0 {{ states('input_select.negsetpoint') }}
mode: single
Hi tom, thanks for you reply. My thinking is rather than having a separate button for each individual setpoint, I instead choose from the drop-down help and then hit ‘Set’ button. This way I only have 2 controls on my dashboard to set the setpoint.
Looking at your yaml above, I can’t see how that runs the action to set the negative setpoint on the inverter. The iPhone notification is just in my yaml as a test to see if I could get the value my input_select help.