Code Monkey home page Code Monkey logo

Comments (14)

airdamien avatar airdamien commented on July 20, 2024

I'm looking for the same ability. Lights means everything Hue basically gets duplicated, but my GE Z-wave in-wall dimmer is only avail through homeassistant (usb device ownership).
Instead of an exclude, maybe a specific include by entity_id?

from homebridge-homeassistant.

airdamien avatar airdamien commented on July 20, 2024

https://github.com/home-assistant/homebridge-homeassistant/blob/master/index.js

I think that I can wire it in manually with something like this.. pseudocode at best, haven't gone home to try it yet.

var allowedLight = new Boolean();

switch (entity) {
case "light.ge_switch_2":
case "light.ge_dimmer_3blah":
allowedLight = true;
break;
default:
console.log("Light is NOT in the allowed list");
}

if (entity_type == 'light' && allowedLight) {
accessory = new HomeAssistantLight(that.log, entity, that)
}else if (entity_type == 'switch'){

from homebridge-homeassistant.

airdamien avatar airdamien commented on July 20, 2024
    this is working for me. 

    console.log(entity.entity_id);
    if (entity_type == 'light' && entity.entity_id == 'light.ge_12724_3way_dimmer_switch_level_4' ) {
      console.log(entity.entity_id);
      console.log("Light is allowed, configuring");
      accessory = new HomeAssistantLight(that.log, entity, that)

from homebridge-homeassistant.

KmanOz avatar KmanOz commented on July 20, 2024

+1 on this. I have a bunch of mqtt switches in HA that are dummies primarily used for logic that I really don't want in Homebridge. In fact sometimes when I muddle my words "read drink too much" and Homebridge misinterprets my command HA goes haywire as it tries to turn on/off switches that shouldn't be touched. What would be neat is a way of flagging assets in HA that are automatically sucked in by the plugin rather than sucking in everything. I wish I knew .js I would give that code a go.

from homebridge-homeassistant.

abouzek avatar abouzek commented on July 20, 2024

Can't you pair the HomeBridge with HomeKit and then manually remove devices you don't want in a third-party app like Home?

from homebridge-homeassistant.

KmanOz avatar KmanOz commented on July 20, 2024

Well using Apple's Home app, I can't see where you can remove individual accessories. You can preclude them from showing up as a status on the main page of home or you can not add them to favorites but that's about it, they still appear. I created a room for all the stuff I don't need and put all the switches in there but being able to control what goes in would be a better solution.

from homebridge-homeassistant.

snizzleorg avatar snizzleorg commented on July 20, 2024

is this on npm already?

from homebridge-homeassistant.

robbiet480 avatar robbiet480 commented on July 20, 2024

Not yet, you can get the latest by running npm install -g home-assistant/homebridge-homeassistant.

from homebridge-homeassistant.

nashlib avatar nashlib commented on July 20, 2024

Cannot get Homebridge to exclude items from home-assistant. I did add the customise in confuguration.yaml file of HA.

from homebridge-homeassistant.

maddox avatar maddox commented on July 20, 2024

Can you confirm the version of the plugin you're using and paste in your customize config for your devices that you are trying to ignore?

from homebridge-homeassistant.

nashlib avatar nashlib commented on July 20, 2024

im using HA 0.30.2 and my config file is like this.

homeassistant:
  customize:
    switch.aeotec_zw096_smart_switch_6_switch_2:
      friendly_name: Second Bedroom switch
    light.aeotec_zw098_led_bulb_level_4:
      friendly_name: Bedroom Floor Lamp

customize:
  light.hue_white_lamp_5:
    homebridge_hidden: true

from homebridge-homeassistant.

nashlib avatar nashlib commented on July 20, 2024

sorry.

homeassistant:
  customize:
    switch.aeotec_zw096_smart_switch_6_switch_2:
      friendly_name: Second Bedroom switch
    light.aeotec_zw098_led_bulb_level_4:
      friendly_name: Bedroom Floor Lamp

customize:
  light.hue_white_lamp_5:
    homebridge_hidden: true

from homebridge-homeassistant.

maddox avatar maddox commented on July 20, 2024

Your indention there looks off, be sure it's nested under the appropriate keys in the YAML. Also, is that in the same file. I'm not sure you can have 2 customize keys. Try this:

homeassistant:
  customize:
    switch.aeotec_zw096_smart_switch_6_switch_2:
      friendly_name: Second Bedroom switch
    light.aeotec_zw098_led_bulb_level_4:
      friendly_name: Bedroom Floor Lamp
    light.hue_white_lamp_5:
      homebridge_hidden: true

from homebridge-homeassistant.

nashlib avatar nashlib commented on July 20, 2024

works like a charm !!!! - aweome buddy - thanks !!!!

from homebridge-homeassistant.

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.