Skip to content

Commit

Permalink
Update ShellyUSA.ShellyUSA_Driver_Library.groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielWinks committed Feb 21, 2024
1 parent c106ebb commit 4810793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ShellyDriverLibrary/ShellyUSA.ShellyUSA_Driver_Library.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ void updated() {
]
@Field static List powerMonitoringDevices = [
'SNPL-00116US',
'S3PM-001PCEU16'
'S3PM-001PCEU16',
'SNSW-001P16EU'
]

@Field static List bluGatewayDevices = [
Expand Down Expand Up @@ -575,7 +576,6 @@ void processWebsocketMessagesBluetoothEvents(LinkedHashMap json) {
LinkedHashMap evtData = (LinkedHashMap)event?.data
String address = (String)evtData?.address
address = address.replace(':','')
logInfo("DNI: ${address}")
if(address != null && address != '' && evtData?.button != null) {
Integer button = evtData?.button as Integer
if(button < 4 && button > 0) {
Expand Down

0 comments on commit 4810793

Please sign in to comment.