Comments (11)
Please start homekit2mqtt with the -v debug
option and paste your command line and the log output here.
from homekit2mqtt.
jelimoore@Misc:~$ homekit2mqtt -v debug -m /usr/lib/node_modules/homekit2mqtt/homekit2mqtt.json -u "tcp://127.0.0.1:1883"
2016-10-21 09:07:12.468 <info> homekit2mqtt 0.4.7 starting
2016-10-21 09:07:12.682 <info> loading HomeKit to MQTT mapping file
/usr/lib/node_modules/homekit2mqtt/homekit2mqtt.json
2016-10-21 09:07:12.683 <info> mqtt trying to connect tcp://127.0.0.1:1883
2016-10-21 09:07:12.698 <info> using hap-nodejs version 0.4.11
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister>
2016-10-21 09:07:12.857 <debug> addBridgedAccessory Lightbulb Licht Garten
2016-10-21 09:07:12.861 <debug> mqtt subscribe Lightbulb1/status
2016-10-21 09:07:12.864 <debug> addBridgedAccessory Lightbulb Lightbulb2
2016-10-21 09:07:12.865 <debug> mqtt subscribe Lightbulb2/status
2016-10-21 09:07:12.865 <debug> mqtt subscribe Lightbulb2/status/Brightness
2016-10-21 09:07:12.866 <debug> addBridgedAccessory Lightbulb Lightbulb3
2016-10-21 09:07:12.867 <debug> mqtt subscribe Lightbulb3/status
2016-10-21 09:07:12.867 <debug> mqtt subscribe Lightbulb3/status/Brightness
2016-10-21 09:07:12.867 <debug> mqtt subscribe Lightbulb3/status/Hue
2016-10-21 09:07:12.868 <debug> mqtt subscribe Lightbulb3/status/Saturation
2016-10-21 09:07:12.868 <debug> addBridgedAccessory Switch Steckdose Fernseher
2016-10-21 09:07:12.869 <debug> mqtt subscribe Switch/status
And when I change a value:
2016-10-21 09:08:25.064 <debug> < hap set Steckdose Fernseher On 0
2016-10-21 09:08:25.064 <debug> > mqtt Switch/set 0
from homekit2mqtt.
hmm strange. and you double checked that your broker is really listening on loopback and port 1883? Can you do a test with telnet 127.0.0.1 1883
and see if this gets a connection? Must admit that I have no clue whats going wrong atm...
from homekit2mqtt.
jelimoore@Misc:~$ telnet localhost 1883
Trying ::1...
Connected to localhost.
Escape character is '^]'.
from homekit2mqtt.
this shows a successful connect via IPv6 Loopback (::1). Did you also test telnet 127.0.0.1 1883
(IPv4)?
from homekit2mqtt.
Yes. Same thing.
from homekit2mqtt.
hmmhmm. That's really strange, I have no idea why it doesn't connect to the MQTT broker. Perhaps it's worth a try to use the IP of an external interface with the -u option. Otherwise I guess we would have to check with tcpdump what's happening while the connection attempt tcpdump -i lo -q '(tcp port 1883)' -x
from homekit2mqtt.
I set the homekit MQTT to external IP. Didn't work. Turned on tcpdump on eth0, only came up with MQTT data exchanged between my test device and the server. No server-server communication was shown. Homekit bridge was set to external interface too.
from homekit2mqtt.
Jelimoore@Misc:~$ telnet 127.0.0.1 1883
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
On Oct 21, 2016, at 10:06 AM, Sebastian Raff [email protected] wrote:
hmm strange. and you double checked that your broker is really listening on loopback and port 1883? Can you do a test with telnet 127.0.0.1 1883 and see if this gets a connection? Must admit that I have no clue whats going wrong atm...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
from homekit2mqtt.
I still must admit - I have no clue why it doesn't connect to the broker. I guess my next try would be to create a simple javascript that requires the mqtt.js module and does nothing more then calling connect and console.log on connect error and close event to track down if this is a general or a homekit2mqtt related issue. I never had any problems with mqtt.js connecting to the broker...
from homekit2mqtt.
feel free to reopen if you want further assistance
from homekit2mqtt.
Related Issues (20)
- Adding custom prefix/customize published MQTT payload for clients with multiple services
- Project status HOT 2
- ToObject deprecation warnings on install
- stuck on: mqtt homekit/connected 0 0 HOT 2
- Error: libnode.so.64: cannot open shared object file: No such file or directory HOT 1
- Is it possible to use on an external network? HOT 1
- Looking for the complete docker installation command, failed to start all the time! HOT 1
- How to Set Setup ID HOT 1
- Installation failure HOT 1
- Home Assistant to MQTT bridge HOT 2
- homekit2mqtt Installation HOT 2
- Error while trying to install HOT 4
- Send homekit device to MQTT
- Device status isn't updated
- Velux Bind: Anyone got WindowCovering service working? HOT 3
- Temperature sensor DHT11 on Tasmota device
- Misleading project name (should be mqtt2homekit) HOT 2
- 安装不上 能不能打包一个docker镜像使用docker运行
- 安装不上 能不能打包一个docker镜像使用docker运行
- 安装不上 能不能打包一个docker镜像使用docker运行
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 homekit2mqtt.