-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 207 on Ring set value (alarm) #8
Comments
Ive been getting something similar ever since I moved my PC to a new house. I can list accessories but when I try to set I get <Response [207]> |
I have a solution via curl curl -X PUT http://192.168.1.156:51728/characteristics --header "Content-Type:Application/json" --header "authorization: HID-DD-EN" --data "{"characteristics":[{"aid":2,"iid":11,"value":1}]}" replace the ip/port with your homebridge IP/port Value for mode : |
Judging by @multinet33's comment you should be able to do: python3 hs.py -s Alarm 3 # Disarmed
python3 hs.py -s Alarm 0 # ArmedHome
python3 hs.py -s Alarm 1 # ArmedAway Let me know if it works. |
I have the exact error codes when attempting to set a position on blinds:
As an aside while I was debugging, I seem to also be getting an error when attempting to use the
|
I have the same problem. Anyone have a solution?
And the log files are empty except for:
|
OK, the debug error was because I wasn't running the latest Python3 (now running 3.10.5). Here's the debug logs: homescript_debug_2022.08.18.log |
Found the problem for trying to set a Nest thermostat temperature. setStates is hardwired to use a valueIndex of 0, where it should be using a valueIndex of 2 (in my case) because that's the 'Target Temperature'.
|
In my jaunts though these aid/iid data structures, I learned not to rely on the array index being deterministic, but rather I have to loop over the array index until I find the appropriate iid (which is I believe deterministic). |
Absolutely. I would iterate to find the correct IID or a description of "Target Temperature". |
I don't see "type" in that data structure. I believe "type" is the field to be looking for. "Type" is unique to the item. Here's some Perl code example snippets.
… |
Hello
I'm using ring plugin under hombridge i'ts ok
Now I want to automate my alarm mode via script and i'm using homescript
It is correctly installed because when I run python3 hs.py -l I get all my accessories :
pi@domoticz:~$ python3 hs.py -l
Accessory/Group not found.
Here are a list of accessories:
Alarm security-panel
Base_Station hub.redsky
Baie_vitree sensor.contact
Pavé_numérique_entree security-keypad
Salle_à_manger sensor.motion
Salon Indoor Cam (stickup_cam_mini)
Now I can get the mode for Alarm :
pi@domoticz:~$ python3 hs.py -g Alarm
Alarm [{'iid': 10, 'description': 'Security System Current State', 'value': 3}, {'iid': 11, 'description': 'Security System Target State', 'value': 3}]
But now i don't now how to set the value for alarm mode (target state i believe)
I get the value for each mode :
Disarm : 3
Home: 0
Away : 1
I tried multiple things but I get every time this
<Response [207]>
Alarm Error: -70404
thans for all
The text was updated successfully, but these errors were encountered: