diff --git a/IMG20241111220902.jpg b/IMG20241111220902.jpg new file mode 100644 index 0000000..bfc0327 Binary files /dev/null and b/IMG20241111220902.jpg differ diff --git a/README.md b/README.md index 425ae69..548a416 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,25 @@ 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 +docker run --rm --net host --privileged -v ./:/config -it ghcr.io/esphome/esphome run betta-tank.yaml +``` + +Or Sulawesi tank: +```sh +docker run --rm --net host --privileged -v ./:/config -it ghcr.io/esphome/esphome run sulawesi-tank.yaml +``` + +### Wiring + +BMP280: +- VCC -> 3.3V +- GND -> GND +- SDA -> D1 +- SCL -> D2 +- SD0 -> GND (see https://github.com/esphome/issues/issues/6213) + +DS18B20: +- VCC -> 3.3V +- GND -> GND +- DQ -> D6 + +![Image of the wiring](IMG20241111220902.jpg) diff --git a/triop-tank.yaml b/betta-tank.yaml similarity index 76% rename from triop-tank.yaml rename to betta-tank.yaml index 45618ba..a6dfe16 100755 --- a/triop-tank.yaml +++ b/betta-tank.yaml @@ -1,5 +1,5 @@ esphome: - name: triops + name: betta-tank esp8266: board: nodemcuv2 @@ -20,7 +20,7 @@ wifi: # Enable fallback hotspot (captive portal) in case wifi connection fails ap: - ssid: "Triops Fallback Hotspot" + ssid: "Betta tank sensors" password: "exjogUIFHifR" captive_portal: @@ -39,13 +39,13 @@ i2c: sensor: - platform: dallas address: 0x62012112cc9b8f28 - name: "Triop water temperature" - id: triop_water_temp + name: "Betta tank water temperature" + id: betta_water_temp - platform: bmp280 temperature: - name: "Triop ambient temperature" + name: "Betta tank ambient temperature" oversampling: 4x pressure: - name: "Triop ambient pressure" + name: "Betta tank ambient pressure" address: 0x76 update_interval: 60s \ No newline at end of file diff --git a/sulawesi-tank.yaml b/sulawesi-tank.yaml new file mode 100644 index 0000000..c24492e --- /dev/null +++ b/sulawesi-tank.yaml @@ -0,0 +1,51 @@ +esphome: + name: sulawesi-tank + +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: "sulawesi tank sensors" + 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: 0xe50121128cc45c28 + name: "Sulawesi tank water temperature" + id: sulawesi_water_temp + - platform: bmp280 + temperature: + name: "Sulawesi tank ambient temperature" + oversampling: 4x + pressure: + name: "Sulawesi tank ambient pressure" + address: 0x76 + update_interval: 60s \ No newline at end of file