Goal:
- Control a "dumb" TV using virtual assistants via Home Assistant
Features:
- Uses D2 to control 2N2222 transistor
- Control using Web and MQTT API
- Completely Async
- WiFiManager Captive Portal to get WiFi credentials (Compile with
-DUSE_EADNS
for ESP8266) - Connect PIN_CTRL pin to base of 2N2222, collector to Probe and emitter to GND
platformio.ini is included, use PlatformIO and it will take care of installing the following libraries.
Library | Link |
---|---|
ESPAsyncUDP | https://github.com/me-no-dev/ESPAsyncUDP |
ESPAsyncTCP | https://github.com/me-no-dev/ESPAsyncTCP |
ESPAsyncWiFiManager | https://github.com/alanswx/ESPAsyncWiFiManager |
ESPAsyncDNSServer | https://github.com/devyte/ESPAsyncDNSServer |
ESP Async WebServer | https://github.com/me-no-dev/ESPAsyncWebServer |
AsyncMqttClient | https://github.com/marvinroger/async-mqtt-client |