Hi all,
I’ve searched and gone around in circles. This will be a simple issue for most of you, but I’m struggling
I need to create a switch that fires a HTTP request (192.168.2.1:8088/admin?profile=3) when the switch is on and fires a different HTTP request/value (192.168.2.1:8088/admin?profile=1) when off.
The response back from the website isn’t XML or JSON, it’s just a string, either:
signal=green
profile=3
lock=2
transport=0,0/1
Or:
signal=green
profile=1
lock=2
transport=0,0/1
I’m assuming I need a rest switch and rest binary sensor?
As the response back from the webserver is not XML or JSON, how do I simply check for the “profile=1” or “profile=3” in the data?
Thanks,
J.