diff --git a/README.md b/README.md index b257e83..bfdad1d 100644 --- a/README.md +++ b/README.md @@ -53,21 +53,20 @@ python -m pip -r requirements.txt mv esphome-configuration/secrets.yaml esphome-configuration/sht20.h .esphome ``` -8. The first time you flash esp8266, you need to tell esphome some information about +8. The first time you connect to esp8266 (via usb to serial cable), you need to tell esphome some information about your esp8266 device. Right after that, it will validate the configuration, create a binary, upload it, and start logs ``` cd .esphome && esphome wizard esphome-config.yaml ``` -Next time you'll flash it, you just need to run: +Next time you need to configure it, just connect to the same esp8266 network and launch commands over the air: ``` esphome run esphome-configuration/esphome-config.yaml ``` -9. Take note of the ip address printed out in the logs after you run previous command -Read all the output and check for sensors errors, if clear come back to Home Assistant installation steps +9. Read all the output and check for sensors errors, if clear come back to Home Assistant installation steps ## Sensors diff --git a/compose.yml b/compose.yml index 348581e..ff5908d 100644 --- a/compose.yml +++ b/compose.yml @@ -1,7 +1,7 @@ version: '3' services: homeassistant: - container_name: homeassistant-2023-6 + container_name: homeassistant image: "ghcr.io/home-assistant/home-assistant:stable" volumes: - /opt/config diff --git a/esphome-configuration/esphome-config.yaml b/esphome-configuration/esphome-config.yaml index 337e764..76e9973 100644 --- a/esphome-configuration/esphome-config.yaml +++ b/esphome-configuration/esphome-config.yaml @@ -39,6 +39,11 @@ uart: tx_pin: GPIO1 baud_rate: 9600 +output: + - platform: esp8266_pwm + pin: GPIO15 + id: pwm_output + sensor: - platform: mhz19 co2: