Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


747

Member
  • Posts

    285
  • Joined

  • Last visited

About 747

  • Birthday March 22

Profile information

  • Gender
    Male
  • Country
    Sweden
  • Gateway/s
    Home Center 2

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

747's Achievements

Learner

Learner (2/8)

12

Reputation

  1. Thanks ivx, Ill try this when i get home to see that i get things in correct order. BR
  2. Ok, i finally got it working. Apparently it had to do with the polling (python code): poll_url = "https://bridge.danalockservices.com/bridge/v1/poll" payload = json.dumps({"id": job_id}) r = requests.post(poll_url, headers={'Authorization': 'Bearer ' + token, 'Accept': 'application/json', 'content-type': 'application/json'}, data=payload) I had from the beginning 12 iterations of polling and all looked fine (Waiting for "Succeeded") but when i lowered it to 6 and didnt care about the "Succeeded" response, just went ahead and try to lock/unlock it, then it works. Im probably doing something wrong and yes, since its asynchronous, i get printouts in the wrong order but at least its working now Many thanks for you help! BR
  3. Sorry, what do you mean by reqbin?
  4. Weird, when using the API tester then it works..
  5. Ok, many thanks for your help! Ill try your suggestion to see if i can figure out what is wrong. BR
  6. Now i got a 500 instead.. (internal error) After some re-tests, i still get 404
  7. {"operation":"afi.lock.operate","arguments":["lock"],"device":"XX:XX:XX:XX:XX:XX"}
  8. Yes, "afi.lock.get-state" works
  9. Yes, i can get both lock list and also its status (using https://bridge.danalockservices.com/bridge/v1/execute) But as soon as i try to lock it i get the 404 (And sometimes i have seen 500 also) BR
  10. Thanks ivx, but it seems i still get a 404.. BR
  11. Hi, Im trying to control a Danalock through a Danabridge and so far i can get the token and use it to retrieve my locks and its status but when trying to perform lock/unlock i get a 404 error. I have translated a python implementation but this last part is not working. The encoded json from python looks like this: payload = json.dumps({"device": serial, "operation": "afi.lock.operate", "arguments": [command]}) The command here is either "lock" or "unlock" but since its inside brackets im not sure how to translate it. "arguments": ["lock"] and "arguments": "[lock]" doesnt work. Does anyone have an idea how the syntax should be? My POST in lua looks like this: http:request('https://bridge.danalockservices.com/bridge/v1/execute',{ options = { method = 'POST', headers = { ['Accept'] = 'application/json', ['Content-Type'] = 'application/json', ['Authorization'] = 'Bearer ' ..token }, data = json.encode({ ["device"] = lockserial, ["operation"] = "afi.lock.operate", ["arguments"] = '["lock"]' }) }, BR
  12. I totally missed one thing that made my whole network work with almost 0 repeats (Before it had over 20% !). The nodes that keep having repeats needs to be removed/excluded, then reset to factory default and then re-included again. Maybe this is widely known but i had missed it.. I still have alot of "dead nodes" when using Cag014´s "Z-wave Range Test" scene but everyting works perfectly now. Maybe it can help others struggling with repeats in their network..
  13. Hi cag014, Ok, thanks for the info and your great scene BR
  14. Im struggling with alot of repeates in my z-wave network and when i run the "Z-Wave Range Test" i get alot of devices that has been removed but are still in routes tables of alot of nodes. Shouldn´t this get fixed when you run a "Mesh Network Reconfiguration"? The only way i have been able to remove some of these are to completely removed and re-include all devices that still has these ghost devices in their routes. Surely this must be something Fibaro can add when doing Mesh Reconfigurations, meaning remove all nodes in route before adding new ones? Some of these above has the same ghost device still in the route table on 6 - 8 nodes which means that i need to remove and re-include all of these to get rid of one.. BR
  15. I bought a USR-DR302 module from Aliexpress and connected it to my inverter using RS485 and can communicate with it from HC2.
×
×
  • Create New...