arjenhiemstra / ithowifi

Itho wifi add-on module (ESP32 wifi to itho I2C protocol)
GNU General Public License v3.0
192 stars 32 forks source link

[feature request] give correct slider position when auto humid is active #178

Open 0crap opened 1 year ago

0crap commented 1 year ago

On my Itho CVE-S ECO SP, with factory build-in humidity sensor, the fan goes automagically to High when it sees a jump in humidity. Perfectly fine. However, the Add-on does not update the slider position on the main webpage. (And also does not update MQTT info.)

However, I do notice the Itho status page shows the correct Ventilation setpoint (%). Itho status The webAPI /api.html?get=ithostatus is also able to provide the correct info for "Fan setpoint (rpm)" and "Fan speed (rpm)".

It seems to me it should be possible to use this info to correctly adjust the slider position and update MQTT when the humid status is active and controlling the fan. Can that be done?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

0crap commented 1 year ago

I don't make the time and effort of creating an issue to let it be closed by a bot. At least a remark from development is appreciated.

svrooij commented 1 year ago

I'm also wondering this. We have the build-in humidity version and it ramps up when we shower, but it does not show up correctly in home assistant.

arjenhiemstra commented 1 year ago

The difficulty is that the slider is input for the PWM protocol that itho uses (values between 0-255) and the ventilation setpoint is the result of that command (0-100%). I can have a look if the slider can be updated based on the ventilation setpoint info but I'm not sure if that info is available on all itho firmware versions.

In the mean time; the ventilation setpoint is also available on MQTT. You could use that information to update the status of the slider in ie. Home Assistant (you probably have to add the config manually then but you can use the auto discovery config as a template)

svrooij commented 1 year ago

If you receive a new value for the setpoint you can do:

slider = round(setpoint * 2.55);

The auto-detected fan control in home assistant would also benefit from this. Now the level is stuck at the level that was set, not the level it changed itself to because it's humid (in our situation with a humidity sensor built-in).

remcom commented 8 months ago

I would also love to see the slider correctly update when it is on auto.

arjenhiemstra commented 8 months ago

problem is that this info only is available from the itho firmware. Standard there is at least a 60 sec. delay between the action and the update of the slider. That is very unpractical and confusing for a UI. Furthermore, there is a difference between older CVE models, newer CVE models and different HRU models in how itho firmware versions represent the actual speed in itho firmware are represented in the itho firmware.