1+ /* groovylint-disable CompileStatic, MethodCount, MethodSize, UnnecessaryGetter */
12/**
2- * Echo Speaks Zone Device (Hubitat ONLY)
3+ * Echo Speaks Zone Device (Hubitat ONLY)
34 *
4- * Copyright 2018, 2019, 2020, 2021, 2022, 2023 Anthony Santilli
5+ * Copyright 2018, 2019, 2020, 2021, 2022, 2023, 2024 Anthony Santilli
56 * Code Contributions by @nh.schottfam
67 *
78 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
@@ -25,8 +26,8 @@ import java.text.SimpleDateFormat
2526// ************************************************
2627// * STATIC VARIABLES *
2728// ************************************************
28- @Field static final String devVersionFLD = ' 4.2.2 .0'
29- @Field static final String devModifiedFLD = ' 2022-12-22 '
29+ @Field static final String devVersionFLD = ' 4.2.4 .0'
30+ @Field static final String devModifiedFLD = ' 2024-03-07 '
3031@Field static final String sNULL = (String )null
3132@Field static final String sBLANK = ' '
3233@Field static final String sSPACE = ' '
@@ -97,7 +98,7 @@ metadata {
9798 attribute " volume" , " number"
9899 attribute " wakeWords" , " enum"
99100 attribute " wasLastSpokenToDevice" , " string"
100-
101+
101102 attribute " audioTrackData" , " JSON_OBJECT" // To support SharpTools.io Album Art feature
102103
103104 command " replayText"
@@ -258,7 +259,7 @@ String getEchoAccountId() { return (String)state.deviceAccountId ?: sNULL }
258259
259260Map getEchoDevInfo (String cmd , Boolean ignoreDoNotDisturb = false ) {
260261 if (isCommandTypeAllowed(cmd, false , ignoreDoNotDisturb)) {
261- return [deviceTypeId : getEchoDeviceType(), deviceSerialNumber : getEchoSerial(), deviceOwnerCustomerId : getEchoOwner(), deviceAccountId : getEchoAccountId(), dni : device. deviceNetworkId ]
262+ return [deviceTypeId : getEchoDeviceType(), deviceSerialNumber : getEchoSerial(), deviceOwnerCustomerId : getEchoOwner(), deviceAccountId : getEchoAccountId(), dni : device. deviceNetworkId ]
262263 }
263264 return null
264265}
@@ -615,7 +616,7 @@ void refreshData(Boolean full=false) {
615616 // logTrace("permissions: ${state.permissions}")
616617 if ((Boolean )state. permissions?. mediaPlayer && (full || mfull || ! wsActive)) {
617618 getPlaybackState()
618- if (! isWHA) { getPlaylists() }
619+ // if(!isWHA) { getPlaylists() }
619620 }
620621 if (! isWHA) {
621622 if (full || mfull) {
@@ -1195,7 +1196,7 @@ private String sendAmazonCommand(String method, Map params, Map otherData=null)
11951196private Map getDeviceData (){
11961197 return [deviceType : getEchoDeviceType(), serialNumber : getEchoSerial(), owner : getEchoOwner(), account : getEchoAccountId(), dni : device. deviceNetworkId]
11971198// Map getEchoDevInfo(cmd) {
1198- // return [deviceTypeId: getEchoDeviceType(), deviceSerialNumber: getEchoSerial(), deviceOwnerCustomerId: getEchoOwner(), deviceAccountId: getEchoAccountId(), dni: device.deviceNetworkId ]
1199+ // return [deviceTypeId: getEchoDeviceType(), deviceSerialNumber: getEchoSerial(), deviceOwnerCustomerId: getEchoOwner(), deviceAccountId: getEchoAccountId(), dni: device.deviceNetworkId ]
11991200}
12001201
12011202private void sendSequenceCommand (String type , String command , value = null , String callback = sNULL) {
0 commit comments