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"}' \
http://192.168.1.1:8123/api/services/switch/turn_on
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 http://192.168.1.79:8123/api/services/switch/turn_on?api_password=password with type JSON and data {@outlet1_1} (only while Away, Night, or Home);
I also have seen this device handler : http://thingsthataresmart.wiki/index.php?title=URI_Switch
But I am not a programmer - I do not have the skillset to modify it for POST’s…
Are there any existing solutions available?
Thanks