Page 1
Page 1
Started By
Message

Attic exhaust fan busted (smart home related - Tasmota/ESP)

Posted on 8/21/20 at 2:46 pm
Posted by Korkstand
Member since Nov 2003
29000 posts
Posted on 8/21/20 at 2:46 pm
Meter shows no continuity, so the motor is done for, right?

Figured I'd go back with the same model, which is on Amazon for $56.

I'm posting here instead of H&G board because instead of the old thermostat, I think I'm going to make it smart with a Sonoff switch, and control it with another ESP with temp/humidity sensor.

But before I do, does anyone have experience with Tasmota? I'm wondering if I can script it to fall back to operating on a schedule in case it or the weather station goes offline. In other words, I want the temp/humidity device to send the on/off signals (I guess via MQTT) while both devices are online, but if either device goes offline then I want the Sonoff to revert to a schedule until the problem is resolved. This should be pretty straightforward, right?

Posted by mchias1
Member since Dec 2009
904 posts
Posted on 8/21/20 at 4:47 pm to
Look up Shelly devices. They have exactly what you need. Also way easier to put tasmota on.

I use tasmota on all my wifi devices, but don't do any scripting on them. Seems relatively easy though.

Just reread your post, you can not send MQTT messages between devices. You need a mqtt broker. If you have a pi or a Linux computer install mqtt and node red. Use node red for your communications and scripting between devices.
This post was edited on 8/21/20 at 4:50 pm
Posted by Korkstand
Member since Nov 2003
29000 posts
Posted on 8/21/20 at 6:11 pm to
quote:

Look up Shelly devices. They have exactly what you need. Also way easier to put tasmota on.
I have looked into a few Shelly devices (mostly the relays and whole home energy meter), and while most of their devices are priced pretty cheap, the H&T sensor is a little high and it will be cheaper for me to use a nodemcu plus dht22 sensor, especially since I want to put several temp/humidity monitors around the house and attic.
quote:

I use tasmota on all my wifi devices, but don't do any scripting on them. Seems relatively easy though.
Once I get into it I'll report back on how easy it is and maybe share some code if it's not too ugly.
quote:

Just reread your post, you can not send MQTT messages between devices. You need a mqtt broker.
Yes I understand, I have several Pi's not doing anything and I need to get an IoT hub going anyway.
Posted by Korkstand
Member since Nov 2003
29000 posts
Posted on 8/26/20 at 9:37 pm to
So flashing Tasmota on a NodeMCU is stupid easy, and setting up a DHT22 temp+humidity sensor on it is also stupid easy. So for about $9 in parts I have a wifi-connected weather station up in the attic, pretty neat. It's currently 80F and 76% RH up there, but the next time we get some sun I expect to see temps in the 125 range without the fan running.

It's going to be a little harder to get Tasmota on the Sonoff switch because I have to solder some pins on it to make the connection to flash it, but it shouldn't be too difficult.

I asked about scripting, and while I think Tasmota has script support if you compile it yourself, there is an alternative to scripts based on simple rules. It looks like falling back to a schedule if the wifi is down will be pretty easy.


My new fan motor came in this evening, so assuming things don't get too crazy with the storm I will get that installed tomorrow.



I guess there is some debate on whether attic fans actually save energy. I'm sure it depends on the house, but at least I'll be able to measure the difference in mine to put some numbers to it. I'll also be able to put a number on the difference when I add a radiant barrier. Maybe I'll report back to the H&G board after I get some nice results.
Posted by guedeaux
Member since Jan 2008
13721 posts
Posted on 8/27/20 at 11:29 am to
quote:

It's going to be a little harder to get Tasmota on the Sonoff switch because I have to solder some pins on it to make the connection to flash it, but it shouldn't be too difficult.


I've used alligator clips and bent pins to make contact for the transfer on some sonoff devices, but now I usually just solder.

ESPHome is another option instead of Tasmota. I prefer ESPHome because you program the device to do exactly what you need as opposed to Tasmota which has a bunch of shite you will never use, and the interface with Home Assistant is cleaner (API vs MQTT) to me. There is a lot of debate on some discord forums regarding which is better.
Posted by Korkstand
Member since Nov 2003
29000 posts
Posted on 8/27/20 at 1:52 pm to
Thanks for the ESPHome tip. I've already got Tasmota on the Sonoff, but if I don't like how the rules works out I might switch over to ESPHome.


It's cool in the attic today, so I'm about to get this new motor wired up and install it. I really have no idea how long the old motor was burned out, it probably has never worked in the two years I've lived here. I can't believe how excited I am about a new attic fan.



Alright, it's installed and it works! And now it is going to be useless until probably the middle of next week when we get another sunny day.
This post was edited on 8/27/20 at 2:47 pm
Posted by guedeaux
Member since Jan 2008
13721 posts
Posted on 8/27/20 at 4:14 pm to
If you want to tinker with ESPHome, I can post the yaml for a sonoff I use for controlling the fans in my media cabinet. It turns on/off at certain temps, so should be a good template.

ETA: you can go back and forth between tasmota as long as OTA update is set up properly.
This post was edited on 8/27/20 at 4:15 pm
Posted by Korkstand
Member since Nov 2003
29000 posts
Posted on 8/27/20 at 5:57 pm to
quote:

If you want to tinker with ESPHome, I can post the yaml for a sonoff I use for controlling the fans in my media cabinet. It turns on/off at certain temps, so should be a good template.
That would be awesome! My media cabinet gets pretty warm, too, so I guess I need to put that project on my list.

quote:

ETA: you can go back and forth between tasmota as long as OTA update is set up properly.
You don't know how happy I am to learn that.
Posted by guedeaux
Member since Jan 2008
13721 posts
Posted on 8/27/20 at 9:56 pm to
Here is the yaml for the sonoff switch (TH16)

LINK
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on X, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookXInstagram