looking at the Driver Capability List what should be the correct thing to put for power?
the list says capability "PowerMeter" however when using that the option dosent show up status column for power.
however putting capability "Power Meter" and it shows up.
is the Driver Capability List wrong or the back end of the web view filter?
look at a few drivers there seem to be a mix of both.
The "Status" column look for the specified attribute. It has nothing to do with capabilities other than that some of these attributes may (or may not) be part of some capability. If you want the power attribute (from the PowerMeter capability or even a custom attribute that confusingly has the same name), you'd select "power" from this list.
If you're seeing something else, screenshots of the options you see and "Current States" from the device would be helpful. If you're asking about a driver you're writing, the code would be helpful as well. Given the category this was posted in ("Custom Drivers") and the nature of the question (which appears to be about the web UI and the Devices or Rooms pages), I'm not sure what you're asking, but hopefully one of these is it.
1 Like
Changeing the driver from powerMeter to power meter made it show up.
The question is what should it be in the driver one word or two
So it's a driver you're writing? Neither of those as written is quite right if literal, so:
But assuming you're just talking about the capability, that again does not matter. If an attribute (that's what does matter and might be part of a capability) doesn't appear, it's likely because there is or was no value populated for that attribute at the time when you looked in the UI. It will not let you choose one that does not have a value, even if it "should" exist.
So in the driver capabilits in the driver should it be
Power Meteor
Or
PowerMeter
I would suggest the second option, as that is what is documented:
capability "PowerMeter"
That being said, the string as "Power Meter"
(not quite what you wrote; again, why seeing the code would be helpful) should also work -- no spaces in any of the names is just the recommendation.
Keep in mind, again, that all of this is not related to the attribute picker for the "Status" column in the UI which it sounds like is what you're ultimately wondering about. That is, again, entirely dependent on whether there was a value for that attribute populated at the time when you opened the page. If you're seeing a difference, I suspect that is all it coincided with.
2 Likes