arjenhiemstra / ithowifi

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

Fan not keeping set speed #219

Closed FrankvdAa closed 6 months ago

FrankvdAa commented 6 months ago

Describe the bug Fan is not keeping the speed as set in the MQTT message.

To Reproduce Add-on is connected to NodeRed through MQTT and CVE is running in 'auto' mode. Humidity and CO2 are low and fan speed is around 30%.

When sending a { "vremote": "high" } or { "vremote": "medium" } message all works as expected. When sending { "speed": 50 } or { "speed": 220 } I do get a confirmation on the itho/state topic showing the same speed and I see the full command also in the itho/lastcmd topic. However, you can hear the fan change speed only briefly before it returns to its original speed.

Expected behaviour I would expect it to keep the speed as set in the message. I know sending commands only work when in 'auto'/'medium' mode, but that is the case here. Am I overlooking something?

Device information

Debug logging I couldn't find any useful logging, but let me know what you need to investigate.

arjenhiemstra commented 6 months ago

If your fan returns to another speed than set by a speed command, the command is being overruled by something else. This could be another command, remote device or internal Hum or CO2 sensor.

FrankvdAa commented 6 months ago

That was what I was thinking at first too, but would it also lower the fan speed?

FrankvdAa commented 6 months ago

Other remotes are not being used, nor is another command being sent to the add-on, so it can only be humidity or co2 that is overruling it. Any way to be sure?

arjenhiemstra commented 6 months ago

some input is changing the speed. Most of the times it is a persistent MQTT topic or something else. What does http:://[your add-on ip]/api.html?get=lastcmd show as output?

arjenhiemstra commented 6 months ago

I see you mentioning CO2, what kind of CO2 sensor are we talking about?

FrankvdAa commented 6 months ago

The itho/lastcmd topic shows just my last command. The CO2 I'm talking about is the build-in one.

arjenhiemstra commented 6 months ago

Have you read this on the product page?

image

See for more information also the wiki on this github: https://github.com/arjenhiemstra/ithowifi/wiki/CO2-sensors

FrankvdAa commented 6 months ago

Yes, did see that, but may have misread it, looking at it now ;-)

I read it as if the CO2 would overrule any commands in case CO2 became too high, but I reckon it overwrites them always, right?

arjenhiemstra commented 6 months ago

yep, every 30 seconds or so. A (virtual) remote command low will overrule the CO2 sensor.

FrankvdAa commented 6 months ago

Okay clear, but then the speed command still doesn't work, or does it then?

arjenhiemstra commented 6 months ago

not persistent because the co2 add-on inside your itho itself sends a speed command every time

FrankvdAa commented 6 months ago

Clear, thanks. I can manage with the vremote commands, so no problem.

arjenhiemstra commented 6 months ago

If you have suggestions to make the explanation more clear, feel free to suggest an edit!

FrankvdAa commented 6 months ago

Maybe add a short explanation and change:

The I2C to PWM protocol is overruled by the CO2 sensor. Virtual remote commands work as expected.

To something like:

The I2C to PWM protocol is overruled by the CO2 sensor, meaning it is not possible to persistently set a different fan speed, as it is overruled by the CO2 sensor. Virtual remote commands, such as 'low', 'medium' and 'high' do work as expected.