Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ESPHome PWM fan using a Wemos D1 mini lite
# Controlling my Buva Qstream ventilation system using:
# * A Wemos D1 mini lite (an ESP8266 based board)
# * A Wemos power shield so I can power the Wemos from the ventilation units 12V supply.
# * A simple PWM to 10V convertor like this: https://www.cheaptech.nl/pwm-signaal-te-voltage-converter-1-3-khz-0-10-v-pw.html
# * The amazing ESPHome firmware tool: https://esphome.io
# * Home Assistant to tie it all together: https://www.home-assistant.io
#
# I used to use a Raspberry Pi and some Python code for this. See https://gist.github.com/SqyD/a927ab612df767a0cc892bcde23d025c
# The Wemos approach seems more stable and doesn't require external USB power.
esphome:
name: ventilation
platform: ESP8266
board: d1_mini_lite
wifi:
ssid: "SSID"
password: "secret"
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
output:
platform: esp8266_pwm
pin: D3
frequency: 5000 Hz
id: pwm_output
fan:
platform: speed
output: pwm_output
name: "Ventilation"
speed:
low: 0.05
medium: 0.4
high: 1
@cargnellogiacomo
Copy link

cargnellogiacomo commented Nov 21, 2021

hey there,

great code. I am actually trying to do the same as I also have a Buva q-Stream ventilation system.
Can you explain how your connection looks like? Did you keep also the standard Buva controller (Buva Quali/Time)?
I would like to find a way to use both the standard controller and a solution for connecting the fan to my domotic hub (homeassistant).
Thanks

Giacomo

@SqyD
Copy link
Author

SqyD commented Nov 21, 2021

@cargnellogiacomo
Copy link

cargnellogiacomo commented Nov 22, 2021

Thank you. I will give it a try then. If I see correctly from the picture, the first pin 1 has been put to ON, right?

@SqyD
Copy link
Author

SqyD commented Nov 22, 2021

@cargnellogiacomo
Copy link

cargnellogiacomo commented Nov 22, 2021

I will see if I can find some info on internet.
thank you again

Giacomo

@poldim
Copy link

poldim commented Aug 19, 2022

@SqyD
How are you able to use the custom speed setting on the fan? It looks like it was deprecated a while back:

image

@SqyD
Copy link
Author

SqyD commented Aug 19, 2022

Hi @poldim,

I no longer live in the appartment so I haven't use/maintained this integration for about 1,5 years now. Tt is very likely that it may be impacted by recent changes you mention. I don't have a solution I'm afraid.

@syphernl
Copy link

syphernl commented Aug 19, 2022

@SqyD How are you able to use the custom speed setting on the fan? It looks like it was deprecated a while back:

@poldim It's pretty easy. Replace the whole speed section (line 38 - 41) in your screenshot with speed_count: 100.

@poldim
Copy link

poldim commented Aug 23, 2022

@SqyD How are you able to use the custom speed setting on the fan? It looks like it was deprecated a while back:

@poldim It's pretty easy. Replace the whole speed section (line 38 - 41) in your screenshot with speed_count: 100.

Thanks, I was hoping to be able to use a few non linear set points for a ventilation fan of mine but it appears that's no longer an option. I'm going to play around with some template options that might allow it to work.

BTW, do you know the model of that ventilation you had in your old apartment?

@KeizerBob
Copy link

KeizerBob commented Aug 23, 2022

BTW, do you know the model of that ventilation you had in your old apartment?

@poldim The model is mentioned in the first line of the comment of this yaml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment