Create ISY auxiliary sensors as sensor entities instead of attributes#71254
Create ISY auxiliary sensors as sensor entities instead of attributes#71254balloob merged 1 commit intohome-assistant:devfrom
Conversation
The auxiliary sensors for each insteon device are now their own sensor entity instead of an attribute on the parent entity.
|
Hey there @shbatm, mind taking a look at this pull request as it has been labeled with an integration ( |
|
Thanks. |
|
@bdraco Would it be better to mark |
|
Also--your ignore method looks like it will only ignore |
I think this would be a good addition. However, I we should still disable them by default most users probably won't need them.
I don't think this one is actually ever exposed, at least it isn't on my devices. |
The code uses |
Ah, missed that. I thought I read it as includes. Last thing -- how does this handle the attributes that are populated on a state change, that don't exist from initial query. For example |
It is not going to create them. I could see that one still being useful as EntityCategory.DIAGNOSTIC. I can add a special case to still create it. Are there any others ? |
|
I have no idea about Node Servers--I don't know if they can change their definitions mid-stream or not. Users should reload the integration after any node/scene/node server changes anyways. Thermostats thow properties in late, but I think those are picked up in the Also, a nit-pick, but would it be better to reference the constants from the module rather than redefine in sensor.py? And last (for outside of this PR): you reminded me that we should add a "Beep" button for devices down the road. |
|
I think ERR makes sense to add. BUSY is likely not so useful, but I'll add it if you think someone will have a use case for it. |
|
I'll add the constants for the ones we have. There are a few missing |
Breaking change
The auxiliary sensors for each insteon device are now
their own sensor entity instead of an attribute on
the parent entity which makes them easier to find and allows
attributes to be de-duplicated in the database.
General purpose, custom control, and redundant sensors are not enabled
by default. If they are desired, they can be enabled in the UI
Type of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: