Hi, nayelyz,
This is a simple one that shows the behavior. (The issue exists with or without the inclusion of Actuator and Sensor, as well as with ocfDeviceType, DeviceType, DeviceTypeId of various values.)
metadata {
definition (name: "Test Activity",
namespace: "panelgreen44005", author: "JDCH",
vid: "34276cac-5f4e-3c3d-9ed7-fc6d97cbb2c3", mnmn: "SmartThingsCommunity")
{
capability "Actuator"
capability "Sensor"
capability "panelgreen44005.activity"
}
}
def installed() {
log.debug "installed()..."
sendEvent(name: "activity", value: "inactive")
}
def updated() {
log.debug "updated()..."
installed()
}
def uninstalled() {
log.warn "uninstalled()..."
}
def setActivity(String newValue) {
log.info "setActivity to ${newValue}"
sendEvent(name: "activity", value: newValue)
}
def activate() {
log.info "activate"
sendEvent(name: "activity", value: "active")
}
def deactivate() {
log.info "deactivate"
sendEvent(name: "activity", value: "inactive")
}