heisice / homebridge-mqtt-motionsensor Goto Github PK
View Code? Open in Web Editor NEWhomebridge-mqtt-motionsensor
License: MIT License
homebridge-mqtt-motionsensor
License: MIT License
Hello,
when a "RfRaw massage" (possible because portisch firmware on the Rf bridge) is transmittet, homebridge stops working. Error massage: "TypeError: Cannot read property 'Data' of undefined". I think this error comes from mqtt-motionssensor does not filter the RfRaw massages quit well. The skript only expects "rfReceived" massages to be transmitted. You can see this at index.js row 66. I am not able to solve this issue because i dont know much about this.. Using RfRaw is quit important to me, to get every outlet work. Thank you.
How does this actually work? I have PIR sensor on my pi zero, can I get it to work with this??
Hello i have Sonoff bridge rf and PIR (motion detector) In console I get
01:55:45 MQT: tele/Bridge/RESULT = {"RfReceived":{"Sync":12470,"Low":420,"High":1220,"Data":"D691DE","RfKey":"None"}}
And i configure accessory like this
{
"accessory": "mqtt-sonoffrf-receiver",
"name": "Motion",
"url": "mqtt://192.168.1.16", as this is my rpi ip
"topic": "tele/Bridge/RESULT", topic of my Bridge RF Is Bridge
"username": "ppp",
"password": "ppp", My password and username
"rfcode": "D691DE", the code form PIR
"rfkey": "None",
"ondelay": "time in ms while the sensor is active, the default is 10000", Do I have to change it ??
"accessoryservicetype": "'MotionSensor' (default) or 'StatelessProgrammableSwitch'"
}
it does not work and I get error
Apr 12 01:06:08 raspberrypi homebridge[13577]: [2018-4-12 01:06:08] [Motion] Initializing mqtt-sonoffrf-receiver accessory...
Apr 12 01:06:08 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE
Apr 12 01:06:08 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.
Apr 12 01:06:08 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.
the code was validated by son so this is not a problem.
Can you tell me what is wrong with my accessory??
Hi, I'm trying to realize your sensor using mqtt on a raspberry and an esp8266; I need a clarification about the following:
as subscriber, I use the string in the topic "home/livingroom/motionsensor", but what should I use a message to be published?
Thanks for your help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.