Git Product home page Git Product logo

Comments (14)

chrisjshull avatar chrisjshull commented on August 10, 2024 1

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.

from homebridge-nest.

iogitio avatar iogitio commented on August 10, 2024

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

from homebridge-nest.

chrisjshull avatar chrisjshull commented on August 10, 2024

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)?

from homebridge-nest.

shred86 avatar shred86 commented on August 10, 2024

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.

from homebridge-nest.

chrisjshull avatar chrisjshull commented on August 10, 2024

from homebridge-nest.

mriksman avatar mriksman commented on August 10, 2024

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);

from homebridge-nest.

iogitio avatar iogitio commented on August 10, 2024

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

from homebridge-nest.

zyavrik avatar zyavrik commented on August 10, 2024

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"]
            ],

from homebridge-nest.

zyavrik avatar zyavrik commented on August 10, 2024

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

from homebridge-nest.

adriancable avatar adriancable commented on August 10, 2024

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

from homebridge-nest.

zyavrik avatar zyavrik commented on August 10, 2024

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.

from homebridge-nest.

zyavrik avatar zyavrik commented on August 10, 2024

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

from homebridge-nest.

zyavrik avatar zyavrik commented on August 10, 2024

The full section for the plugin:

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

from homebridge-nest.

zyavrik avatar zyavrik commented on August 10, 2024

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

from homebridge-nest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.