42 lines
1.3 KiB
XML
42 lines
1.3 KiB
XML
|
|
|
|
<device name="tasmotaplug" 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>
|
|
|