It looks like it should be possible, though I'm not sure your CURL command is valid (did you mean -X POST, maybe?). A POST will normally also come with a body, which I don't see above but you might see listed as "request" or "request body" or similar in your browser's Network Console (though it could be blank--I'm not sure what information it could need that is not already in that URL, this being the kind of data that would often be included there).
You can always create a rule with just this action, install it, and use the Run Actions button in the interface to test it.
I found this CURL command example on reddit post claiming it works.
i have no idea how to test this CURL command. I tried to enter it into Windows CMD console but it generated an error "url is not defined". I have only Windows PC.
Here is an example how to configure Home Assistant (I actually have one running)
No.
Unfortunately I have no idea what it is and how to run it. I have only Windows PC handy.
And I have no idea how to test the suggested CURL command from Windows PC.
Likely because it doesn't really work. Perhaps that syntax is valid in some curl implementation. I would try the modification I suggested above (plus at least getting rid of the "smart quotes"):
curl -X POST https://device.legacy.deltafaucet.com/api/device/toggleWater\?deviceId=XXXXX -H "Authorization: Bearer XXXXX"
I would suggest the Home Assistant forum for help with Home Assistant. For Hubitat, the more I think about this, the less I think RM will work. I don't think there is a way to specify headers, which you appear to need. However, there is a community driver that will let you send HTTP commands, including POST, and does have options for headers:
I would suggest that option instead and see if you can figure out the appropriate configuration based on its readme and the information you have.
OK. I tried the modified CURL command. This one did not throw any errors but also did not work
(nothing was happening). I guess, first I have to make this CURL command working.
And of course, I am trying to learn and understand HA configuration scripting.
Right now I have this integration working with help of Alexa. I "like" clouds a lot. So, getting rid
of Alexa (it still will be Delta cloud) will be very nice. I am OK if I can make things working with HA
but direct control from HE is preferable. Eventually I will try the suggested HE driver but first
I have to get that CURL command working.
I have a backslash before the question mark because this is needed on macOS, where I was testing, to escape this character. You may not need this on Windows, or the escape character may be different (I don't recall and don't have a good way to test right now). You could also likely avoid these differences by using WSL if you aren't now, though that might be overkill if you aren't already.
But yes, figuring out a CURL command that works first would give you a better chance of making this work on Hubitat -- or anywhere.
I am sure Alexa could be out of equation (at least one cloud less).
Maybe together we can make this happens.
I came across this discussion: https://www.reddit.com/r/homeassistant/comments/101lp3w/controlling_delta_voice_iq_faucet_from_ha/
(I am not sure, it is still somewhat active but I even tried to ask a question, let me see if the answer will come.)
Here is a an instruction how to retrieve DEVICE_ID and TOKEN (token happens to be extremely long). Delta VoiceIQ API for homeassistant · GitHub
And the above link has an example for Home Assistant configuration.yml
I do have Home Assistant and will be OK to use it but of course, direct HE control is more preferable. As we speak I am trying to get this CURL command working but so far no luck.
Here is a response:
Somewhere in a middle there is a line:
< HTTP/1.1 400 Bad Request
I am not an expert in all these things but does it mean something is not right with a CURL command?
Also when I am playing with Delta web page the command has &toggle=on appended after <devoce_id> When i tried to add this to my CURL command there is some sort of error message at the end:
'toggle' is not recognized as an internal or external command,
So, I am not sure what is wrong with CURL command but still trying ...
I don't mind to use a HA but in the suggested configuration script i don't know (yet) where to enter real DEVICE_ID and TOKEN values.
Would would be ideal I think is if someone could create a driver for the device using the API information… if one hasn’t already been created… I’ll do a new post specifically for that - might be easier than trying to figure out how to do it with Curl with I don’t know anything about either…