Node-RED: How to properly turn off ZWave water main shutoff

I’m trying to figure out how properly toggle a ZWave Water Main shutoff valve i installed.

I have it connected and added to my HASS instance. I’ve monitored the “Events: All” debug info and can see that when I press the button on the shutoff valve itself, the State changes are visible in NodeRED and goes from Off to On.

However, I’m having a heck of a time trying to get to work in an automation routine.

I setup a “Call Service” action with Data of { entity_id: switch.water_main_shutoff}, and calling the service turn_off like other switches I have.

However, debug panel is giving me the error "JSON parse error in settings parser" as seen in this screenshot:

image

What’s going on?

change data to:

{ “entity_id”: “switch.water_main_shutoff” }

Doh! Thank you. I’ve been tearing my hair out over this.

I had lots of JSON issues in the past … until this page become my best friend :grinning:

I used if for all kind of JSON formating and verification!