From ff97d080d7d2e245d3e7151dcf4e9c31f8e659ec Mon Sep 17 00:00:00 2001 From: rbaron Date: Sun, 28 Mar 2021 10:48:25 +0200 Subject: [PATCH] Refactors ESPHome example --- hub/.esphome/parahub.yaml.json | 22 ---------------- hub/.gitignore | 1 + hub/parahub.yaml | 47 +++++++++++++++------------------- 3 files changed, 22 insertions(+), 48 deletions(-) delete mode 100644 hub/.esphome/parahub.yaml.json diff --git a/hub/.esphome/parahub.yaml.json b/hub/.esphome/parahub.yaml.json deleted file mode 100644 index 3128bc4..0000000 --- a/hub/.esphome/parahub.yaml.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "storage_version": 1, - "name": "parahub", - "comment": null, - "esphome_version": "1.17.0-dev", - "src_version": 1, - "arduino_version": "espressif32@1.12.4", - "address": null, - "esp_platform": "ESP32", - "board": "lolin32", - "build_path": "parahub", - "firmware_bin_path": "parahub/.pioenvs/parahub/firmware.bin", - "loaded_integrations": [ - "esp32_ble_tracker", - "esphome", - "logger", - "parasite", - "ruuvi_ble", - "sensor", - "xiaomi_ble" - ] -} diff --git a/hub/.gitignore b/hub/.gitignore index 883f22c..47bb67d 100644 --- a/hub/.gitignore +++ b/hub/.gitignore @@ -1,3 +1,4 @@ secrets.yaml # The platformio project that ESPHome produces. parahub +.esphome diff --git a/hub/parahub.yaml b/hub/parahub.yaml index 7fc35eb..94b1e0a 100644 --- a/hub/parahub.yaml +++ b/hub/parahub.yaml @@ -3,37 +3,32 @@ esphome: platform: ESP32 board: lolin32 - #mqtt: - # broker: raspberrypi - # username: mqttuser - # password: !secret mqtt_password +wifi: + ssid: !secret wifi_ssid + password: !secret wifi_password + power_save_mode: none + +mqtt: + broker: CHANGE_ME + username: CHANGE_ME + password: !secret mqtt_password esp32_ble_tracker: - #switch: - # - platform: gpio - # name: "Builtin LED" - # pin: - # number: 5 - # inverted: yes - sensor: - - platform: parasite - #mac_address: "01:02:03:04:05:06" - mac_address: "06:05:04:03:02:01" - # Doesn't matter. + - platform: b_parasite + mac_address: "f0:ca:f0:ca:00:01" humidity: - name: "Parasite humidity" + name: "bprst1 humidity" + temperature: + name: "bprst1 temperature" + moisture: + name: "bprst1 moisture" + battery_voltage: + name: "bprst1 battery_voltage" - #wifi: - # ssid: !secret wifi_ssid - # password: !secret wifi_password - - #captive_portal: - -# Enable logging logger: - #level: VERY_VERBOSE + # level: VERY_VERBOSE - #ota: - # password: !secret ota_password +ota: + password: !secret ota_password