I was having a similar issue if I restarted my RPi. But if I just restarted the HomeBridge add-on without restarting HASS if found everything just fine.
Hello I’m wondering how do I install this plugin? Because it seems I need npm to install it and I can’t find any npm tool,
I know home assistant has it’s own plugin for it but I want to use it on Homebridge instead
@nachiarg, My HB add-on is now reporting the same errors as you since yesterday after getting Lets Encrypt and my SSL certs working.
I have verified that its SSL for me. Commenting out base_url:
, ssl_certificate:
and ssl_key:
gets HB working again.
What did you tweak exactly?
As explained in the documentation, you can simply list the plugins you want in the config field of the UI and they’ll be installed for you:
{
"plugins": [
"homebridge-tradfri"
]
}
You then need to configure them in your Homebridge’s config file, as usual (/config/homebridge/config.json
).
I hasa problem white config.json I get error
[6/30/2017, 8:37:52 PM] Loaded plugin: homebridge-tradfri
[6/30/2017, 8:37:52 PM] Registering platform ‘homebridge-tradfri.Tradfri’
[6/30/2017, 8:37:52 PM] —
[6/30/2017, 8:37:52 PM] There was a problem reading your config.json file.
[6/30/2017, 8:37:52 PM] Please try pasting your config.json file here to validate it: http://jsonlint.com
[6/30/2017, 8:37:52 PM]
/usr/lib/node_modules/homebridge/lib/server.js:197
throw err;
^
SyntaxError: Unexpected string in JSON at position 579
at Object.parse (native)
at Server._loadConfig (/usr/lib/node_modules/homebridge/lib/server.js:191:19)
at new Server (/usr/lib/node_modules/homebridge/lib/server.js:52:38)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:26:16)
at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions…js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
and it won’t start up, can anybody help me white the config file I have for sure mist something
Yeah, your config.json is quite malformed. I like using this site for validating my JSON syntax…
First bit, you cannot put comments in a json file, so…
# "coapClientPath": "/usr/local/bin/coap-client" // OPTIONAL: See above
is out.
Next the errors just seem to be missing closing brackets and commas. Here is your config.json fixed…
{
"bridge": {
"name": "Home Assistant",
"username": "CC:22:3D:E3:CE:38",
"port": 51826,
"pin": "031-45-154"
},
"description": "Homebridge for Home Assistant",
"accessories": [],
"platforms": [
{
"platform": "HomeAssistant",
"name": "HomeAssistant",
"host": "http://192.168.1.123:8123",
"password": "XXXXXXX",
"supported_types": ["binary_sensor", "climate", "cover", "device_tracker", "fan", "group", "input_boolean", "light", "lock", "media_player", "scene", "sensor", "switch"],
"logging": true
},
{"platform" : "Tradfri",
"name" : "Tradfri",
"psk" : "XXXXXX"}
]
}
I too am having problems getting this to work. I have a few devices made by Incipio. They recognized and working on my ipad, I have homebridge link also with my ipad, but Im not getting anything. I think I read this works out of the box without configuration to any of the files withing HA, this right?
Really nice idea. Unfortunately it doesn’t work for me either. It does seem to start, but my phone doesn’t see it.
starting version 3.2.1
Linking the homebridge config directory
Ensuring homebridge-dummy is installed…
/usr/lib
└── [email protected]
Launching DBUS daemon…
Launching avahi daemon…
Launching homebridge…
*** WARNING *** The program 'node' 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=node>
*** WARNING *** The program 'node' 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=node&f=DNSServiceRegister>
[7/28/2017, 8:33:39 AM] Loaded plugin: homebridge-dummy
[7/28/2017, 8:33:39 AM] Registering accessory 'homebridge-dummy.DummySwitch'
[7/28/2017, 8:33:39 AM] ---
[7/28/2017, 8:33:40 AM] Loaded plugin: homebridge-homeassistant
[7/28/2017, 8:33:40 AM] Registering platform 'homebridge-homeassistant.HomeAssistant'
[7/28/2017, 8:33:40 AM] ---
[7/28/2017, 8:33:40 AM] Loaded config.json with 1 accessories and 1 platforms.
[7/28/2017, 8:33:40 AM] ---
[7/28/2017, 8:33:40 AM] Loading 1 platforms...
[7/28/2017, 8:33:40 AM] [HomeAssistant] Initializing HomeAssistant platform...
[7/28/2017, 8:33:40 AM] [HomeAssistant] Fetching HomeAssistant devices.
[7/28/2017, 8:33:41 AM] Loading 1 accessories...
[7/28/2017, 8:33:41 AM] [My Stateful Switch 1] Initializing DummySwitch accessory...
I tried instructions here on the topic and the ones from the link posted by @olivierg with no luck. I added the “Dummy” just to see if it made any change .
My setup:
- Home Assistant exposed on 443 via duckdns and letsencrypt valid certs
- All ports on duckdns.org dns are closed except 443 (port forwarding)
- Port 8123 is only available on local network
- I tried telnet on 51826 on the local network (RPI3 IP from the router) and it refuses connection
Some suggestions:
- Make Homebridge show version on startup
- Allow setting of “URL” of home assistant in Plugin JSON
- Update settings so it doesn’t show anymore “unknown” fields (like Maintainer: unknown) - helps with trust
Hello all!!!
One question…
I have one yeelight (bedside bluetooth model) that i want to control via HASS but i dont have an iphone.
Can i use the homebridge with HASS without having any kind of iphone?
yes, you can
that did solve my problem
hey guys at first it worked fine but i deleted the bridge from homekit app by mistake and now my iphone wont find the bridge wen i try to pair it again i re install the hass.io image and the add on but no luck
Hi,
i’m trying to connect homebridge add-on to my phone but it doesn’t recognize it. This is my log:
starting version 3.2.1
Linking the homebridge config directory
Launching DBUS daemon…
Launching avahi daemon…
Launching homebridge…
*** WARNING *** The program 'node' 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=node>
*** WARNING *** The program 'node' 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=node&f=DNSServiceRegister>
[7/29/2017, 12:07:55 PM] Loaded plugin: homebridge-homeassistant
[7/29/2017, 12:07:55 PM] Registering platform 'homebridge-homeassistant.HomeAssistant'
[7/29/2017, 12:07:55 PM] ---
[7/29/2017, 12:07:55 PM] Loaded config.json with 0 accessories and 1 platforms.
[7/29/2017, 12:07:55 PM] ---
[7/29/2017, 12:07:55 PM] Loading 1 platforms...
[7/29/2017, 12:07:55 PM] [HomeAssistant] Initializing HomeAssistant platform...
[7/29/2017, 12:07:55 PM] [HomeAssistant] Fetching HomeAssistant devices.
[7/29/2017, 12:07:55 PM] Loading 0 accessories...
[7/29/2017, 12:07:56 PM] [HomeAssistant] Received event: ping
[7/29/2017, 12:07:56 PM] [HomeAssistant] Initializing platform accessory 'Sensor'...
[7/29/2017, 12:07:56 PM] [HomeAssistant] Initializing platform accessory 'NAS'...
[7/29/2017, 12:07:56 PM] [HomeAssistant] Initializing platform accessory 'Dark Sky Temperature'...
[7/29/2017, 12:07:56 PM] [HomeAssistant] Initializing platform accessory 'Dark Sky Daily High Temperature'...
[7/29/2017, 12:07:56 PM] [HomeAssistant] Initializing platform accessory 'Dark Sky Daily Low Temperature'...
[7/29/2017, 12:07:56 PM] [HomeAssistant] Initializing platform accessory '55X0000'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
┌────────────┐
│ 031-45-154 │
└────────────┘
[7/29/2017, 12:07:56 PM] Homebridge is running on port 51826.
[7/29/2017, 12:08:21 PM] [HomeAssistant] Received event: {"event_type": "state_changed", "data": {"entity_id": "sensor.ram_free", "old_state": {"entity_id": "sensor.ram_free", "state": "760.3", "attributes": {"unit_of_measurement": "MiB", "friendly_name": "RAM Free", "icon": "mdi:memory"}, "last_changed": "2017-07-29T10:07:50.536216+00:00", "last_updated": "2017-07-29T10:07:50.536216+00:00"}, "new_state": {"entity_id": "sensor.ram_free", "state": "745.1", "attributes": {"unit_of_measurement": "MiB", "friendly_name": "RAM Free", "icon": "mdi:memory"}, "last_changed": "2017-07-29T10:08:21.539871+00:00", "last_updated": "2017-07-29T10:08:21.539871+00:00"}}, "origin": "LOCAL", "time_fired": "2017-07-29T10:08:21.540070+00:00"}
[7/29/2017, 12:08:30 PM] [HomeAssistant] Received event: {"event_type": "state_changed", "data": {"entity_id": "sun.sun", "old_state": {"entity_id": "sun.sun", "state": "above_horizon", "attributes": {"next_dawn": "2017-07-30T03:26:09+00:00", "next_dusk": "2017-07-29T19:27:21+00:00", "next_midnight": "2017-07-29T23:26:04+00:00", "next_noon": "2017-07-29T11:26:07+00:00", "next_rising": "2017-07-30T04:00:41+00:00", "next_setting": "2017-07-29T18:52:41+00:00", "elevation": 58.42, "azimuth": 142.52, "friendly_name": "Sun"}, "last_changed": "2017-07-29T09:55:23.966658+00:00", "last_updated": "2017-07-29T10:07:30.509431+00:00"}, "new_state": {"entity_id": "sun.sun", "state": "above_horizon", "attributes": {"next_dawn": "2017-07-30T03:26:09+00:00", "next_dusk": "2017-07-29T19:27:21+00:00", "next_midnight": "2017-07-29T23:26:04+00:00", "next_noon": "2017-07-29T11:26:07+00:00", "next_rising": "2017-07-30T04:00:41+00:00", "next_setting": "2017-07-29T18:52:41+00:00", "elevation": 58.52, "azimuth": 142.92, "friendly_name": "Sun"}, "last_changed": "2017-07-29T09:55:23.966658+00:00", "last_updated": "2017-07-29T10:08:30.509329+00:00"}}, "origin": "LOCAL", "time_fired": "2017-07-29T10:08:30.509469+00:00"}
[7/29/2017, 12:08:52 PM] [HomeAssistant] Received event: {"event_type": "state_changed", "data": {"entity_id": "sensor.ram_free", "old_state": {"entity_id": "sensor.ram_free", "state": "745.1", "attributes": {"unit_of_measurement": "MiB", "friendly_name": "RAM Free", "icon": "mdi:memory"}, "last_changed": "2017-07-29T10:08:21.539871+00:00", "last_updated": "2017-07-29T10:08:21.539871+00:00"}, "new_state": {"entity_id": "sensor.ram_free", "state": "744.6", "attributes": {"unit_of_measurement": "MiB", "friendly_name": "RAM Free", "icon": "mdi:memory"}, "last_changed": "2017-07-29T10:08:52.535122+00:00", "last_updated": "2017-07-29T10:08:52.535122+00:00"}}, "origin": "LOCAL", "time_fired": "2017-07-29T10:08:52.535349+00:00"}
[7/29/2017, 12:09:23 PM] [HomeAssistant] Received event: {"event_type": "state_changed", "data": {"entity_id": "sensor.ram_free", "old_state": {"entity_id": "sensor.ram_free", "state": "744.6", "attributes": {"unit_of_measurement": "MiB", "friendly_name": "RAM Free", "icon": "mdi:memory"}, "last_changed": "2017-07-29T10:08:52.535122+00:00", "last_updated": "2017-07-29T10:08:52.535122+00:00"}, "new_state": {"entity_id": "sensor.ram_free", "state": "743.8", "attributes": {"unit_of_measurement": "MiB", "friendly_name": "RAM Free", "icon": "mdi:memory"}, "last_changed": "2017-07-29T10:09:23.544548+00:00", "last_updated": "2017-07-29T10:09:23.544548+00:00"}}, "origin": "LOCAL", "time_fired": "2017-07-29T10:09:23.544751+00:00"}
[7/29/2017, 12:09:30 PM] [HomeAssistant] Received event: {"event_type": "state_changed", "data": {"entity_id": "sun.sun", "old_state": {"entity_id": "sun.sun", "state": "above_horizon", "attributes": {"next_dawn": "2017-07-30T03:26:09+00:00", "next_dusk": "2017-07-29T19:27:21+00:00", "next_midnight": "2017-07-29T23:26:04+00:00", "next_noon": "2017-07-29T11:26:07+00:00", "next_rising": "2017-07-30T04:00:41+00:00", "next_setting": "2017-07-29T18:52:41+00:00", "elevation": 58.52, "azimuth": 142.92, "friendly_name": "Sun"}, "last_changed": "2017-07-29T09:55:23.966658+00:00", "last_updated": "2017-07-29T10:08:30.509329+00:00"}, "new_state": {"entity_id": "sun.sun", "state": "above_horizon", "attributes": {"next_dawn": "2017-07-30T03:26:09+00:00", "next_dusk": "2017-07-29T19:27:21+00:00", "next_midnight": "2017-07-29T23:26:04+00:00", "next_noon": "2017-07-29T11:26:07+00:00", "next_rising": "2017-07-30T04:00:41+00:00", "next_setting": "2017-07-29T18:52:41+00:00", "elevation": 58.63, "azimuth": 143.33, "friendly_name": "Sun"}, "last_changed": "2017-07-29T09:55:23.966658+00:00", "last_updated": "2017-07-29T10:09:30.509086+00:00"}}, "origin": "LOCAL", "time_fired": "2017-07-29T10:09:30.509229+00:00"}
[7/29/2017, 12:09:54 PM] [HomeAssistant] Received event: {"event_type": "state_changed", "data": {"entity_id": "sensor.ram_free", "old_state": {"entity_id": "sensor.ram_free", "state": "743.8", "attributes": {"unit_of_measurement": "MiB", "friendly_name": "RAM Free", "icon": "mdi:memory"}, "last_changed": "2017-07-29T10:09:23.544548+00:00", "last_updated": "2017-07-29T10:09:23.544548+00:00"}, "new_state": {"entity_id": "sensor.ram_free", "state": "743.9", "attributes": {"unit_of_measurement": "MiB", "friendly_name": "RAM Free", "icon": "mdi:memory"}, "last_changed": "2017-07-29T10:09:54.547187+00:00", "last_updated": "2017-07-29T10:09:54.547187+00:00"}}, "origin": "LOCAL", "time_fired": "2017-07-29T10:09:54.547439+00:00"}
[7/29/2017, 12:10:25 PM] [HomeAssistant] Received event: {"event_type": "state_changed", "data": {"entity_id": "sensor.ram_free", "old_state": {"entity_id": "sensor.ram_free", "state": "743.9", "attributes": {"unit_of_measurement": "MiB", "friendly_name": "RAM Free", "icon": "mdi:memory"}, "last_changed": "2017-07-29T10:09:54.547187+00:00", "last_updated": "2017-07-29T10:09:54.547187+00:00"}, "new_state": {"entity_id": "sensor.ram_free", "state": "744.5", "attributes": {"unit_of_measurement": "MiB", "friendly_name": "RAM Free", "icon": "mdi:memory"}, "last_changed": "2017-07-29T10:10:25.539376+00:00", "last_updated": "2017-07-29T10:10:25.539376+00:00"}}, "origin": "LOCAL", "time_fired": "2017-07-29T10:10:25.539595+00:00"}
[7/29/2017, 12:10:30 PM] [HomeAssistant] Received event: {"event_type": "state_changed", "data": {"entity_id": "sun.sun", "old_state": {"entity_id": "sun.sun", "state": "above_horizon", "attributes": {"next_dawn": "2017-07-30T03:26:09+00:00", "next_dusk": "2017-07-29T19:27:21+00:00", "next_midnight": "2017-07-29T23:26:04+00:00", "next_noon": "2017-07-29T11:26:07+00:00", "next_rising": "2017-07-30T04:00:41+00:00", "next_setting": "2017-07-29T18:52:41+00:00", "elevation": 58.63, "azimuth": 143.33, "friendly_name": "Sun"}, "last_changed": "2017-07-29T09:55:23.966658+00:00", "last_updated": "2017-07-29T10:09:30.509086+00:00"}, "new_state": {"entity_id": "sun.sun", "state": "above_horizon", "attributes": {"next_dawn": "2017-07-30T03:26:09+00:00", "next_dusk": "2017-07-29T19:27:21+00:00", "next_midnight": "2017-07-29T23:26:04+00:00", "next_noon": "2017-07-29T11:26:07+00:00", "next_rising": "2017-07-30T04:00:41+00:00", "next_setting": "2017-07-29T18:52:41+00:00", "elevation": 58.73, "azimuth": 143.74, "friendly_name": "Sun"}, "last_changed": "2017-07-29T09:55:23.966658+00:00", "last_updated": "2017-07-29T10:10:30.508012+00:00"}}, "origin": "LOCAL", "time_fired": "2017-07-29T10:10:30.508155+00:00"}
[7/29/2017, 12:10:56 PM] [HomeAssistant] Received event: {"event_type": "state_changed", "data": {"entity_id": "sensor.ram_free", "old_state": {"entity_id": "sensor.ram_free", "state": "744.5", "attributes": {"unit_of_measurement": "MiB", "friendly_name": "RAM Free", "icon": "mdi:memory"}, "last_changed": "2017-07-29T10:10:25.539376+00:00", "last_updated": "2017-07-29T10:10:25.539376+00:00"}, "new_state": {"entity_id": "sensor.ram_free", "state": "744.0", "attributes": {"unit_of_measurement": "MiB", "friendly_name": "RAM Free", "icon": "mdi:memory"}, "last_changed": "2017-07-29T10:10:56.537724+00:00", "last_updated": "2017-07-29T10:10:56.537724+00:00"}}, "origin": "LOCAL", "time_fired": "2017-07-29T10:10:56.537948+00:00"}
I already tried this solution https://github.com/nfarina/homebridge#my-ios-app-cant-find-homebridge.
Do you have any suggestions?
[Raspberry 3 with hass.io]
go to the link in this post, they advice you to delete persist folder and reload homebridge then you are able to add the hub again Repository: Homebridge add-on
I installed the addon but when it starts, i get this:
Linking the homebridge config directory
starting version 3.2.1
Ensuring homebridge-yeelight is installed…
/usr/lib
└── [email protected]
Launching DBUS daemon…
Launching avahi daemon…
Launching homebridge…
*** WARNING *** The program ‘node’ 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=node
*** WARNING *** The program ‘node’ 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=node&f=DNSServiceRegister
[7/29/2017, 12:45:48 PM] Loaded plugin: homebridge-homeassistant
[7/29/2017, 12:45:49 PM] Registering platform ‘homebridge-homeassistant.HomeAssistant’
[7/29/2017, 12:45:49 PM] —
failed to load BLE module!
[7/29/2017, 12:45:49 PM] Loaded plugin: homebridge-yeelight
[7/29/2017, 12:45:49 PM] Registering platform ‘homebridge-yeelight.yeelight’
[7/29/2017, 12:45:49 PM] —
[7/29/2017, 12:45:49 PM] Loaded config.json with 0 accessories and 1 platforms.
[7/29/2017, 12:45:49 PM] —
[7/29/2017, 12:45:49 PM] Loading 1 platforms…
[7/29/2017, 12:45:49 PM] [HomeAssistant] Initializing HomeAssistant platform…
[7/29/2017, 12:45:49 PM] [HomeAssistant] Fetching HomeAssistant devices.
[7/29/2017, 12:45:49 PM] Loading 0 accessories…
Load homebridge-yeelight.yeelight
[7/29/2017, 12:45:49 PM] [homebridge-yeelight.yeelight] YeePlatform Init
[7/29/2017, 12:45:49 PM] [homebridge-yeelight.yeelight] DidFinishLaunching
no ble cap, skip ble device discovery
add to multicast group
listen on 0.0.0.0
no did or loc found!
Bluetooth BCM43xx addon is installed and running
You does not ones of the iPhone?
What?
I don’t have an iphone