Comments (6)
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.
Hi,
thank you! I will implement it as soon as possible! 👍
from iobroker.doorbird.
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.
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.
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.
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)
- Suggestion to use Doorbird client library HOT 3
- RELAY STATUS HOT 1
- Doorbird connection error HOT 6
- Integration of Audio Playsound
- Update stable version in repo from 1.3.0 to 1.3.1 HOT 2
- Missing handling for empty favorite HTTP list HOT 1
- AxiosError: Request failed with status code 401 HOT 15
- Error in Parsing Schedules: RangeError: Maximum call stack size exceeded HOT 1
- Fehlende Bilder bei Mehrparteienanlage
- js-controller (>=4.1.0): 4.0.24 HOT 6
- Adapter startet nicht nach Update auf V1.1.1 HOT 5
- Error in Parsing Schedules: RangeError: Maximum call stack size exceeded HOT 29
- "ListenOnAllInterfaces" Not working HOT 1
- Doorbell.1.trigger springt auf True bei Codeeingabe HOT 4
- Eigene HTTPS Aufrufe hinzufügen HOT 7
- Update stable version in repo from 1.2.3 to 1.2.4 HOT 3
- no snapshot available in /opt/iobroker/iobroker-data/doorbird.0.snap.jpg HOT 3
- Update stable version in repo from 1.2.4 to 1.3.0 HOT 2
- send doorbird photo via telegram seems to be a bit tricky HOT 6
- [Feature Request] Steuerung von Peripherie (Gong) HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iobroker.doorbird.