Skip to content

Commit

Permalink
added logging on epaper
Browse files Browse the repository at this point in the history
  • Loading branch information
wassfila committed Mar 24, 2024
1 parent f7c27e1 commit ff44990
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions esphome/pm-ttgo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Gitignore settings for ESPHome
# This is an example and may include too much for your use-case.
# You can modify this file to suit your needs.
/.esphome/
/secrets.yaml
8 changes: 8 additions & 0 deletions esphome/pm-ttgo/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ sensor:
pm_10_0:
name: "pm10"
state_topic: esphome/nova-air/air/pm10
id: pm10
update_interval: 5min

#logger:
Expand All @@ -41,3 +42,10 @@ wifi:
password: !secret wifi_ap_password

captive_portal:

interval:
- interval: 10min
then:
- mqtt.publish:
topic: esp/epaper/service
payload: !lambda 'char buffer[32]; sprintf(buffer, "%.1f", id(pm10).state); return std::string(buffer);'

0 comments on commit ff44990

Please sign in to comment.