Skip to content

Conversation

@delta2308151984
Copy link

added installation and autostart of dbus and avahi-daemon services for hap pimatic plugin

added installation and autostart of dbus and avahi-daemon services for hap pimatic plugin
@petschni
Copy link
Owner

petschni commented Dec 9, 2018

@danieltrapp is there a way to make the additional components optional since not everyone will need them?

@petschni petschni self-requested a review December 9, 2018 12:48
@delta2308151984
Copy link
Author

I have no idea. But i don't think so.

@petschni
Copy link
Owner

petschni commented Jan 3, 2019

@danieltrapp I did a quick test of the docker images but was not able to use the hap plugin successfully. I installed and activated the plugin. But the plugin settings only show "activated" but do not switch to "loaded".

image

(The logs when installing the plugin look fine to me.)

Anything else you did for the setup?

@delta2308151984
Copy link
Author

I did not yet recognize that. My plugin settings only show "activated", too. But the plugin is working fine.
I found this in my log:
22:04:24.892 [pimatic] info: Loading plugin: "pimatic-hap" (0.11.1)
22:04:26.345 [pimatic] error: Cannot find module 'hap-nodejs/node_modules/debug'

@delta2308151984
Copy link
Author

Sorry, is just renew my homekit settings and the hap plugin does not work.

@delta2308151984
Copy link
Author

I got it to work, but it's awkward.
The installation of the hap plugin does not work correctly in pimatic.
So you have to install it manually. First uninstall the plugin in pimatic.
Then you have to create the folder "pimatic-hap" in .../node_modules and install hap and debug manually in this folder (/node_modules/pimatic-hap$ npm install debug) and (/node_modules/pimatic-hap$ npm install pimatic-hap).
Then the hap plugin is loaded in pimatic and you can activate it.
The bonjour service must be turned off in the synology settings. (Time Machine on Mac is not working anymore).
All in all, not a good workaround.
I would recommend using the marcoraddatz/homebridge-docker image if you will add devices to iOS Homekit.

@petschni
Copy link
Owner

petschni commented Jan 6, 2019

hmm ok seems not the way to go then...

It probably makes more sense to use on "or" the other, or?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants