commit cf3ae23c48c686c0029ba92d72cf409355aa1e5f Author: Bas Dado Date: Sun Dec 3 23:32:45 2023 +0100 [TASK] Triop tank sensors diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..d8b4157 --- /dev/null +++ b/.gitignore @@ -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 diff --git a/README.md b/README.md new file mode 100755 index 0000000..425ae69 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +Run a specific configuration with privileged to access to USB device: +```sh +docker run --rm --net host --privileged -v ./:/config -it ghcr.io/esphome/esphome run triop-tank.yaml +``` \ No newline at end of file diff --git a/triop-tank.yaml b/triop-tank.yaml new file mode 100755 index 0000000..45618ba --- /dev/null +++ b/triop-tank.yaml @@ -0,0 +1,51 @@ +esphome: + name: triops + +esp8266: + board: nodemcuv2 + +# Enable logging +logger: + +# Enable Home Assistant API +api: + password: "8zXQf2Bkam2oVt" + +ota: + password: "8zXQf2Bkam2oVt" + +wifi: + ssid: "Aperture" + password: "cavie007" + + # Enable fallback hotspot (captive portal) in case wifi connection fails + ap: + ssid: "Triops Fallback Hotspot" + password: "exjogUIFHifR" + +captive_portal: + +dallas: + - pin: GPIO12 + + +i2c: + # SDA is connected to pin D1 + sda: GPIO5 + # SCL is connected to pin D2 + scl: GPIO4 + scan: true + +sensor: + - platform: dallas + address: 0x62012112cc9b8f28 + name: "Triop water temperature" + id: triop_water_temp + - platform: bmp280 + temperature: + name: "Triop ambient temperature" + oversampling: 4x + pressure: + name: "Triop ambient pressure" + address: 0x76 + update_interval: 60s \ No newline at end of file