Where can I find detailed information about this Hubitat class?
I know that there is currentValue
; but isn't there more?
Is this what you're looking for?
1 Like
Seems so, thanx a lot!
The caption "Device Object" irritated me strongly...
But than... why is something like this working?
DeviceWrapper x =
...
x.setVolume 50
The specs don't say anything about setVolume
(or other commands)...
Ahhh, but they do actually...
https://docs.hubitat.com/index.php?title=Driver_Capability_List
Devices have Capabilities. And each Capability includes Attributes and Commands, which are detailed in the above docs.
For example, the Audio Volume capability includes the 'setVolume()' command, as well as the 'volume' attribute.
3 Likes
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.