[Shelly] Create issues if CoIoT is not configured for Gen1 devices

Recently @Bieniu added PR (Create an issue if Shelly TRV is not calibrated by bieniu · Pull Request #96952 · home-assistant/core · GitHub) that is creating issues if the Shelly TRV is not calibrated.
I propose to add additional issues for:

  • CoIoT - if the coiot.peer is null or empty or coiot.enabled = false (API Reference) - we require CoIoT to be enabled (Shelly - Home Assistant), so we should create issues if it is wrong configured. I’m not sure if we can check coiot.peer, if it is a valid URL (it should be the address of our home assistant instance)
  • Shelly 2 & 2.5 in relay mode - if the positioning is false (API Reference) - to be able to control the position of the roller shutter we must calibrate the device. We can suggest user to do this.
  • Shelly Dimmer 1/2 - check if calibrated is set to false (API Reference), Calibration is needed to be able to dim the lights correctly.

There were numerous issues in the core repo that were solved by correctly configuring CoIoT or calibrating roller shutters.

The first point is already implemented Create an issue if push updates fail for Shelly gen1 devices by bieniu · Pull Request #96910 · home-assistant/core · GitHub

Maciej,

thank you for your quick reply. If I understand correctly you check if there are at least 5 missing push updates (they should be done via CoIoT?)
what about checking for coiot.enabled and coiot.peer? Not sure if this will help. I guess the end result will be the same - the user will get info that coiot is not configured or badly configured, but we could be more explicit with issue details - you don't have CoIoT configured or your configuration is bad.

What about the other two cases? I’ve looked at your PR and I’ve tried to create a similar one for Dimmer, but wasn’t sure in which place I should create the issue.

Missing push updates can be caused not only by missing/incorrect Coiot configuration but also by network issues. Therefore, checking whether push notifications reach the HA server is the best indicator of a problem or lack of it.

For gen1 devices in roller mode it is allowed by Shelly for the device not to be calibrated. In this case, positioning will not be possible, but the device will work.

I agree, but we can create issues that can be ignored, so if someone doesn’t want to have position control he can always ignore the issue.
I guess the same applies to Dimmers, I have one in my house, and it was working, but it wasn’t calibrated, after doing calibration I was able to dim lights and I have no flickering.