[TASK] Renamed the triop sensors to betta sensors and added Sulawesi sensor config

This commit is contained in:
2024-11-11 23:03:54 +01:00
parent cf3ae23c48
commit eea55da0af
4 changed files with 80 additions and 8 deletions

BIN
IMG20241111220902.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

View File

@@ -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
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)

View File

@@ -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

51
sulawesi-tank.yaml Normal file
View File

@@ -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