Files
aqhomecontrol/devices/mqtt/tasmota_plug_old.xml
Martin Preuss 277af02f68 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.
2025-01-05 00:50:28 +01:00

42 lines
1.3 KiB
XML

<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>