Still getting my feet wet with the LUA Architecture. Trying to retrieve an attribute and somehow my syntax is not correct.
I can issue a command:
but I can’t seem to find the right syntax to retrieve the capability.
local state = capabilities.switch1.switch
Not sure what the syntax needs to retrieve a capability attribute.