Giter Club home page Giter Club logo

Comments (4)

upsert avatar upsert commented on August 21, 2024 1

I'm not sure the best way to implement this. The Integration Report has IDs but has no unique identifier for the hub. Use of IP address is also not recommended as a base for a unique ID.

I could do it if there was a MAC address put in the configuration by the user:

lutron_caseta_pro:
    bridges:
      - host: IP_ADDRESS
        mac: aa:bb:cc:dd:ee:ff
        switch: [ 4, 5 ]
        cover: [ 11, 12 ]

Unique IDs would be MAC-IntegrationID. The MAC address is written on the bottom of the hub. In practice it could be anything non-conflicting with other devices, but it seems easier to have people use the MAC address.

It makes it a little more complicated to configure overall so I might see if I could make it an optional feature. If Home Assistant does not support it as optional, it would be a required config and a breaking change.

from lutron-caseta-pro.

sknolin avatar sknolin commented on August 21, 2024

This would be a good feature. For example - " If lights or shades are assigned to an area in the Lutron app, the area name will be prepended to the entity_id. e.g. for area 'Dining Room', it would be light.dining_room_ceiling_light" - in the android app at least, you have no choice, you must assign a room.

This required some creative "room" naming to work well for me to avoid awkward names.

from lutron-caseta-pro.

darkmaestro3e8 avatar darkmaestro3e8 commented on August 21, 2024

I agree that the Entity Registry would be a great feature. By the way, great work on this component @upsert. You really should consider making this a core component at some point in the future. I believe a lot of home assistant users would agree that making our homes "future proof" is a big part of the reason we've selected the DIY route to run our own hubs locally. For that reason, your component is far superior to the core Lutron Caseta component and the main reason I personally switched over to the Pro Hub. I think you'd get a lot of support from the community if you added this in. Keep up the good work.

@sknolin - Don't forget you can still customize entity naming and icons if you don't like the names that come out of the Lutron app. Some of those names can be a bit cumbersome.

https://www.home-assistant.io/docs/configuration/customizing-devices/

from lutron-caseta-pro.

upsert avatar upsert commented on August 21, 2024

If someone wants to test my implementation, that would be great:
https://github.com/upsert/lutron-caseta-pro/archive/entity_registry.zip

I've done it on a separate branch because I am a little paranoid about breaking things and used to branching. I will merge it once I get some feedback and do more testing.

from lutron-caseta-pro.

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.