Skip to content

Latest commit

 

History

History
87 lines (68 loc) · 2.61 KB

plug.md

File metadata and controls

87 lines (68 loc) · 2.61 KB

States for PLUG

version: 1.2.1

plug_heartbeat

energy

plug_heartbeat

diagnostic

State Name values
errCode Plug Error Code {0:OK ?}
warnCode Plug Warn Code {0:OK ?}

string

State Name
country Install Country
town Install Town
resetReason reset reason
rtcResetReason RTC Reset Reason
resetCount reset count
lanState lan state
stackFree stack free
stackMinFree stack min free
meshId mesh id
meshLayer mesh layer
selfMac self mac
parentMac parent mac
otaDlErr ota dl err
otaDlTlsErr ota dl tls err
staIpAddr sta ip addr
matterFabric matter fabric
wifiErr wifi err
wifiErrTime wifi err time
mqttErr mqtt err
mqttErrTime mqtt err time
rssiThreshold rssi threshold
rssiVariance rssi variance

number

State Min Max Unit Mult Name
maxCur 0 11 A 0.1 Plug AC max. current
temp 0 80 °C 1 Plug temperature
freq 0 52 Hz 1 Plug AC frequency
current 0 11 A 0.001 Plug AC current
volt 0 250 V 1 Plug AC voltage
watts 0 2500 W 0.1 Plug AC power
heartbeatFrequency 0 20 Hz 1 Plug heartbeat
uptime 0 n/a s 1 Smart plug uptime
geneNum 0 20 pcs 1 Amount of PS
consNum 0 20 pcs 1 Amount of Plugs connected to PS
geneWatt 0 800 W 0.1 Power Stream(s) output power
powerPlugs 0 1000 W 0.1 Power of plugs
parentWifiRssi -90 10 dBm 1 parent wifi RSSI

switch

State off on Name cmd
switch off on Plug Switch {cmdFunc:2,cmdId:129,dataLen:2}
meshEnable disabled enabled Plug Mesh enable {cmdFunc:2,cmdId:138,dataLen:2}
dynWattEnable off on Dynamic watt enable {cmdFunc:2,cmdId:142,dataLen:2}

level

State Min Max Unit Mult Name cmd
brightness 0 100 % 0.097752 Plug brightness {cmdFunc:2,cmdId:130,dataLen:3}
maxWatts 1000 2500 W 1 Plug Max. AC power {cmdFunc:2,cmdId:137,dataLen:3}

energy

number

State Min Max Unit Mult Name
watth5 0 60000 Wh 1 Energy of smart plug
watth6 0 1440 min 1 Smart plug ON time