Beiträge von HAUser@NL

    A few weeks ago I bought my first Shelly product being the Plus Plug S. I've integrated the plug in Home Assistant using the standard integration. I noticed that no power and energy readings are shown Home Assistant. So I used the API to see if that would produce the correct values. Unfortunately it doesn't. There is a load connected to the plug, it's clock is synchronized and voltage plus current is displayed correctly. I assume that since P=U*I and energy=P*t, the firmware of the device has to calculate the power and energy values.

    The command http://IP address/rpc/Shelly.GetStatus produces the following output:

    {

    "ble": {},

    "cloud": {

    "connected": false

    },

    "mqtt": {

    "connected": false

    },

    "plugs_ui": {},

    "switch:0": {

    "id": 0,

    "source": "button",

    "output": true,

    "apower": 0,

    "voltage": 236.6,

    "current": 0.29,

    "aenergy": {

    "total": 0,

    "by_minute": [

    0,

    0,

    0

    ],

    "minute_ts": 1700390751

    },

    "temperature": {

    "tC": 34.3,

    "tF": 93.7

    }

    },

    "sys": {

    "mac": "3CE90E2FD284",

    "restart_required": false,

    "time": "11:45",

    "unixtime": 1700390753,

    "uptime": 160227,

    "ram_size": 246160,

    "ram_free": 144876,

    "fs_size": 458752,

    "fs_free": 139264,

    "cfg_rev": 38,

    "kvs_rev": 3,

    "schedule_rev": 0,

    "webhook_rev": 0,

    "available_updates": {

    "stable": {

    "version": "1.0.8"

    }

    }

    },

    "wifi": {

    "sta_ip": "IP address",

    "status": "got ip",

    "ssid": "XXXXXXXXX",

    "rssi": -74

    },

    "ws": {

    "connected": false

    }

    }

    May I assume that "apower" corresponds with the power value in W?

    That "aenergy" corresponds to the Wh of kWh?

    Any idea why "apower" shows 0?

    Any idea why "aenergy" is 0?