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

Possible to hide certain switches? #16

Closed
shred86 opened this issue Mar 6, 2018 · 14 comments
Closed

Possible to hide certain switches? #16

shred86 opened this issue Mar 6, 2018 · 14 comments

Comments

@shred86
Copy link

shred86 commented Mar 6, 2018

It looks like I'm running this forked version of the homebridge-nest now, so that's good! Thanks again for continuing to update this plugin. However, I noticed now I have a few more "devices" listed in the Home app coming from my Nest thermostats. For example, in the past it was simply one device that allowed me to set the temperature. Now there is a switch for Eco mode, home occupancy switch and a fan. Is there any way to hide some of these from HomeKit?

@iogitio
Copy link

iogitio commented Mar 7, 2018

Curious if this is possible too, super cluttered in Home now :|

@chrisjshull
Copy link
Owner

It wouldn’t be that hard to disable these via config. But I wonder, does un-favoriting them in Home accomplish the same (or moving them to another Room)?

@shred86
Copy link
Author

shred86 commented Mar 7, 2018

That's basically what I'm doing now (removing them from Statuses as well) but I'd prefer to disable them for a couple reasons:

  1. Less clutter in the Home app. I use the Rooms views as well and prefer to only have items I intend to use making the experience easier and faster.

  2. Less items for the Apple HomePod to get confused with. This just prevents triggering the wrong action. I run Home Bridge via Hassio (Home Assistant) and there's several switches I hide that I wouldn't want Siri to ever accidentally turn off or on such as a water valve.

@chrisjshull
Copy link
Owner

chrisjshull commented Mar 7, 2018 via email

@mriksman
Copy link
Contributor

mriksman commented Mar 9, 2018

Yeah I've commented out these lines in nest-thermostat-accessory.js @ line 126;

//      var homeService = this.addService(Service.Switch, "Home Occupied", "home_occupied");
//      this.bindCharacteristic(homeService, Characteristic.On, "Home Occupied", this.getHome, this.setHome);

//      var thermostatEcoModeService = this.addService(Service.Switch, "Eco Mode", "eco_mode");
//      this.bindCharacteristic(thermostatEcoModeService, Characteristic.On, "Eco Mode", this.getEcoMode, this.setEcoMode);

chrisjshull added a commit that referenced this issue Mar 11, 2018
 make it possible to hide certain switches #16
@chrisjshull
Copy link
Owner

I just pushed a new version with a fix for this. You can now disable certain features by adding a setting like this to your config:
"disable": ["Thermostat.Fan", "Thermostat.Home", "Thermostat.Eco"]

To update to the latest version of homebridge-nest, simply run npm update -g homebridge-nest.

@iogitio
Copy link

iogitio commented Mar 12, 2018

Amazing, thanks for the quick update @chrisjshull ! appreciated!!!

yeahme49 pushed a commit to yeahme49/homebridge-nest that referenced this issue Jan 8, 2022
yeahme49 pushed a commit to yeahme49/homebridge-nest that referenced this issue Jan 8, 2022
@zyavrik
Copy link

zyavrik commented Apr 23, 2023

Got this error:

[4/23/2023, 4:37:54 PM] There was a problem reading your config.json file.
[4/23/2023, 4:37:54 PM] Please try pasting your config.json file here to validate it: http://jsonlint.com
[4/23/2023, 4:37:54 PM] 
SyntaxError: Unexpected token : in JSON at position 3595
    at JSON.parse (<anonymous>)
    at Function.loadConfig (/usr/local/lib/node_modules/homebridge/src/server.ts:228:21)
    at new Server (/usr/local/lib/node_modules/homebridge/src/server.ts:93:26)
    at cli (/usr/local/lib/node_modules/homebridge/src/cli.ts:82:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Function.Module._load (node:internal/modules/cjs/loader:958:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
[4/23/2023, 4:37:54 PM] [HB Supervisor] Homebridge Process Ended. Code: 1, Signal: null
[4/23/2023, 4:37:59 PM] [HB Supervisor] Restarting Homebridge...
[4/23/2023, 4:37:59 PM] [HB Supervisor] Starting Homebridge with extra flags: -I
[4/23/2023, 4:37:59 PM] [HB Supervisor] Started Homebridge v1.6.0 with PID: 14102
[4/23/2023, 4:37:59 PM] There was a problem reading your config.json file.
[4/23/2023, 4:37:59 PM] Please try pasting your config.json file here to validate it: http://jsonlint.com
[4/23/2023, 4:37:59 PM] 
SyntaxError: Unexpected token : in JSON at position 3595
    at JSON.parse (<anonymous>)
    at Function.loadConfig (/usr/local/lib/node_modules/homebridge/src/server.ts:228:21)
    at new Server (/usr/local/lib/node_modules/homebridge/src/server.ts:93:26)
    at cli (/usr/local/lib/node_modules/homebridge/src/cli.ts:82:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Function.Module._load (node:internal/modules/cjs/loader:958:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)

on

            "options": [
                "disable": ["Thermostat.Fan", "Thermostat.Home", "Thermostat.Eco"]
            ],

@zyavrik
Copy link

zyavrik commented Apr 23, 2023

When I removed "options", there was no error, but devices were not removed.

@adriancable
Copy link
Collaborator

Please post your whole config.json (you can redact the tokens). You are probably missing a comma somewhere.

@zyavrik
Copy link

zyavrik commented Apr 24, 2023

Updated it according to the documentation https://github.com/chrisjshull/homebridge-nest#feature-options:

            "options": ["Thermostat.Fan.Disabled", "Thermostat.Home.Disabled", "Thermostat.Eco.Disabled"],

But it still failed to work after a restart.

@zyavrik
Copy link

zyavrik commented Apr 24, 2023

No syntax error anymore. This is what I see in the UI for the last charing setting.

Screenshot 2023-04-23 at 5 05 19 PM

@zyavrik
Copy link

zyavrik commented Apr 24, 2023

The full section for the plugin:

        {
            "name": "Nest",
            "googleAuth": {
                "issueToken": "...",
                "cookies": "..."
            },
            "options": [
                "Thermostat.Fan.Disabled",
                "Thermostat.Home.Disabled",
                "Thermostat.Eco.Disabled"
            ],
            "platform": "Nest"
        }

@zyavrik
Copy link

zyavrik commented Apr 24, 2023

The error was in devices initially (must be options) and Disabled afterwards (must be Disable).

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

6 participants