These are the custom-made components that I use for ESPHome.
To use them, simply add the following to your config file:
external_components:
- source: github://jplitza/esphome_components
This component reads energy meters using the D0 according to IEC / DIN EN 62056-21 (or something like that - don't assume for a second I found or read any standard on that protocol).
I'm successfully using it with an Easymeter Q3D, which is also what the example configuration is tailored for. The baudrate and OBIS channels for your meter might differ.
This component reads events from the FTC532 touch button controller found in some cheap wall switches.
I'm successfully using it with a Teekar Curtain Switch, which is also what the example configuration is tailored for.
All components are licensed under GPL v3.