I really need the [ ] in my URL, is there any work around ?
is there away to edit this in the backend? maybe this is the option to fix this the problem till they fix it?
I really need the [ ] in my URL, is there any work around ?
is there away to edit this in the backend? maybe this is the option to fix this the problem till they fix it?
Use URLEncode:
%5D = ]
%5B = [
my only guess, hubitat dose not understand url encoding
We don't touch the url, just use it in httpGet.
What you are seeing there in the actions state is not what is relevant, and has only to do with how the action is displayed (for which I've discovered that it doesn't display brackets in a URL, but should -- bug fix coming for that). What is relevant is the setting called 'httper.n' (n a number).
See the setting for httper.n That is what is passed to httpGet()
is there anything I can do to make this work?
in a browser: http://192.168.50.117/cgi-bin/configManager.cgi?action=setConfig&RecordMode[0].Mode=1
works, but for some reason RM it dose not?
I don't know. I will poke around with some logging to see if the string is being sent in the httpGet() in that form or not, using your exact string.
thank you..
that url tells my security camera to start recording when there is motion, if I can get it working I will be very happy.. I will no longer need to run a computer with blue irus .
This is as far as I can go in RM, where it works as expected:
Next question is for one of the platform engineers, to see if that httpGet actually uses that uri as is or not.
cool, I'm not that good at all what your doing to figure it out.. I just thought if I can submit that url using a browser then RM can also.. just not sure why RM is not.
Have you tried @ogiewon's HTTP Momentary Switch as a possible workaround?
We are investigating a bit deeper.
thank you
Please post a screenshot of the Settings portion of that rule's App Status page. We setup a web server to show what was being sent by RM, and it sends that uri exactly as you have it.
2021-10-16 18:42:58 10.40.45.58 GET /cgi-bin/configManager.cgi action=setConfig&RecordMode[0].Mode=1 80 - 10.40.45.133 Apache-HttpClient/4.5.13+(Java/1.8.0_221) - 404 0 2 6
Do you have multiple VLANs setup? Are you sure your hub and this device are on the same lan?