Giter Site home page Giter Site logo

Comments (11)

hobbyquaker avatar hobbyquaker commented on August 23, 2024

Please start homekit2mqtt with the -v debug option and paste your command line and the log output here.

from homekit2mqtt.

jelimoore avatar jelimoore commented on August 23, 2024

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.

hobbyquaker avatar hobbyquaker commented on August 23, 2024

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 avatar jelimoore commented on August 23, 2024

jelimoore@Misc:~$ telnet localhost 1883
Trying ::1...
Connected to localhost.
Escape character is '^]'.

from homekit2mqtt.

hobbyquaker avatar hobbyquaker commented on August 23, 2024

this shows a successful connect via IPv6 Loopback (::1). Did you also test telnet 127.0.0.1 1883 (IPv4)?

from homekit2mqtt.

jelimoore avatar jelimoore commented on August 23, 2024

Yes. Same thing.

from homekit2mqtt.

hobbyquaker avatar hobbyquaker commented on August 23, 2024

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.

jelimoore avatar jelimoore commented on August 23, 2024

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 avatar jelimoore commented on August 23, 2024

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.

hobbyquaker avatar hobbyquaker commented on August 23, 2024

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.

hobbyquaker avatar hobbyquaker commented on August 23, 2024

feel free to reopen if you want further assistance

from homekit2mqtt.

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.