This is an example:
In my configuration.yaml:
input_boolean:
close_blinds:
name: Close Blinds
initial: off
In my scripts.yaml:
close_blinds_google:
alias: Close the blinds
sequence:
- service: input_boolean.turn_on
data:
entity_id: input_boolean.close_blinds
In node red, I have:
[{"id":"6c7f8617.f65618","type":"tab","label":"Example","disabled":false,"info":""},{"id":"31d9dea9.f2bda2","type":"api-call-service","z":"6c7f8617.f65618","name":"Close Blinds","server":"b9ff79d7.164bf8","service_domain":"remote","service":"send_command","data":"{\"entity_id\":\"remote.harmony_hub\",\"device\":\"59433490\",\"command\":\"down\"}","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":730,"y":260,"wires":[["762e5bd4.5a3bf4"]]},{"id":"e5b45401.423288","type":"server-state-changed","z":"6c7f8617.f65618","name":"","server":"b9ff79d7.164bf8","version":1,"entityidfilter":"input_boolean.close_blinds","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":300,"y":260,"wires":[["bb6379bf.150348"]]},{"id":"bb6379bf.150348","type":"switch","z":"6c7f8617.f65618","name":"On?","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":560,"y":260,"wires":[["31d9dea9.f2bda2"]]},{"id":"762e5bd4.5a3bf4","type":"api-call-service","z":"6c7f8617.f65618","name":"Reset State","server":"b9ff79d7.164bf8","version":1,"service_domain":"input_boolean","service":"turn_off","entityId":"input_boolean.close_blinds","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":950,"y":260,"wires":[[]]},{"id":"b9ff79d7.164bf8","type":"server","z":"","name":"Home Assistant"}]
Hope that makes sense.