Baldhor / Homey-ESPhome-Enhanced

This is an Homey app which adds support for ESPHome devices. ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems. More information on their homepage: https://www.esphome.io/
GNU General Public License v3.0
4 stars 3 forks source link

Update of the accuracy_decimals on device connection #4

Closed Baldhor closed 10 months ago

Baldhor commented 10 months ago

Is your feature request related to a problem? Please describe. Related to issue #2, the accuracy_decimals is only setup at pairing stage, but device configuration could change over time. It could be great to be able to dynamically update the configuration.

Describe the solution you'd like Update of the capability option in Homey based on device configuration.

Describe alternatives you've considered Alternatively, the device setting page could allow overwritting of the device setting. Note: it could be additive.

Additional context none

aedens78 commented 10 months ago

Not sure if related, but the amount of decimal places seems to be ignored entirely?

According to the log on my ESPHome/slimmelezer it is reporting these values with these decimals of accuracy:

13:47:53    [D] [sensor:093]    'Power Consumed Phase 1': Sending state 0.48100 kW with 3 decimals of accuracy
13:47:53    [D] [sensor:093]    'Energy Consumed Tariff 1': Sending state 3375.22803 kWh with 3 decimals of accuracy
13:47:53    [D] [sensor:093]    'Energy Consumed Tariff 2': Sending state 3789.25708 kWh with 3 decimals of accuracy

However, in the Homey web app (in the browser) there are less decimals: image (Only 2 instead of the 3 it should display?)

And the iPhone app is even more confused: image (I'm not even going to count the amount of decimals there)

I have nothing specific set in the ESPHome config about the decimals; This is how I set the device up on the Homey: image

(The screenshots and the log snippet were taken at different moments, therefore the actual values don't match)

Baldhor commented 10 months ago

@aedens78 Thanks for all those details, you are right, it is obviously ignored! I should have enough information (thx to your screenshots) to look at it.

However, it's an obvious bug, and not directly related to the enhancement proposed here, I will separate the 2 subjects :)

Baldhor commented 10 months ago

refer to : https://github.com/Baldhor/Homey-ESPhome-Enhanced/issues/12#issuecomment-1680879637 The wizard allows to modify the options of a capability!

@aedens78 You could be interrested :)