Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find accessory on either mac server or raspberry pi #7

Closed
tvillingett opened this issue Jan 5, 2016 · 2 comments
Closed

Cannot find accessory on either mac server or raspberry pi #7

tvillingett opened this issue Jan 5, 2016 · 2 comments

Comments

@tvillingett
Copy link
Contributor

I have installed the latest version and tried it on both a mac and a raspberry pi, but neither shows up when trying to pair with the phone.

I'm my latest try, I started it with this command:

sudo homekit2mqtt -m /usr/local/lib/node_modules/homekit2mqtt/opt/mqtt-smarthome/hekit2mqtt.json -u 'mqtt://thethingbox.local' -a '22:2E:E3:DE:F8'

(I could not find where the default location of the json file should be, so I put it there)

I starts ok, but cannot find it from the iphone.

2016-01-05 11:43:15.001 <info>  homekit2mqtt 0.3.0 starting
2016-01-05 11:43:15.145 <info>  loading HomeKit to MQTT mapping file
2016-01-05 11:43:15.147 <info>  mqtt trying to connect mqtt://thethingbox.local
2016-01-05 11:43:15.161 <info>  Starting HAP-NodeJS 0.0.7
2016-01-05 11:43:15.272 <info>  hap Created 5 Accessories
2016-01-05 11:43:15.272 <info>  hap Publishing Bridge "MQTT Bridge" username=22:2E:E3:DE:F8 port=51826 pincode=031-45-154
2016-01-05 11:43:15.290 <info>  hap Bridge listening on port 51826
2016-01-05 11:43:15.303 <info>  mqtt connected mqtt://thethingbox.local

My configuration file is:

homekit2mqtt.json
{
  "vp//Värmepump Rum": {
    "service": "Thermostat",
    "name": "Golvvärme",
    "topic": {
      "setTargetTemperature": "vp/set/rumstemp börvärde/SETPOINT",
      "statusTargetTemperature": "vp/status/rumstemp börvärde/SETPOINT",
      "statusCurrentTemperature": "vp/status/rumstemp ärvärde/TEMPERATURE"
    },
    "payload": {

    },
    "config": {
      "TemperatureDisplayUnits": 0
    },
    "manufacturer": "Comfortzone",
    "model": "CE50"
  },
  "vv//Värmepump VV": {
    "service": "Thermostat",
    "name": "Varmvatten",
    "topic": {
      "setTargetTemperature": "vv/set/vvtemp börvärde/SETPOINT",
      "statusTargetTemperature": "vv/status/vvtemp börvärde/SETPOINT",
      "statusCurrentTemperature": "vv/status/vvtemp ärvärde/TEMPERATURE"
    },
    "payload": {

    },
    "config": {
      "TemperatureDisplayUnits": 0
    },
    "manufacturer": "Comfortzone",
    "model": "CE50"
  }
    ,
    "mk//MK Ytterdörr": {
    "service" : "ContactSensor",
    "name" : "Ytterdörr",
    "topic": {
      "statusContactSensorState": "mk/status/Ytterdorr/STATUS"
    },
    "payload": {
        "onContactDetected" : "door closed"
    },
    "manufacturer": "Siemens",
    "model":        "MK 240"
  }
    ,
    "mk//MK Groventré": {
    "service" : "ContactSensor",
    "name" : "Groventré",
    "topic": {
      "statusContactSensorState": "mk/status/Groventré/STATUS"
    },
    "payload": {
        "onContactDetected" : "door closed"
    },
    "manufacturer": "Siemens",
    "model":        "MK 240"
  }
    ,
    "mk//MK Altan": {
    "service" : "ContactSensor",
    "name" : "Altan",
    "topic": {
      "statusContactSensorState": "mk/status/Altan/STATUS"
    },
    "payload": {
        "onContactDetected" : "door closed"
    },
    "manufacturer": "Siemens",
    "model":        "MK 240"
  }
}
@hobbyquaker
Copy link
Owner

I fear the reason could be that I changed the way Accessory UUIDs are generated, I think iOS doesn't like it when known devices change their properties.

I would suggest to try:

  • stop homekit2mqtt
  • leave all HomeKit Apps on iOS
  • clear HomeKit data on iOS
  • delete the "persist" folder of HAP-NodeJS (rm -r /usr/local/lib/node_modules/homekit2mqtt/node_modules/hap-nodejs/node_modules/node-persist/storage/persist)
  • restart homekit2mqtt

@tvillingett
Copy link
Contributor Author

I could not get it to work, I will do some more tests on another machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants