mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +00:00
mqtt2.template: add new options to zigbee and milight bridges
git-svn-id: https://svn.fhem.de/fhem/trunk@19164 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d46ea7614f
commit
61049605c4
@ -71,10 +71,20 @@ attr DEVICE setList\
|
||||
log_level:debug,info,warn,error BASE_TOPIC/bridge/config/log_level $EVTPART1\
|
||||
permit_join:true,false BASE_TOPIC/bridge/config/permit_join $EVTPART1\
|
||||
remove:textField BASE_TOPIC/bridge/config/remove $EVTPART1\
|
||||
rename:textField BASE_TOPIC/bridge/config/rename {"old":"$EVTPART1","new":"$EVTPART2"}\
|
||||
x_add_to_group:textField zigbee2mqtt/bridge/group/$EVTPART1/add $EVTPART2\
|
||||
x_rm_from_group:textField zigbee2mqtt/bridge/group/$EVTPART1/remove $EVTPART2\
|
||||
x_rm_from_all_groups:textField zigbee2mqtt/bridge/group/$EVTPART1/remove_all $EVTPART2
|
||||
y_device_setting:textField zigbee2mqtt/$EVTPART1/set {"$EVTPART2": "$EVTPART3"}}
|
||||
x_bind:textField BASE_TOPIC/bridge/bind/$EVTPART1 $EVTPART2\
|
||||
x_bind_unbind:textField BASE_TOPIC/bridge/unbind/$EVTPART1 $EVTPART2\
|
||||
x_device_options:textField BASE_TOPIC/bridge/config/device_options {"friendly_name":"$EVTPART1",""options": {"$EVTPART2": "$EVTPART3"}}\
|
||||
x_group_add_to:textField BASE_TOPIC/bridge/group/$EVTPART1/add $EVTPART2\
|
||||
x_group_rm_from:textField BASE_TOPIC/bridge/group/$EVTPART1/remove $EVTPART2\
|
||||
x_group_rm_from_all:textField BASE_TOPIC/bridge/group/$EVTPART1/remove_all $EVTPART2\
|
||||
x_group_add_group:textField BASE_TOPIC/bridge/config/add_group $EVTPART1\
|
||||
x_group_rm_group:textField BASE_TOPIC/bridge/config/remove_group $EVTPART1\
|
||||
z_elapsed:textField BASE_TOPIC/bridge/config/elapsed $EVTPART1\
|
||||
z_last_seen:textField BASE_TOPIC/bridge/config/last_seen $EVTPART1\
|
||||
z_ban:textField BASE_TOPIC/bridge/config/ban $EVTPART1\
|
||||
z_rename:textField BASE_TOPIC/bridge/config/rename {"old":"$EVTPART1","new":"$EVTPART2"}\
|
||||
z_reset_CC:noArg BASE_TOPIC/bridge/config/reset
|
||||
attr DEVICE setStateList on off
|
||||
attr DEVICE model L_01_zigbee2mqtt_bridge
|
||||
# Based on https://forum.fhem.de/index.php/topic,94060.msg872371.html#msg872371
|
||||
@ -970,6 +980,7 @@ attr DEVICE stateFormat Status: \
|
||||
Signal: \
|
||||
2:signal\
|
||||
<br>Uptime: formatedUptime
|
||||
attr DEVICE devStateIcon 1.true:it_net 1.false:it_net@red 2.true:lan_rs485 2.false:lan_rs485@red
|
||||
attr DEVICE setList getKnown:noArg DEV_ID/list onlyknown\
|
||||
getAll:noArg DEV_ID/list
|
||||
set DEVICE getKnown
|
||||
@ -991,6 +1002,12 @@ par:BASE_ID;BASE_ID typically is milight;{ AttrVal("DEVICE","readingList","") =~
|
||||
attr DEVICE bridgeRegexp BASE_ID/[^/]*at[^/]+[/]/(0x....)/.*/([0-4])?.*:.* "milight_$1_$2"
|
||||
attr DEVICE autocreate 1
|
||||
attr DEVICE setStateList on off
|
||||
attr DEVICE stateFormat <a href="http://ip_address" target="_blank">\
|
||||
LWT\
|
||||
</a>\
|
||||
Version: \
|
||||
version
|
||||
attr DEVICE devStateIcon online:10px-kreis-gruen offline:10px-kreis-rot
|
||||
attr DEVICE model X_01_esp_milight_hub_bridge
|
||||
|
||||
#rgbw-bulb
|
||||
|
Loading…
x
Reference in New Issue
Block a user