Shelly PM1 component for voltage not updating via websock notifications; likely due to 5% delta rule

  • While debugging everything Shelly, I traced that voltage changes are not being sent from the Shelly to HA on ws notifications. The logs show only aenergy and ret_aenergy. The Shelly documentation does not clearly define what measured variables are sent in a NotifyStatus notification (as compared to the full detailed NotifyFullStatus. I did find https://shelly-api-docs.shelly.cloud/gen2/Component…#webhook-events which writes webhook events only fire when the voltage changes at least 1V and at least 5% from the last reported value.

    But... this is voltage....230 volts. 5% is +/- 11.5v. So if Shelly's internal logic is to only send webhooks (and likely notifies) if the voltage goes lower than 218.5v or higher than 241.5v ... that's just too large a range in which to send no voltage notifications.

    Similar rules apply to current; at least 0.05a and 5% from previous value. However, this might be more reasonable for amps.

    I see the Shelly integration system option for polling was already set on install to be TRUE. But I don't see evidence of polling in the debug logs (attached below)

    Manually curl to the shelly correctly returns voltage

    Home Assistant Shelly integration related bug at https://github.com/home-assistant/core/issues/111598

  • Welcome to the forum!

    Which Shelly are you taking about? Shelly plus 1PM or Shelly 1PM? Shelly 1PM is a first generation device which doesn’t support voltage reports.

    „Habt Geduld. Alle Dinge sind schwierig, bevor sie einfach werden!“ (aus Frankreich)

    „Nothing in life is to be feared, it is only to be understood.“ (Marie Curie, 1867-1934)

    „Comment is free, but facts are sacred“ (C.P. Scott, britischer Verleger)

  • The two test devices I have are both Shelly PM mini gen3

    Please notice I wrote COMPONENT. "PM1" is the name of the COMPONENT within the Shelly firmware architecture

    https://shelly-api-docs.shelly.cloud/gen2/ComponentsAndServices/PM1

    json diag of:

    ```

    "deviceInfo": {

    "name": "ShellyPMMiniG3-1",

    "id": "shellypmminig3-84fce63c4960",

    "mac": "84FCE63C4960",

    "slot": 0,

    "key": "redacted",

    "batch": "2347-Broadwell",

    "fw_sbits": "00",

    "model": "S3PM-001PCEU16",

    "gen": 3,

    "fw_id": "20240223-141904/1.2.2-g7c39781",

    "ver": "1.2.2",

    "app": "MiniPMG3",

    "auth_en": false,

    "auth_domain": null

    }

    ```

  • Dieses Thema enthält 3 weitere Beiträge, die nur für registrierte Benutzer sichtbar sind.