Read water consumption data from my Thames Water meter, so that I can feed it into Home Assistant, my smart home system of choice, for consumption monitoring.
This is most desirable; it's already smart.
# credit https://github.com/JeffWDH/bm6-battery-monitor/blob/39bb89a095f0714d84d05e595099f28ec44647fe/ESPHome/bm6.yaml | |
# first you need to find the BLE mac address of the BM6: | |
esp32_ble_tracker: | |
text_sensor: | |
- platform: ble_scanner | |
name: "BLE Devices Scanner" | |
# read off the mac address in the esphome logs. Device name is just BM6 | |
# then you can configure as follows: |
nmcli con add con-name WiFi ifname wlan0 type wifi ssid foonet | |
nmcli con modify WiFi wifi-sec.key-mgmt wpa-psk | |
nmcli con modify WiFi wifi-sec.psk myownpassword | |
nmcli con up WiFi |