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:
device:emit_component_event(device.profile.components.switch1, capabilities.switch.switch.off())
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.
Thanks