HTTP Post with JSON


I have an RPi with a 433Mhz tx, running Home Assistant. I have worked out the curl command to turn my RF sockets on/off:

curl -v -X POST -H "x-ha-access: passwordgoeshere" \
-H "Content-Type: application/json" \
-d '{"entity_id": "switch.rfoutlet1_1"}' \

I have tried to use a webCoRE Piston (I’m not sure if you can use LAN IPs in webCoRE?) to achieve this:

do  Make a POST request to with type JSON and data {@outlet1_1} (only while Away, Night, or Home); 

I also have seen this device handler :

But I am not a programmer - I do not have the skillset to modify it for POST’s…

Are there any existing solutions available?