Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

"default_visibility" should be "visible" by default #212

Closed
jamieshaw opened this issue Aug 19, 2017 · 8 comments
Closed

"default_visibility" should be "visible" by default #212

jamieshaw opened this issue Aug 19, 2017 · 8 comments

Comments

@jamieshaw
Copy link

Homebridge-homeassitant 2.3.0 brings a new configuration option of setting the default visibility of accessories discovered within Home Assistant. Unfortunately this also seems to a breaking change.

Jumping the gun and without reading the docs, I upgraded and restarted Homebridge, and found all my accessories gone as default_visibility was missing from my config.js. The result of this was Homebridge not starting, and subsequently, HomeKit thinking all previously connected accessories were not, removing them from my 'Home'.

This could be improved by setting this value to "visible" is undefined.

@huseyint
Copy link

Ditto, lost my 30 minutes trying to recover my missing accessories.

@jcastro
Copy link

jcastro commented Aug 19, 2017

I also started with without the 'default_visibility' setting on my config.json, but now that I've added it and set it to 'visible' I'm still seeing my devices as "Not responding" on Home.app... any ideas on what's going on here? thanks!

@jamieshaw
Copy link
Author

I find that sometimes you need to force quit Home.app on iOS and re-open for it to refresh the devices.

Failing that, if it's an issue with your setup, consult the logs.

@jcastro
Copy link

jcastro commented Aug 19, 2017

Ok it seems there's some kind of problem maybe with the homebridge-homeassistant itself? I'm trying on another phone and I'm not seeing the Homebridge accessory showing up, but logs shows it's running

[8/19/2017, 1:35:00 PM] Loaded plugin: homebridge-cmdswitch2
[8/19/2017, 1:35:00 PM] Registering platform 'homebridge-cmdswitch2.cmdSwitch2'
[8/19/2017, 1:35:00 PM] ---
[8/19/2017, 1:35:00 PM] Loaded plugin: homebridge-homeassistant
[8/19/2017, 1:35:00 PM] Registering platform 'homebridge-homeassistant.HomeAssistant'
[8/19/2017, 1:35:00 PM] ---
[8/19/2017, 1:35:00 PM] Loaded config.json with 0 accessories and 2 platforms.
[8/19/2017, 1:35:00 PM] ---
[8/19/2017, 1:35:00 PM] Loading 2 platforms...
[8/19/2017, 1:35:00 PM] [HomeAssistant] Initializing HomeAssistant platform...
[8/19/2017, 1:35:00 PM] [HomeAssistant] Fetching HomeAssistant devices.
[8/19/2017, 1:35:00 PM] [ CMD switch] Initializing cmdSwitch2 platform...
[8/19/2017, 1:35:01 PM] [ CMD switch] Initializing platform accessory 'jonatan isHome'...
[8/19/2017, 1:35:01 PM] [ CMD switch] jonatan isHome is on.
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Jonatan home'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Media player lights'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Salon off'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Dormitorio relax'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Dormitorio relax OFF'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Salon on'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Salon dim'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Jonatan home CMD2'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'limpiador'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Temperatura'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Humedad'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Calefacción'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Temperatura'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Humedad'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Temperatura Balcon'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Humedad Balcon'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Ventana'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Ventana'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Ventana'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Nevera'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Movimiento'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Ventana'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Luz'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Luz'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Luces ritmo circadiano'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Interruptor Luz'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Interruptor Luz'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Interruptor Luz'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Interruptor Luz'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Luz'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Movimiento'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Temperatura'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Movimiento'...
[8/19/2017, 1:35:01 PM] [HomeAssistant] Initializing platform accessory 'Temperatura'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐
│ 031-45-154 │
└────────────┘

[8/19/2017, 1:35:01 PM] Homebridge is running on port 51826.

@jamieshaw
Copy link
Author

Perhaps. I agree that Homebridge is fully running if you've got to the PIN screen.

If you've having trouble unpairing and re-adding the bridge, try deleting your "Persist" folder in your config directory and restarting Homebridge.

@schmittx
Copy link
Collaborator

schmittx commented Aug 20, 2017

Regarding the confusion on default_behavior, my apologies for the lack of clear documentation. I've submitted a new PR which adds better documentation and sets default to visible if not specified in config. I'm really sorry if this caused you guys headaches and time, it should be more clear going forward.

@jcastro Regarding the "Not Responding" situation, if force closing the app isn't enough then try the following before deleting anything in "persist". Note that when you delete anything in the "persist" directory, you'll have to setup Homebridge from scratch (i.e. delete the home from within the Home app and go through the pairing/setup process all over again, losing all of your scenes/automations/rooms/etc.).

  1. Stop Homebridge
  2. Force close Home app
  3. Delete "cachedAccessories" from "accessories" folder in Homebridge directory
  4. Restart Homebridge
  5. Reopen Home app

@rbhr
Copy link

rbhr commented Aug 20, 2017

@schmittx no apology needed. You have done great work. Thanks, it’s really good now!

@jamieshaw
Copy link
Author

@schmittx Certainly no need to apologise! I just thought it would make it easier for anyone who is upgrading so there isn't any confusion for those who missed the setting like myself 😉

The home assistant plugin is practically a first rate service – it's pretty much want I want it to be now, the iOS and Siri interface for Home Assistant; the frontend to the HASS "brains".

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

No branches or pull requests

5 participants