Mercurial > code > home > repos > micro
changeset 6:477883ce71ec
more boards
author | drewp@bigasterisk.com |
---|---|
date | Thu, 27 Jun 2024 16:25:24 -0700 |
parents | 7914d368d7b2 |
children | 5a80f3f2be8d |
files | ft-air-quality.yaml sonoff_light_0.yaml sonoff_light_1.yaml sonoff_light_2.yaml sonoff_light_3.yaml sonoff_light_4.yaml |
diffstat | 6 files changed, 269 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ft-air-quality.yaml Thu Jun 27 16:25:24 2024 -0700 @@ -0,0 +1,69 @@ +esphome: + # todo: needs rename + name: air_quality_indoor + platform: esp32 + board: lolin32 + +logger: + level: DEBUG + logs: + sensor: INFO + pmsx003: INFO + bme280.sensor: INFO + ccs811: INFO + +wifi: + networks: + - ssid: !secret wifi_ssid + password: !secret wifi_password + +ota: + platform: esphome + password: !secret ota_password_1 + +mqtt: + id: mqtt_client + broker: 'mqtt2.bigasterisk.com' + +light: + - platform: status_led + id: "status_out" + pin: 2 + +i2c: + sda: 21 + scl: 22 + scan: True + id: bus_a + +# GPIO13/RXD2 num 16 = pms tx (pin 5) +# GPIO15/TXD2 num 17 = pms rx (pin 4) +uart: + rx_pin: 16 + baud_rate: 9600 + +sensor: + - platform: bme280_i2c + temperature: + name: "BME280 Temperature" + pressure: + name: "BME280 Pressure" + humidity: + name: "BME280 Humidity" + address: 0x76 + update_interval: 30s + - platform: ccs811 + eco2: + name: "CCS811 eCO2 Value" + tvoc: + name: "CCS811 Total Volatile Organic Compound" + address: 0x5A + update_interval: 60s + - platform: pmsx003 + type: PMSX003 + pm_1_0: + name: "Particulate Matter <1.0µm Concentration" + pm_2_5: + name: "Particulate Matter <2.5µm Concentration" + pm_10_0: + name: "Particulate Matter <10.0µm Concentration"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sonoff_light_0.yaml Thu Jun 27 16:25:24 2024 -0700 @@ -0,0 +1,40 @@ +esphome: + name: sonoff_0 + platform: esp8266 + board: esp01_1m + +logger: + level: INFO + +wifi: + networks: + - ssid: !secret wifi_ssid + password: !secret wifi_password + +ota: + platform: esphome + +mqtt: + id: mqtt_client + broker: "mqtt2.bigasterisk.com" + +binary_sensor: + - platform: gpio + pin: + number: GPIO0 + mode: INPUT_PULLUP + inverted: True + name: "Sonoff Basic Button" + on_press: + - switch.toggle: relay + +switch: + - platform: gpio + name: "Sonoff Basic Relay" + pin: GPIO12 + id: relay + +status_led: + pin: + number: GPIO13 + inverted: yes
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sonoff_light_1.yaml Thu Jun 27 16:25:24 2024 -0700 @@ -0,0 +1,40 @@ +esphome: + name: sonoff_1 + platform: esp8266 + board: esp01_1m + +logger: + level: INFO + +wifi: + networks: + - ssid: !secret wifi_ssid + password: !secret wifi_password + +ota: + platform: esphome + +mqtt: + id: mqtt_client + broker: "mqtt2.bigasterisk.com" + +binary_sensor: + - platform: gpio + pin: + number: GPIO0 + mode: INPUT_PULLUP + inverted: True + name: "Sonoff Basic Button" + on_press: + - switch.toggle: relay + +switch: + - platform: gpio + name: "Sonoff Basic Relay" + pin: GPIO12 + id: relay + +status_led: + pin: + number: GPIO13 + inverted: yes
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sonoff_light_2.yaml Thu Jun 27 16:25:24 2024 -0700 @@ -0,0 +1,40 @@ +esphome: + name: sonoff_2 + platform: esp8266 + board: esp01_1m + +logger: + level: INFO + +wifi: + networks: + - ssid: !secret wifi_ssid + password: !secret wifi_password + +ota: + platform: esphome + +mqtt: + id: mqtt_client + broker: "mqtt2.bigasterisk.com" + +binary_sensor: + - platform: gpio + pin: + number: GPIO0 + mode: INPUT_PULLUP + inverted: True + name: "Sonoff Basic Button" + on_press: + - switch.toggle: relay + +switch: + - platform: gpio + name: "Sonoff Basic Relay" + pin: GPIO12 + id: relay + +status_led: + pin: + number: GPIO13 + inverted: yes
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sonoff_light_3.yaml Thu Jun 27 16:25:24 2024 -0700 @@ -0,0 +1,40 @@ +esphome: + name: sonoff_3 + platform: esp8266 + board: esp01_1m + +logger: + level: INFO + +wifi: + networks: + - ssid: !secret wifi_ssid + password: !secret wifi_password + +ota: + platform: esphome + +mqtt: + id: mqtt_client + broker: "mqtt2.bigasterisk.com" + +binary_sensor: + - platform: gpio + pin: + number: GPIO0 + mode: INPUT_PULLUP + inverted: True + name: "Sonoff Basic Button" + on_press: + - switch.toggle: relay + +switch: + - platform: gpio + name: "Sonoff Basic Relay" + pin: GPIO12 + id: relay + +status_led: + pin: + number: GPIO13 + inverted: yes
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sonoff_light_4.yaml Thu Jun 27 16:25:24 2024 -0700 @@ -0,0 +1,40 @@ +esphome: + name: sonoff_4 + platform: esp8266 + board: esp01_1m + +logger: + level: INFO + +wifi: + networks: + - ssid: !secret wifi_ssid + password: !secret wifi_password + +ota: + platform: esphome + +mqtt: + id: mqtt_client + broker: "mqtt2.bigasterisk.com" + +binary_sensor: + - platform: gpio + pin: + number: GPIO0 + mode: INPUT_PULLUP + inverted: True + name: "Sonoff Basic Button" + on_press: + - switch.toggle: relay + +switch: + - platform: gpio + name: "Sonoff Basic Relay" + pin: GPIO12 + id: relay + +status_led: + pin: + number: GPIO13 + inverted: yes