Go to file
2020-05-13 16:40:55 -05:00
common Add a bunch of Feit Dimmers 2020-05-13 16:36:37 -05:00
.gitignore Add basement bathroom devices 2020-02-03 22:03:45 -06:00
.standard_tuya_dimmer.yaml Add MOES Family Room Dimmer 2020-02-14 16:42:47 -06:00
.standard.yaml Logging updates 2020-02-13 20:59:08 -06:00
basement_bathroom_light_fan.yaml Logging updates 2020-02-13 20:59:08 -06:00
basement_bathroom_sensor.yaml Turn fan back on if manually turned off and humidity is still high 2020-02-15 13:34:41 -06:00
basement_bathroom_shower_light_heater.yaml Logging updates 2020-02-13 20:59:08 -06:00
basement_stair_lights_2.yaml Add a bunch of Feit Dimmers 2020-05-13 16:36:37 -05:00
basement_stair_lights.yaml Add a bunch of Feit Dimmers 2020-05-13 16:36:37 -05:00
bed_sensor.h Add standard common files and master_bed device 2019-12-30 15:16:54 -06:00
coffee_maker.yaml Logging updates 2020-02-13 20:59:08 -06:00
computer_light.yaml Add a bunch of Feit Dimmers 2020-05-13 16:36:37 -05:00
family_room_light.yaml Add a bunch of Feit Dimmers 2020-05-13 16:36:37 -05:00
fire_pit_fountain.yaml Add a bunch of Feit Dimmers 2020-05-13 16:36:37 -05:00
garage_fridge.yaml Logging updates 2020-02-13 20:59:08 -06:00
kitchen_table_light.yaml Add a bunch of Feit Dimmers 2020-05-13 16:36:37 -05:00
master_bed.yaml Logging updates 2020-02-13 20:59:08 -06:00
office_light.yaml Add a bunch of Feit Dimmers 2020-05-13 16:36:37 -05:00
patio_and_pool_lights.yaml Pool and patio light fixes 2020-02-15 10:33:46 -06:00
patio_lights.yaml Logging updates 2020-02-13 20:59:08 -06:00
README.md Fix README 2020-05-13 16:40:55 -05:00
TreoLedPoolLight.h Add pool lights 2020-02-14 17:07:12 -06:00
tuya_light_control.h Add a bunch of Feit Dimmers 2020-05-13 16:36:37 -05:00

ESPHome-Devices

Overview

This is a collection of ESPHome configuration files and code for my various ESP8266 devices that integrate with Home Assistant.

What is ESPHome
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems. For more information checkout ESPHome.io.

What is Home Assistant
Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. For more information check out Home-Assistant.io.

Custom Devices

Basement Bathroom Sensor

This is a WEMOS D1 Mini clone that is connected to a motion sensor, a temperature/humidity/pressure sensor, and a door sensor and is used to control the lights, fan, and heater (heat lamps in the fan) in my basement bathroom.

Coffee Maker

This is a NodeMCU that I installed in my Cuisinart Coffee Maker. It has GPIO's connected to the indicator lights for the bold setting and power and has a couple of relays connected to the bold setting button and the power button. Aside from the ability to trigger automations based on the state of the coffee maker and automate turning on the coffee maker I also added a "bloom" feature. Coffee tastes better if you let the carbon dioxide escape (bloom) after getting the coffee grounds wet before continuing the brew cycle.

Fire Pit and Fountain

This is a WEMOS D1 Mini Pro that is connected to a couple of relays and a couple of water proof push buttons red and blue. The multi-click config on the fire pit switch is so that any press will turn it off but to turn it on you have to press it for 5 seconds (to try and prevent kids from turning it on). This will be used to control the combination fire pit and fountain in my backyard when I am done rebuilding it. I have done some testing at my desk but this is not fully hooked up yet so there may be some bugs (winter came to fast).

Garage Fridge

This is a NodeMCU that I have installed in the back of my garage fridge and is connected to several temperature sensors that monitor the temperature of the compressor, the fridge, and the freezer and a pair of relays that control a heat tape wrapped around the compressor and a couple of heaters that are inside the fridge. This is to prevent the compressor from getting to cold (when it is cold the oil thickens up which is hard on the compressor), the fridge from dropping below freezing (frozen beer is no fun), and the freezer from getting to warm (when temperatures in the garage are around the desired fridge temperature the freezer tends to get to warm because of lack of cooling demand from the fridge so we warm the fridge up a little to get it to kick in the compressor).

Master Bed

This is a NodeMCU that I have installed under my bed and is connected to a pair of Force Sensitive Resistors that are placed between the mattress and box spring of my bed, one for my side and one for my wife's side. Because the ESP8266 has only one analog input I had to add some transistors connected to pins D0 and D1 that are used to select which FSR is connected to the A0 analog input. The custom binary sensors in bed_sensor.h handles switching between the FSR's and calculating who is in bed. Generally when the bed is empty the reading is the full 1024 (or at least close to this). If someone is on one side of the bed or the other the reading is typically around 100. However if you lay in the middle of the bed I tend to get readings of around 600-700 on both sides. Thus the 3 different binary sensors (Chris is in Bed, Melissa is in Bed, Someone is in Bed). There is also a Master Bed Count that reports the total number of people in bed, I compare this to a sensor in Home Assistant that tracks the number of "masters" (my wife and me) that are home so that I can activate night mode when everyone is in bed.

Patio Lights

This is a WEMOS D1 Mini Pro that is connected to a relay to control the power to the landscape lights around my patio. I used the WEMOS D1 Mini Pro because it has an external antenna. I initially used a WEMOS D1 Mini clone but the power supply for my lights was to far from the house and I kept having connectivity issues.

Switches

I plan to use dimmer switches for anything that is dimmable just for consistency and you never know when you might want to have the ability to dim a light. However there are times when a dimmer isn't an option.

SANA Dual Switch

My basement bathroom has 4 devices (main light, fan, shower light, heat lamps) but only 2 single gang boxes (and not enough room to swith to dual gang) so these were a perfect fit. The prices is right, the buttons feel solid, and I was able to flash them using Tuya-Convert. They do seem to have corners that are squarer then typical so I had a little bit of trouble getting a standard cover to fit but nothing I couldn't fix with a file.

  • Basement Bathroom Light and Fan
  • Basement Bathroom Shower Light and Heater

SANA Triple Switch

This switch will be installed in place of the switch that controls my TREO LED Pool Lights. These lights have the option to select different colors by briefly turning them off and back on again and they do remember the last color when turned on again. The custom light component handles tracking the current color and exposes custom "effects" for each of the colors to Home Assistant. I went with the triple switch so that I could use the third button to control my Patio Lights which otherwise do not have a physical switch. Note I have tested the code on a WEMOS D1 Mini clone but I have not installed this on the switch yet or confirmed the timings actually work with the lights yet.

Dimmer Switches

Feit Dimmers

After trying several dimmers I finally decided to standardize on on the Feit Dimmers. I bought the first couple of these at Costco for a better price than Amazon but Costco doesn't seem to carry them anymore.
Things I like about these switches:

  • Can be flashed using Tuya-Convert
  • Have a solid feel to them
  • They can be linked via a traveler wire (this works even when flashed with ESPHome and while not mentioned in the documentation you can link more than 2 switches this way)

Things I don't like about these switches:

  • Have to click repeatedly to change the brightness (can't hold to change)
  • All buttons are managed by the Tuya MCU so no ability to do things like double-taps (although I may have a solution for this but haven't had a chance to do a POC)

I have created a custom component for these that should work with most (if not all) Tuya dimmers which provides the following extra features:

  • Resets the brightness level back to a default level when turned off so that it always comes on at the same level instead of the level it was at when turned off
  • The default level is configurable as different levels when my house is in "Day" mode vs "Night" mode (based on a binary sensor in Home Assistant)
  • Provides a service that I can dynamically change the current default brightness level
  • Allows you to "link" another light in Home Assistant that will be controlled by this dimmer

The following devices are Feit Dimmers:

  • Basement Stair Lights/Basement Stair Lights 2
  • Computer Light
  • Family Room Light
  • Kitchen Table Light
  • Office Light