From bf8cc6da4b47449c9b6b86a26042c59083317b55 Mon Sep 17 00:00:00 2001 From: Beta-User <> Date: Sun, 18 Jul 2021 06:20:20 +0000 Subject: [PATCH] mqtt2.template +others: cref to id; update ebus utils git-svn-id: https://svn.fhem.de/fhem/trunk@24767 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/lib/AttrTemplate/mqtt2.template | 11 +++- .../99_attrT_z2m_thermostat_Utils.pm | 2 +- .../AttrTemplate/99_attrTmqtt2_ebus_Utils.pm | 64 +++++++++++++++---- .../99_attrTmqtt2_roborock_Utils.pm | 2 +- 4 files changed, 64 insertions(+), 15 deletions(-) diff --git a/fhem/FHEM/lib/AttrTemplate/mqtt2.template b/fhem/FHEM/lib/AttrTemplate/mqtt2.template index a0abff26d..41490ddef 100644 --- a/fhem/FHEM/lib/AttrTemplate/mqtt2.template +++ b/fhem/FHEM/lib/AttrTemplate/mqtt2.template @@ -3387,7 +3387,7 @@ setreading DEVICE attrTemplateVersion 20200602 #ebus daemon device name:eBus_daemon_splitter filter:TYPE=MQTT2_DEVICE -desc:Device containing all status messages from the ebus daemon itself
NOTE: acts also as a bridge device to split up the hardware on the bus into different mqtt2_devices
NOTE:
- for use with MQTT2_CLIENT use a copy of the Device with the same clientId than the IO, delete original's readingList after applying the template!
- this might change the devices CID +desc:Device containing all status messages from the ebus daemon itself
NOTE: acts also as a bridge device to split up the hardware on the bus into different mqtt2_devices
NOTE:
- for use with MQTT2_CLIENT use a copy of the Device with the same clientId than the IO, delete original's readingList after applying the template!
- this might change the devices CID
-To configure further parts of your ebus ecosystem, additional templates will be available, for details see Wiki, to see more info about the provided code, issue help attrTmqtt2_ebus_Utils. order:E_01a par:DEVTYPE;Internal TYPE of the device; { InternalVal("DEVICE",'TYPE',undef)} par:DEV_ID;base topic set ebus;{ AttrVal("DEVICE",'readingList','') =~ m,[^:]+:?(ebus[a-zA-Z][^/]*)[/].*:, ? $1 : 'ebusd' } @@ -3418,10 +3418,17 @@ attr DEVICE setList getKnown:noArg DEV_ID/list onlyknown\ getAll:noArg DEV_ID/list set DEVICE getKnown attr DEVICE comment NOTE: additional templates and code have been downloaded from svn (contrib).
Pls. inform the maintainer, if the bridgeRegexp doesn't fit to all of your devices connected to the bus. -farewell:template has been applied successfully.
NOTE: additional templates and code have been downloaded from svn (contrib).
To configure further parts of your ebus ecosystem, have a look at these templates and the Wiki. +farewell:template has been applied successfully.
NOTE: additional templates and code have been downloaded from svn (contrib).
To configure further parts of your ebus ecosystem, have a look at these templates and the Wiki, to see more info about the provided code, issue help attrTmqtt2_ebus_Utils. attr DEVICE model eBus_daemon_splitter setreading DEVICE attrTemplateVersion 20210715 +name:ebus_update_files_from_svn +filter:TYPE=MQTT2_DEVICE +desc:template to download or update additional code and attrTemplates from svn. Might be usefull in case there had been some updates... +order:E_01a1 +{ Svn_GetFile('contrib/AttrTemplate/99_attrTmqtt2_ebus_Utils.pm', 'FHEM/99_attrTmqtt2_ebus_Utils.pm', sub(){ CommandReload(undef, '99_attrTmqtt2_ebus_Utils') }) } +{ Svn_GetFile("contrib/AttrTemplate/mqtt2.ebus.template", "FHEM/lib/AttrTemplate/mqtt2.ebus.template", sub(){ AttrTemplate_Initialize() }) } +farewell:Download has been initiated. You may find Wiki usefull; to see more info about the provided code, issue help attrTmqtt2_ebus_Utils ########################################### # ems-esp diff --git a/fhem/contrib/AttrTemplate/99_attrT_z2m_thermostat_Utils.pm b/fhem/contrib/AttrTemplate/99_attrT_z2m_thermostat_Utils.pm index eaad48f2e..1c3fd91b2 100644 --- a/fhem/contrib/AttrTemplate/99_attrT_z2m_thermostat_Utils.pm +++ b/fhem/contrib/AttrTemplate/99_attrT_z2m_thermostat_Utils.pm @@ -119,7 +119,7 @@ __END__ =pod =begin html - +

attrT_z2m_thermostat_Utils