Comments (4)
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.
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.
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.
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)
- Unable to prepare setup for platform lutron_caseta_pro.cover: Platform not found (cannot import name 'CoverEntity' from 'homeassistant.components.cover' HOT 4
- Invalid config error after updating HOT 2
- Controlling lamp dimmer as two separate switches/lights HOT 2
- Read/create events for switches, dimmers and fan switches like pico remotes HOT 2
- Light State Incorrect Occasionally HOT 4
- Any plans to add the motion sensor? HOT 1
- support for `RR-SEL-REP2-BL`? HOT 3
- Cover position shows incorrect state under certain conditons. HOT 6
- Error in casetify.py HOT 1
- Getting failed to call service error when trying to configure component. HOT 9
- fan speeds not lining up or being set correctly
- Lutron Fan Control - fan.set_speed = low does not work HOT 2
- Request: Pico - Double & Long Press Actions HOT 9
- add version to manifest.json HOT 1
- Support new speed percentage targets for fans HOT 6
- This component versus the in-built Lutron component in HA HOT 5
- Warnings in December 2021 HomeAssistant
- Is the built-in integration for Lutron Caséta the long term path forward? HOT 5
- Integration 'lutron_caseta_pro' not found. HOT 3
- No Devices
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lutron-caseta-pro.