From 9bcc4caadf7870c87a7bde2dfd5d4b7601bfaa45 Mon Sep 17 00:00:00 2001 From: Beta-User <> Date: Sun, 6 Nov 2022 09:28:57 +0000 Subject: [PATCH] mqtt2.template: order for z2m alarm_sound git-svn-id: https://svn.fhem.de/fhem/trunk@26664 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/lib/AttrTemplate/mqtt2.template | 1 + 1 file changed, 1 insertion(+) diff --git a/fhem/FHEM/lib/AttrTemplate/mqtt2.template b/fhem/FHEM/lib/AttrTemplate/mqtt2.template index 53d17d1de..6b26cbd66 100644 --- a/fhem/FHEM/lib/AttrTemplate/mqtt2.template +++ b/fhem/FHEM/lib/AttrTemplate/mqtt2.template @@ -959,6 +959,7 @@ setreading DEVICE attrTemplateVersion 20200904 name:zigbee2mqtt_alarm_sound desc: Alarm sound controller via zigbee2mqtt
Tested with: Tuya Neo NAS-AB02B2 sound device filter:TYPE=MQTT2_DEVICE:FILTER=CID~zigbee.* +order:L_15a par:BASE_TOPIC;base topic set in configuration.yaml of the zigbee2mqtt bridge;{ AttrVal('DEVICE','devicetopic',AttrVal('DEVICE','readingList','')) =~ m,[\b]?([^/:]+)[/].+, ? $1 : undef } par:DEV_ID;name of the device in the zigbee2mqtt bridge;{ AttrVal('DEVICE','devicetopic',AttrVal('DEVICE','readingList','')) =~ m,[^/]+[/]([^/:]+).*, ? $1 : undef } par:ICON;ICON as set, defaults to audio_volume_mid;{ AttrVal('DEVICE','icon','audio_volume_mid') }