mk-maddin / wattpilot-HA

This is a custom component to allow control of Fronius Wattpilot wallbox/electro vehicle charging devices in Homeassistant.
Apache License 2.0
61 stars 11 forks source link

Feature Request: Support for Negative Values in "Eco Mode price limit" #52

Open rob1037 opened 1 month ago

rob1037 commented 1 month ago

Describe the issue you are experiencing The entity “number.wattpilot_max_price” cannot be set to a negative value. In the Solar.wattpilot app (iOS), however, it is possible to enter a negative value for “Eco Mode price limit” (e.g. -2).

Describe the expected behavior It should also be possible to enter negative prices.

To Reproduce Steps to reproduce the behavior: Try to set a negative price (number.wattpilot_max_price)

What version of Home Assistant Core is installed 2024.9.2

Screenshots IMG_7576

Screenshot 2024-10-01 215618

Additional Information I use this, for example, to ensure that only the surplus from the PV system is used. If you charge using a flexible tariff, you should check the prices anyway and reassign the field accordingly.

Thanks for your work and the integration so far!

mk-maddin commented 1 month ago

Can you please verify: https://github.com/mk-maddin/wattpilot-HA/commit/a11c368cc19c14ba42b2707926fe5e10bffd4fe5 ?

rob1037 commented 1 month ago

Can you please verify: a11c368 ?

Hello,

Unfortunately, I don't know how to test this directly from Gitbub. However, I was able to see which file is the right one and where it’s stored because of your changes. I switched the number "0" manually to "-9999". After restarting HA, entering a negative amount worked. The amount is then immediately visible in the Wattpilot app (iOS).

Thank you very much!