From 2a681cad27600afe046a32c67e98e1123cb429a1 Mon Sep 17 00:00:00 2001 From: Beta-User <> Date: Sat, 28 Aug 2021 09:20:20 +0000 Subject: [PATCH] mqtt_generic_brige.template: add avr type git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24880 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/lib/AttrTemplate/mqtt_generic_bridge.template | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/FHEM/lib/AttrTemplate/mqtt_generic_bridge.template b/FHEM/lib/AttrTemplate/mqtt_generic_bridge.template index 1f6ba8fa7..a38f9fa19 100644 --- a/FHEM/lib/AttrTemplate/mqtt_generic_bridge.template +++ b/FHEM/lib/AttrTemplate/mqtt_generic_bridge.template @@ -214,3 +214,17 @@ attr TARGETDEV MQTTPREFIXAlias dim=pct option:{ SENDALLREADINGS && InternalVal("TARGETDEV",'TYPE','none') eq 'FBDECT' } attr TARGETDEV MQTTPREFIXPublish *:topic={"$base/$device/$name"} attr TARGETDEV MQTTPREFIXAlias dim=pct + + +############ +name:mgb_avr +prereq:{my @devices=devspec2array("TYPE=MQTT_GENERIC_BRIDGE");return 1 if $devices[0];return 0} +filter:TYPE=MQTT_GENERIC_BRIDGE +desc:This template is intented to allow control for all "FHEM-like" audio/video receivers like PIONEERAVR or YAMAHA_AVR type devices.
NOTE: Early testing version, see https://forum.fhem.de/index.php/topic,122632.msg1171882.html#msg1171882 for details.
Might still need some changes! +order:M_10000 +par:TARGETDEV;Pls enter name of the device you want to put under MQTT_GENERIC_BRIDGE controll;{ undef } +par:MQTTPREFIX;prefix used in MGB;{ InternalVal("DEVICE",'prefix',undef) } + +option:global +attr TARGETDEV MQTTPREFIXPublish state:topic={"$base/$device"} volume|mute|speakers|input:topic={"$base/$device/$name"} +attr TARGETDEV MQTTPREFIXSubscribe state:stopic={"$base/$device"} volume|mute|speakers|input:stopic={"$base/$device/$name"}