Coder Social home page Coder Social logo

Comments (6)

Garfonso avatar Garfonso commented on July 1, 2024 2

You can get it working currently using the Simple-Api Adapter. You can even have both relais doing something different. :-)

  • Add two HTTP calls like this in Doorbird (Administration -> HTTP(s) Calls): http://IP:8087/set/javascript.0.States.DoorBirdRelais1?value=true (adjust IP, ggf. Port = simple Api Port and state to your liking. Add a second one with a different datapoint, for example DoorBirdRelais2). Name them "Relais1"/"Relais2".
  • Configure Doorbird to do the HTTP call when Relais is pressed (Further down -> "Expert settings" -> Relais -> "Zeitplan für Folgeaktionen" = "Timetable for secondary actions" or something in english? -> select HTTP(s) calls on the top left -> select "Relais1" (or "Relais2" for the second one) in the middle and select all timeslots (or not, if you don't want it to always happen)
  • in ioBroker create the objects (for example javascript.0.States.DoorBirdRelais1 and javascript.0.States.DoorBirdRelais2)

Then you can use a script like that (or anything else -> but I'd recommend using a script to set the relais to false after a short time):

//Doorbird Relais1
on({id:"javascript.0.States.DoorBirdRelais1", val: true}, function (obj) {
        log("Relais1 opened");
        //do something here, for example open Door & Save pictures.

        //reset after some seconds
        setStateDelayed("javascript.0.States.DoorBirdRelais1", false, true, 10000); 
});
//Doorbird Relais2
on({id:"javascript.0.States.DoorBirdRelais2", val: true}, function (obj) {
        log("Relais2 opened");
        //do something here, for example open another Door & Save pictures.

        //reset after some seconds
        setStateDelayed("javascript.0.States.DoorBirdRelais2", false, true, 10000); 
     }
});

Of course it would still be nice to have that in the adapter to make setup easier. But you can still today avoid buying additional hardware. :-)
Feel free to ask, if you need more help.

BTW: This is not using the legacy api anymore and a different approach from what I posted above. Can you configure these URLs using the API? -> should be straight forward then, not?

from iobroker.doorbird.

BuZZy1337 avatar BuZZy1337 commented on July 1, 2024

Hi,

thank you! I will implement it as soon as possible! 👍 ☺️

from iobroker.doorbird.

frank2604 avatar frank2604 commented on July 1, 2024

I would be also very happy to have the relais events in the ioBroker objects. That would save 268 EUR for the equivalent doorbird hardware for secure opening the door.

from iobroker.doorbird.

frank2604 avatar frank2604 commented on July 1, 2024

Thanks! Works fine. What cost me an hour and makes me crazy: If the favorites for the simple-api adapter in the doorbird app stands in alphabetical order above the doorbird adapter favorites. The doorbird adapter try's zu "repair" the favorites (changes the port and other parts of the http call. So everyone who will implement this solution make sure that the new favorites are below the doorbird favs.

from iobroker.doorbird.

aldoa1 avatar aldoa1 commented on July 1, 2024

Thanks for this solution! It works!

My http call:
http://192.168.167.3:8087/set/0_userdata.0.DoorBirdRelais1?value=true

This works only in the local network.

Is it possible with Homekit to control a variable via url?

from iobroker.doorbird.

OberfragGER avatar OberfragGER commented on July 1, 2024

Thanks for this solution! It works!

My http call: http://192.168.167.3:8087/set/0_userdata.0.DoorBirdRelais1?value=true

This works only in the local network.

Is it possible with Homekit to control a variable via url?

Wenn du den Schalter in Homekit (via Yakha) anlegst, kein Problem.
Allerdings musst du soweiso Homekit von extern (via VPN) erreichbar machen. Das geht meines Wissens nur mit einem Homepod oder AppleTV.

from iobroker.doorbird.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.