Hi, I have a value stored in a Helper name victron_acpowersetpoint that I edit through the front-end, and when it changes, the value need to be sent through MQTT. I tried the following, which is not working:
alias: Set AcPowerSetpoint
description: ''
trigger:
- platform: state
entity_id: input_select.victron_acpowersetpoint
condition: []
action:
- service: mqtt.publish
data:
topic: input_select.victron_acpowersetpoint
qos: '1'
payload_template: '{{trigger.payload}},{{ input_select.victron_acpowersetpoint }}'
mode: single