mqtt: added descriptor for old tasmota setup.
Previously I used to rename tasmota plugs to "plugXX". We now use the device id out of the box.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
<gwbuild>
|
||||
<data dist="true" install="$(datadir)/aqhome/devices/mqtt">
|
||||
tasmota_plug.xml
|
||||
tasmota_plug_old.xml
|
||||
</data>
|
||||
|
||||
</gwbuild>
|
||||
|
||||
41
devices/mqtt/tasmota_plug_old.xml
Normal file
41
devices/mqtt/tasmota_plug_old.xml
Normal file
@@ -0,0 +1,41 @@
|
||||
|
||||
|
||||
<device name="tasmotaplugold" driver="mqtt">
|
||||
|
||||
<mqtttopics>
|
||||
<mqtttopic type="json" name="sensor" direction="in" >
|
||||
<mask>tele/tasmota/*/SENSOR</mask>
|
||||
<beforeId>tele/tasmota/</beforeId>
|
||||
<afterId>/SENSOR</afterId>
|
||||
|
||||
<values>
|
||||
<value name="powerusage" type="sensor" path="ENERGY/POWER" units="W" />
|
||||
<value name="totalenergy" type="sensor" path="ENERGY/TOTAL" units="kWh" />
|
||||
<value name="apparentpower" type="sensor" path="ENERGY/ApparentPower" units="VA" />
|
||||
<value name="reactivepower" type="sensor" path="ENERGY/ReactivePower" units="VAr" />
|
||||
<value name="powerfactor" type="sensor" path="ENERGY/Factor" />
|
||||
<value name="voltage" type="sensor" path="ENERGY/Voltage" units="V" />
|
||||
<value name="current" type="sensor" path="ENERGY/Current" units="A" />
|
||||
</values>
|
||||
|
||||
</mqtttopic>
|
||||
|
||||
<mqtttopic type="num" name="power" direction="out" >
|
||||
<beforeId>cmnd/tasmota_</beforeId>
|
||||
<afterId>/Power</afterId>
|
||||
|
||||
<values>
|
||||
<value name="power" type="actor">
|
||||
<translations>
|
||||
<translation aqhValue="0.0" driverValue="off"/>
|
||||
<translation aqhValue="1.0" driverValue="on"/>
|
||||
</translations>
|
||||
</value>
|
||||
</values>
|
||||
|
||||
</mqtttopic>
|
||||
|
||||
</mqtttopics>
|
||||
|
||||
</device>
|
||||
|
||||
Reference in New Issue
Block a user