mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
mqtt_generic_brige.template: add avr type
git-svn-id: https://svn.fhem.de/fhem/trunk@24880 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f31f13b0bc
commit
d869702dd4
@ -214,3 +214,17 @@ attr TARGETDEV MQTTPREFIXAlias dim=pct
|
|||||||
option:{ SENDALLREADINGS && InternalVal("TARGETDEV",'TYPE','none') eq 'FBDECT' }
|
option:{ SENDALLREADINGS && InternalVal("TARGETDEV",'TYPE','none') eq 'FBDECT' }
|
||||||
attr TARGETDEV MQTTPREFIXPublish *:topic={"$base/$device/$name"}
|
attr TARGETDEV MQTTPREFIXPublish *:topic={"$base/$device/$name"}
|
||||||
attr TARGETDEV MQTTPREFIXAlias dim=pct
|
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.<br>NOTE: Early testing version, see https://forum.fhem.de/index.php/topic,122632.msg1171882.html#msg1171882 for details.<br>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"}
|
||||||
|
Loading…
Reference in New Issue
Block a user