Skip to content

Commit

Permalink
Added pwm output
Browse files Browse the repository at this point in the history
  • Loading branch information
escomputers committed Apr 25, 2024
1 parent 0815ab2 commit ff23c0a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion compose.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions esphome-configuration/esphome-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ uart:
tx_pin: GPIO1
baud_rate: 9600

output:
- platform: esp8266_pwm
pin: GPIO15
id: pwm_output

sensor:
- platform: mhz19
co2:
Expand Down

0 comments on commit ff23c0a

Please sign in to comment.