domoticz / domoticz

Open source Home Automation System
http://www.domoticz.com
GNU General Public License v3.0
3.48k stars 1.12k forks source link

Xiaomi Smart Plug Power Consumption #2594

Closed Lyr3x closed 6 years ago

Lyr3x commented 6 years ago

I searched the forum/wiki and the solved issues and i came to the conclusion that the xiamo smart plug should show up with energy consumption. But for me (V4.9730) this is not happening. I only can toggle the smart plug.

Maybe there is an issue with the last commits regarding to this problem.

{
   "ActTime" : 1532624969,
   "AstrTwilightEnd" : "00:24",
   "AstrTwilightStart" : "02:52",
   "CivTwilightEnd" : "22:07",
   "CivTwilightStart" : "05:09",
   "DayLength" : "15:37",
   "NautTwilightEnd" : "23:03",
   "NautTwilightStart" : "04:13",
   "ServerTime" : "2018-07-26 19:09:29",
   "SunAtSouth" : "13:05",
   "Sunrise" : "05:50",
   "Sunset" : "21:26",
   "app_version" : "4.9730",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 1,
         "Data" : "Off",
         "Description" : "",
         "DimmerType" : "none",
         "Favorite" : 0,
         "HardwareID" : 27,
         "HardwareName" : "Xiaomi",
         "HardwareType" : "Xiaomi Gateway",
         "HardwareTypeVal" : 95,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "01BFAC87",
         "Image" : "WallSocket",
         "IsSubDevice" : false,
         "LastUpdate" : "2018-07-26 19:03:54",
         "Level" : 0,
         "LevelInt" : 0,
         "MaxDimLevel" : 100,
         "Name" : "Xiaomi Smart Plug",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Off",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "Switch",
         "SwitchType" : "On/Off",
         "SwitchTypeVal" : 0,
         "Timers" : "false",
         "Type" : "Light/Switch",
         "TypeImg" : "lightbulb",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "194"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}
Lyr3x commented 6 years ago

Okay thats wierd. After 7 days the new Consumption device appears. Big delay though