I am trying to use an automation to assign a value to a variable which the automation uses in a call to a rest_command defined in configuration.yaml.
This is the automation:
id: update CHCurve when change
trigger:
platform: state
entity_id: sensor.chcurve
action:
Maybe I need to set the content of dvi_parm to the combined string first and then parse it to the rest_command in a second step. Seems like it is the attempt to combine a variable with a string value in one go as I am parsing the result?
It’s unclear to me if that’s exactly what you want because what you requested doesn’t have a colon after CHCurve yet your two examples do contain a colon. So is it with or without a colon?
The string indicators probably can’t be removed and should not be an issue.
It is just an indicator used internally in HA and not send to the outside services.
What are you using as a reference to confirm the transmitted payload includes literal single quotes? Are you able to observe the actual payload at the receiving end?
The contents of params, shown in your first post, is in YAML format. It’s not unusual for YAML to depict a string value wrapped with quotes. However, the quotes aren’t necessarily part of the payload.