Superkikim / mh-maxsmart-hass

Power Strip and Smart Plug home assistant custom component for Revogi based devices
2 stars 1 forks source link

pooling rate #9

Open helmi1987 opened 7 months ago

helmi1987 commented 7 months ago

how i can set the polling rate? default polling rate from 30 Seconds is for me to high

Superkikim commented 7 months ago

Hi. Yeah I agree with you. It's an anoying problem. I didn't made any change since last release, and right now, last release does not make discovery correctly so I'm getting back on this.

I'll try to fix following problems now:

  1. Discovery to work correctly for both 1.30 and 2.11 firmware (yet, for 2.11, there will still be the need to specify details)
  2. Poll interval
  3. Error handling. Right now, error handling is horrendous. If a strip does not answer a network call in an automation, the full automation will fail and stop. this might not be acceptable (it's not in my case). So I need error handling that can log errors and let the automation continue.
helmi1987 commented 7 months ago

my powerbox has the firmware 2.07 and i can test when you want ;)

thank you for your work. its great. maybe i will make a integration for grafana (loki influxdb or prometheus)

Superkikim commented 7 months ago

Can you clarify how discovery works for you ? 2.07 get the port names and strip names as well ? Because with 2.11 it doesn't. 2.11 requires the cloud. The names are not stored locally anymore.

I have 1.30 and never made an update to not get in trouble with that ^^

helmi1987 commented 7 months ago

The port names are labelled as ipaddress_portX in the homeassistant. I only used the 511 command manually. i had once done a fw update via the app. but since this no longer works or has been discontinued, i looked for a new solution and found this from you

the powerbox has now been in use in my rack for several years (5+ years). and never had any problems but only used via the app

It was my life insurance when I had to restart something