bramstroker / homeassistant-powercalc

Custom component to calculate estimated power consumption of lights and other appliances
MIT License
958 stars 252 forks source link

ability to enter power-on consumption for 'Sonof ZBmini01' via the configure GUI #2348

Closed morris2009 closed 2 months ago

morris2009 commented 3 months ago

Checklist

Is your feature request related to a problem? Please describe.

I have a Sonof ZBmini1 that is configured via the HUE hub, and advertises itself as "(01MINIZB) by SONOF" to HA. The powercalc configure settings for this device can only configure the standby power settings. This device is a wall-switch that is meant to switch non-smart ceiling lamps or plugs, depending on where you build this device. the default seems to be 0.33W standby, and 0,49W power-on. That is probably predefined in a profile? In my case, I want to switch 60W of lights.

Describe the solution you'd like

I would very much like to be able to enter the 60W in the GUI under the configure button.

Describe alternatives you've considered

I can perhaps try to find my way towards the YAML files, and edit the 60W setting in there for the power-on consumption.

Additional context

-

bramstroker commented 2 months ago

I have been working for a few hours to make this possible. The configuration wizard will ask extra questions now, so you could also include the actual power consumption of the appliance (when it's a fixed consumption of course).

Please let me know how this works for you.

It's just released in newest version v1.13.0

Screenshot 2024-07-05 at 11 01 34 Screenshot 2024-07-05 at 11 01 40
morris2009 commented 2 months ago

It works perfect!

bramstroker commented 2 months ago

Cool!