lukasroegner / homebridge-apple-tv-remote

Plugin for controlling Apple TVs in homebridge.
MIT License
132 stars 13 forks source link

`isOnOffSwitchEnabled": false` ignored if initially set to true #17

Closed mshulman closed 4 years ago

mshulman commented 4 years ago

I installed the plugin with isOnOffSwitchEnabled": true, but I don't really want to be able to power off the appleTV with HomeKit.

I set the config file to be isOnOffSwitchEnabled": false, but the power accessory is still there. I've tried restarting homebridge multiple times, but the switch still shows in homebridge and in HomeKit.

Also, even though the switch still shows, it doesn't do anything.

mshulman commented 4 years ago

Relevant sections of the log. Note that the "power" switch isn't added, but I don't know how to delete it.

[3/21/2020, 6:23:34 PM] Loaded plugin: homebridge-apple-tv-remote [3/21/2020, 6:23:36 PM] Loading 6 platforms... [3/21/2020, 6:23:36 PM] [AppleTvPlatform] Initializing AppleTvPlatform platform... [3/21/2020, 6:23:36 PM] [AppleTvPlatform] Initialing platform... [3/21/2020, 6:23:36 PM] [AppleTvPlatform] [Living Room] Initializing... [3/21/2020, 6:23:36 PM] [AppleTvPlatform] [Living Room] Adding play/pause switch [3/21/2020, 6:23:38 PM] [AppleTvPlatform] [Living Room] Connected

lukasroegner commented 4 years ago

You can (temporarily) remove the whole device from the devices array in the config.json. Then restart homebridge. The accessory should be gone. Now, add the device to the config.json again with the correct settings.

lukasroegner commented 4 years ago

The issue that caused the switch to stay in HomeKit will be resolved in the next version.

lukasroegner commented 4 years ago

New version that resolves the issue is on NPM.