# How do I configure call service node in NR to do this HA service call?

**URL:** <https://discourse.nodered.org/t/how-do-i-configure-call-service-node-in-nr-to-do-this-ha-service-call/59211>\
**Category:** General\
**Tags:** home-assistant\
**Created:** [2 March 2022 05:35 UTC](https://discourse.nodered.org/t/how-do-i-configure-call-service-node-in-nr-to-do-this-ha-service-call/59211 "2022-03-02T05:35:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielbrunt57](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/danielbrunt57/32/42815_2.png) [@danielbrunt57](https://discourse.nodered.org/u/danielbrunt57)\
**Post date:** [2 March 2022 05:35 UTC](https://discourse.nodered.org/t/how-do-i-configure-call-service-node-in-nr-to-do-this-ha-service-call/59211/1 "2022-03-02T05:35:33Z")

</div>

```auto
service: zwave_js.set_config_parameter
data:
  parameter: Default ON Value
  value: '{{ states("input_number.kitchen_blind_1")|int }}'
target:
  entity_id: cover.kitchen_blind_1

```

This is not working...

```auto
[{"id":"56f4aaadabef6fc9","type":"api-call-service","z":"3a2942f23b8df6dc","name":"Default ON Value","server":"c879ac61.99cd1","version":5,"debugenabled":false,"domain":"zwave_js","service":"set_config_parameter","areaId":[],"deviceId":[],"entityId":["cover.kitchen_blind_1"],"data":"{\tparameter: 'Default ON Value',\tvalue: $parseInteger($globalContext('homeassistant.homeAssistant.states[\"input_number.kitchen_blind_1\"].state'), '#0')\t} ","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1190,"y":240,"wires":[[]]},{"id":"c879ac61.99cd1","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30"}]

```

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/0/208839cb0cd72f74099249e771f360c775ed1673.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/f/3ff6a154f49f5f6b45399d9da24d65bb723081f5.png)

---

<div class="post-metadata">

**Author:** ![danielbrunt57](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/danielbrunt57/32/42815_2.png) [@danielbrunt57](https://discourse.nodered.org/u/danielbrunt57)\
**Post date:** [2 March 2022 06:03 UTC](https://discourse.nodered.org/t/how-do-i-configure-call-service-node-in-nr-to-do-this-ha-service-call/59211/2 "2022-03-02T06:03:33Z")

</div>

{  
"parameter": "Default ON Value",  
"value":  
parseInteger($globalContext('homeassistant.homeAssistant.states["input\_number.kitchen\_blind\_1"].state'), '#0')  
}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [16 March 2022 06:03 UTC](https://discourse.nodered.org/t/how-do-i-configure-call-service-node-in-nr-to-do-this-ha-service-call/59211/3 "2022-03-16T06:03:47Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
