Hubitat 2.3.0.124.
Hi, I'm trying to get a current device state (the things that show up in 'Current States' on the device page). Based on the documentation it looks like I should be using:
device.getCurrentValue("name")
however, this throws an exception:
Code is:
To be clear, this is part of the device driver, not an app.
I'm new to driver writing so any pointers what is wrong here would be much appreciated!