Comments (17)
You'll need to set up an MQTT client somewhere (I personally recommend installing Mosquitto on the same system you run Homebridge on), then set the HOST value to point to that. You can also set LOCATION and DEVICE_NAME to change the topic it publishes to, by default it will publish to myhome/dafang
.
I plan to try to write up some decent instructions after work today, but if you have any questions, I'm happy to try to help.
from homebridge-dafang-mqtt-republish.
I'm ignorant about these things.
if you can write the instructions exactly, I can follow them one by one.
thanks in advance for that.
from homebridge-dafang-mqtt-republish.
Okay, give me a few hours to finish working my day job and get something written up, and I'll reply here once I have that done.
from homebridge-dafang-mqtt-republish.
Thank you.
from homebridge-dafang-mqtt-republish.
Okay, I've written up a wiki page that includes fairly detailed instructions: https://github.com/Sunoo/homebridge-dafang-mqtt-republish/wiki/Configuring-Dafang-Hacks-Cameras-for-Homebridge
Please let me know if this is enough for you to get things configured. I'm happy to try to assist further if needed.
from homebridge-dafang-mqtt-republish.
that's pretty revealing. Thanks a lot
I'll try when I get home
from homebridge-dafang-mqtt-republish.
thanks for your supports worked smoothly
from homebridge-dafang-mqtt-republish.
Fantastic, glad I could help.
from homebridge-dafang-mqtt-republish.
notifications come a little late
is that normal ?
it comes after coming out of the camera's dial
from homebridge-dafang-mqtt-republish.
How late? In my testing, the alerts came almost the instant I waved my hand in front of the camera.
That said, if there is a delay, it’s probably your network or something else I have no control over, as there is no real programmed in delay or buffering in either of the plugins. Just the cooldown in this plugin, which wouldn’t delay the start of the initial motion alert.
from homebridge-dafang-mqtt-republish.
about 15 seconds after the action
{
"mqtt": "127.0.0.1",
"topic": "homebridge/motion",
"cameras": [
{
"name": "Giris",
"motion": true,
"motionTimeout": -1,
"videoConfig": {
"source": "-re -i rtsp://192.168.1.112:8554/unicast",
"stillImageSource": "-i rtsp://192.168.1.112:8554/unicast",
"vcodec": "copy",
"audio": false,
"debug": true
}
}
],
"platform": "Camera-ffmpeg"
},
{
"cameras": [
{
"name": "Giris",
"dafang_topic": "myhome/dafang",
"homebridge_topic": "homebridge/motion",
"cooldown": 30
}
],
"name": "Dafang MQTT",
"server": "127.0.0.1",
"port": 1883,
"platform": "dafangMqtt"
}
]
}
from homebridge-dafang-mqtt-republish.
15 seconds is a lot, and certainly nothing in either this plugin or Camera FFmpeg would explain that.
If you run Homebridge in debug mode (if using Config UI X, the option is under Homebridge Settings then Startup Options), then watch the log (the squiggly line in Config UI X), do the log entries about seeing motion messages happen quickly, or are any of them also delayed?
You could also make sure that the camera is seeing the motion by going to the camera’s Motion Detection settings and turning on “Display motion indicator”. Then, while watching the video stream a colored dot will appear in the image when the camera see’s motion. If that dot doesn’t appear, it won’t send any messages to Homebridge.
from homebridge-dafang-mqtt-republish.
as you said everything
do you want to connect and check
from homebridge-dafang-mqtt-republish.
I’m sorry, I don’t understand what you mean.
from homebridge-dafang-mqtt-republish.
can you contact and check with teamviewer
from homebridge-dafang-mqtt-republish.
I’m sorry, I’m just not really comfortable doing that.
from homebridge-dafang-mqtt-republish.
thanks for your help
from homebridge-dafang-mqtt-republish.
Related Issues (8)
- "Multiple cameras configured" error, can't figure out where they are! HOT 26
- How to set up an MQTT broker or is this plugin a broker itself? HOT 2
- Feature request from homebridge-dafang HOT 3
- Xiaofang 1S not reporting any motion via notification HOT 15
- Saving snapshots and recordings HOT 10
- HomeKit not getting motion detection HOT 7
- Add "recalibrate" accessory switch? HOT 9
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 homebridge-dafang-mqtt-republish.