@bobbyD Can we please get "Custom Attributes" added as a supported option for the basic built in apps?
I have my Tesla PowerWall 2 integrated into my Hubitat and some of the actions I'd like to automate really don't need complex RM rules to configure. eg The only thing stopping me from using a basic rule to say "dim lights" or "turn off lights" during a power outage is being able to monitor a custom attribute "grid status" from the TW2 Community driver.
This has been bugging me since I read it, and is something I should let go... but hey....
I definitely agree with the request, while I don't need it myself atm, I can see the "simplistic" nature of what you and I expect others want to do. When it comes to many Community drivers there can often be quite useful additional attributes that can be useful when keeping tabs on what is happening with these devices.
My only issue is that in the example you gave I feel like a child switch device may be more appropriate, if it would be possible to have included in the driver. A switch would provide a more clear cut, defined state change that would not rely on users knowing the values for the attribute that signify that change and would cater for the developer to introduce additional logic in determining that state change. Getting into semantics and technicalities I know, which is why I lead with my support of the request. This is by no means a reason not to proceed with the request, just something to consider with the justification.
Agreed, it wasn’t the best example, but was the most recent one I had and I’ve been meaning to make the suggestion for a while.
I like the notification app and only use RM for fancy notification rules. Eg I arrive home (presence trigger) wait for event (front door contact sensor opening) then speak “Welcome home sir”.
But to tell my wife and I there is an electrical grid outage, I just use the notification app triggered by my virtual presence sensor.
So like I said, I expect you are onto a good thing, just the that attributes with a defined list of values (or at least those with 1 or 2 states) are probably best served by a separate device that represents their state. For attributes where they record a range of values, particularly integer values in a range, those will definitely need something like what you are requesting.
I’m not a developer so I’m really not sure what the best approach is. That said, Hubitat dashboard tiles and RM triggers support custom attributes so it seems feasible.
I just thought that it would be helpful for new folks learning the HE platform as many of the community apps have all the useful fields as custom attributes.
It seems to me there's somewhat of a contradiction between "new folks learning" and an advanced feature such as Custom Attributes. I really don't like spreading advanced features all over in the simpler apps. Then they aren't simple any more. Apps don't have custom attributes, only devices do.