DeviceWrapper - specification?

Where can I find detailed information about this Hubitat class?
I know that there is currentValue; but isn't there more? :thinking:

Is this what you're looking for?

https://docs.hubitat.com/index.php?title=Device_Object

1 Like

Seems so, thanx a lot! :+1:

The caption "Device Object" irritated me strongly... :roll_eyes:

:thinking:

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... :wink:

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.