You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Includere i nuovi WHAT temporizzati come SCS_ON_OFF_SWITCH.
Attualmente se si riceve *1*17*23##, il discovery lo riconosce come SCS_DIMMER_SWITCH.
@Override
public OpenDeviceType detectDeviceType() {
if (this.isCommand()) {
final What what;
OpenDeviceType openDeviceType;
if ((what = this.getWhat()) == WHAT.OFF || what == WHAT.ON || what == WHAT.MOVEMENT_DETECTED
|| what == WHAT.END_MOVEMENT_DETECTED) {
openDeviceType = OpenDeviceType.SCS_ON_OFF_SWITCH;
} else {
openDeviceType = OpenDeviceType.SCS_DIMMER_SWITCH;
}
return openDeviceType;
}
return null;
}
Visto la nuova implementazione per bus_motion_detector è opportuno aggiungere e gestire un nuovo OpenDeviceType con WHAT.MOVEMENT_DETECTED e WHAT.END_MOVEMENT_DETECTED ?
es. OpenDeviceType.SCS_MOTION_DETECTOR_SWITCH
Questo estratto da OpenWebNetDeviceDiscoveryService
Modificare detectDeviceType()
Modificare
if
per:SCS_ON_OFF_SWITCH
.Attualmente se si riceve
*1*17*23##
, il discovery lo riconosce comeSCS_DIMMER_SWITCH
.bus_motion_detector
è opportuno aggiungere e gestire un nuovoOpenDeviceType
conWHAT.MOVEMENT_DETECTED
eWHAT.END_MOVEMENT_DETECTED
?es. OpenDeviceType.SCS_MOTION_DETECTOR_SWITCH
Questo estratto da
OpenWebNetDeviceDiscoveryService
Se si, eliminare la gestione
WHAT.MOVEMENT_DETECTED
eWHAT.END_MOVEMENT_DETECTED
all'interno delOpenWebNetLightingHandler
.The text was updated successfully, but these errors were encountered: