Files
aqhomecontrol/devices/mqtt/tasmota_plug_old.xml
Martin Preuss d0c8b3b284 let setData use double values instead of strings.
this allows for storing value set with setData which can then be used in
the cgi module to retrieve the last value set.
2025-10-07 23:50:50 +02: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" driverValue="off"/>
<translation aqhValue="1" driverValue="on"/>
</translations>
</value>
</values>
</mqtttopic>
</mqtttopics>
</device>