Refactors ESPHome example

This commit is contained in:
rbaron 2021-03-28 10:48:25 +02:00
parent 3c7180fefa
commit ff97d080d7
3 changed files with 22 additions and 48 deletions

View file

@ -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"
]
}

1
hub/.gitignore vendored
View file

@ -1,3 +1,4 @@
secrets.yaml secrets.yaml
# The platformio project that ESPHome produces. # The platformio project that ESPHome produces.
parahub parahub
.esphome

View file

@ -3,37 +3,32 @@ esphome:
platform: ESP32 platform: ESP32
board: lolin32 board: lolin32
#mqtt: wifi:
# broker: raspberrypi ssid: !secret wifi_ssid
# username: mqttuser password: !secret wifi_password
# password: !secret mqtt_password power_save_mode: none
mqtt:
broker: CHANGE_ME
username: CHANGE_ME
password: !secret mqtt_password
esp32_ble_tracker: esp32_ble_tracker:
#switch:
# - platform: gpio
# name: "Builtin LED"
# pin:
# number: 5
# inverted: yes
sensor: sensor:
- platform: parasite - platform: b_parasite
#mac_address: "01:02:03:04:05:06" mac_address: "f0:ca:f0:ca:00:01"
mac_address: "06:05:04:03:02:01"
# Doesn't matter.
humidity: 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: logger:
#level: VERY_VERBOSE # level: VERY_VERBOSE
#ota: ota:
# password: !secret ota_password password: !secret ota_password