mirror of
https://github.com/brianhanifin/esphome-config.git
synced 2026-07-28 04:05:55 +00:00
335 lines
8.9 KiB
YAML
Executable File
335 lines
8.9 KiB
YAML
Executable File
---
|
|
# ESP32 Bluetooth Hub
|
|
#
|
|
substitutions:
|
|
project: BLE Hub
|
|
id: bluetooth_hub
|
|
<<: !include common/substitutions/bluetooth_hub.yaml
|
|
|
|
<<: !include common/esphome/esp32_wrover.yaml
|
|
|
|
wifi:
|
|
ssid: !secret wifi_ssid
|
|
password: !secret wifi_pass
|
|
|
|
# Using these as a precaution to ensure solid WiFi connectivity.
|
|
#power_save_mode: none # Disable for ESP32
|
|
manual_ip:
|
|
static_ip: 10.0.20.13
|
|
gateway: 10.0.20.1
|
|
subnet: 255.255.255.0
|
|
|
|
<<: !include common/ota.yaml
|
|
<<: !include common/logger_info.yaml
|
|
#<<: !include common/logger_debug.yaml
|
|
<<: !include common/api.yaml
|
|
|
|
esp32_ble_tracker:
|
|
# scan_parameters:
|
|
# interval: 160 ms
|
|
# window: 160 ms
|
|
|
|
# text_sensor:
|
|
# - platform: ble_scanner
|
|
# name: Bluetooth Hub Scanner
|
|
# id: bluetooth_hub_scanner
|
|
# on_value:
|
|
# then:
|
|
# - lambda: |-
|
|
# parse_json(id(bluetooth_hub_scanner));
|
|
# if (id(bluetooth_hub_scanner)["name"] != "") {
|
|
# ESP_LOGI("main", "Value of my sensor: %s", id(bluetooth_hub_scanner)["name"].c_str());
|
|
# }
|
|
|
|
sensor:
|
|
# LYWSD03MMC $4 Temperature Sensors
|
|
# Flashed with custom firmware in Chrome at https://pvvx.github.io/ATC_MiThermometer/TelinkMiFlasher.html
|
|
# Settings:
|
|
# * "F"
|
|
# * Advertising Type: "Mi"
|
|
# * Click [Show all mi keys] to get MAC Address
|
|
|
|
# Bedroom
|
|
- platform: xiaomi_lywsd03mmc
|
|
mac_address: "A4:C1:38:23:ED:41"
|
|
bindkey: "5119b4890c72bc66121278dca55df431"
|
|
temperature:
|
|
name: "Bedroom Temperature"
|
|
humidity:
|
|
name: "Bedroom Humidity"
|
|
battery_level:
|
|
name: "Bedroom Temperature Battery"
|
|
- platform: ble_rssi
|
|
mac_address: "A4:C1:38:23:ED:41"
|
|
name: "Bedroom Temperature BLE Signal"
|
|
|
|
# Family Room
|
|
- platform: xiaomi_lywsd03mmc
|
|
mac_address: "A4:C1:38:BF:98:48"
|
|
bindkey: "9e58510b59d2f2d386a15c3ae60bf59a"
|
|
temperature:
|
|
name: "Family Room Temperature"
|
|
humidity:
|
|
name: "Family Room Humidity"
|
|
battery_level:
|
|
name: "Family Room Temperature Battery"
|
|
- platform: ble_rssi
|
|
mac_address: "A4:C1:38:BF:98:48"
|
|
name: "Family Room Temperature BLE Signal"
|
|
|
|
# Garage
|
|
- platform: xiaomi_lywsd03mmc
|
|
mac_address: "A4:C1:38:FA:00:36"
|
|
bindkey: "98d8225995fdfb2a4d5110b08e2e0fc6"
|
|
temperature:
|
|
name: "Garage Temperature"
|
|
humidity:
|
|
name: "Garage Humidity"
|
|
battery_level:
|
|
name: "Garage Temperature Battery"
|
|
- platform: ble_rssi
|
|
mac_address: "A4:C1:38:FA:00:36"
|
|
name: "Garage Temperature BLE Signal"
|
|
|
|
# Guest Room
|
|
- platform: xiaomi_lywsd03mmc
|
|
mac_address: "A4:C1:38:03:EE:C7"
|
|
bindkey: "9e58510b59d2f2d386a15c3ae60bf59a"
|
|
temperature:
|
|
name: "Guest Room Temperature"
|
|
humidity:
|
|
name: "Guest Room Humidity"
|
|
battery_level:
|
|
name: "Guest Room Temperature Battery"
|
|
- platform: ble_rssi
|
|
mac_address: "A4:C1:38:03:EE:C7"
|
|
name: "Guest Room Temperature BLE Signal"
|
|
|
|
# Lucas' Room
|
|
- platform: xiaomi_lywsd03mmc
|
|
mac_address: "A4:C1:38:4C:90:2D"
|
|
bindkey: "04d5ad30b0853cadaee54053f0032cee"
|
|
temperature:
|
|
name: "Lucas Room Temperature"
|
|
humidity:
|
|
name: "Lucas Room Humidity"
|
|
battery_level:
|
|
name: "Lucas Room Temperature Battery"
|
|
- platform: ble_rssi
|
|
mac_address: "A4:C1:38:4C:90:2D"
|
|
name: "Lucas Room Temperature BLE Signal"
|
|
|
|
# Upstairs Bathroom
|
|
- platform: xiaomi_lywsd03mmc
|
|
mac_address: "A4:C1:38:0E:D8:EA"
|
|
bindkey: "a25c346de94877c61f3a948eb76ceab9"
|
|
temperature:
|
|
name: "Upstairs Bathroom Temperature"
|
|
humidity:
|
|
name: "Upstairs Bathroom Humidity"
|
|
battery_level:
|
|
name: "Upstairs Bathroom Temperature Battery"
|
|
- platform: ble_rssi
|
|
mac_address: "A4:C1:38:0E:D8:EA"
|
|
name: "Upstairs Bathroom Temperature BLE Signal"
|
|
|
|
|
|
|
|
# Old round Celsius-only Sensor
|
|
# - platform: ble_rssi
|
|
# mac_address: $temp1_mac
|
|
# id: ${temp1}_rssi
|
|
# name: $temp1 BLE Signal
|
|
# - platform: xiaomi_lywsdcgq
|
|
# mac_address: $temp1_mac
|
|
# temperature:
|
|
# name: $temp1_upper Temperature
|
|
# id: ${temp1}_temperature
|
|
# humidity:
|
|
# name: $temp1_upper Humidity
|
|
# id: ${temp1}_humidity
|
|
# battery_level:
|
|
# name: ${temp1} Battery
|
|
# id: ${temp1}_battery
|
|
|
|
# - platform: ble_rssi
|
|
# mac_address: $plant1_mac
|
|
# id: $plant1
|
|
# name: $plant1_upper
|
|
# - platform: ble_rssi
|
|
# mac_address: $plant2_mac
|
|
# id: $plant2
|
|
# name: $plant2_upper
|
|
# - platform: ble_rssi
|
|
# mac_address: $plant3_mac
|
|
# id: $plant3
|
|
# name: $plant3_upper
|
|
# - platform: ble_rssi
|
|
# mac_address: $plant4_mac
|
|
# id: $plant4
|
|
# name: $plant4_upper
|
|
# - platform: ble_rssi
|
|
# mac_address: $plant5_mac
|
|
# id: $plant5
|
|
# name: $plant5_upper
|
|
# - platform: ble_rssi
|
|
# mac_address: $plant6_mac
|
|
# id: $plant6
|
|
# name: $plant6_upper
|
|
|
|
# - platform: xiaomi_hhccjcy01
|
|
# mac_address: $plant1_mac
|
|
# temperature:
|
|
# name: $plant1_upper Temperature
|
|
# id: ${plant1}_temperature
|
|
# filters:
|
|
# - filter_out: nan
|
|
# - lambda: return x * (9.0/5.0) + 32.0;
|
|
# unit_of_measurement: "°F"
|
|
# moisture:
|
|
# name: $plant1_upper Moisture
|
|
# icon: mdi:water-percent
|
|
# id: ${plant1}_moisture
|
|
# filters:
|
|
# - filter_out: nan
|
|
# illuminance:
|
|
# name: $plant1_upper Illuminance
|
|
# id: ${plant1}_illuminance
|
|
# filters:
|
|
# - filter_out: nan
|
|
# conductivity:
|
|
# name: $plant1_upper Soil Conductivity
|
|
# id: ${plant1}_conductivity
|
|
# filters:
|
|
# - filter_out: nan
|
|
|
|
# - platform: xiaomi_hhccjcy01
|
|
# mac_address: $plant2_mac
|
|
# temperature:
|
|
# name: $plant2_upper Temperature
|
|
# id: ${plant2}_temperature
|
|
# filters:
|
|
# - filter_out: nan
|
|
# - lambda: return x * (9.0/5.0) + 32.0;
|
|
# unit_of_measurement: "°F"
|
|
# moisture:
|
|
# name: $plant2_upper Moisture
|
|
# icon: mdi:water-percent
|
|
# id: ${plant2}_moisture
|
|
# filters:
|
|
# - filter_out: nan
|
|
# illuminance:
|
|
# name: $plant2_upper Illuminance
|
|
# id: ${plant2}_illuminance
|
|
# filters:
|
|
# - filter_out: nan
|
|
# conductivity:
|
|
# name: $plant2_upper Soil Conductivity
|
|
# id: ${plant2}_conductivity
|
|
# filters:
|
|
# - filter_out: nan
|
|
|
|
# - platform: xiaomi_hhccjcy01
|
|
# mac_address: $plant3_mac
|
|
# temperature:
|
|
# name: $plant3_upper Temperature
|
|
# id: ${plant3}_temperature
|
|
# filters:
|
|
# - filter_out: nan
|
|
# - lambda: return x * (9.0/5.0) + 32.0;
|
|
# unit_of_measurement: "°F"
|
|
# moisture:
|
|
# name: $plant3_upper Moisture
|
|
# icon: mdi:water-percent
|
|
# id: ${plant3}_moisture
|
|
# filters:
|
|
# - filter_out: nan
|
|
# illuminance:
|
|
# name: $plant3_upper Illuminance
|
|
# id: ${plant3}_illuminance
|
|
# filters:
|
|
# - filter_out: nan
|
|
# conductivity:
|
|
# name: $plant3_upper Soil Conductivity
|
|
# id: ${plant3}_conductivity
|
|
# filters:
|
|
# - filter_out: nan
|
|
|
|
# - platform: xiaomi_hhccjcy01
|
|
# mac_address: $plant4_mac
|
|
# temperature:
|
|
# name: $plant4_upper Temperature
|
|
# id: ${plant4}_temperature
|
|
# filters:
|
|
# - filter_out: nan
|
|
# - lambda: return x * (9.0/5.0) + 32.0;
|
|
# unit_of_measurement: "°F"
|
|
# moisture:
|
|
# name: $plant4_upper Moisture
|
|
# icon: mdi:water-percent
|
|
# id: ${plant4}_moisture
|
|
# filters:
|
|
# - filter_out: nan
|
|
# illuminance:
|
|
# name: $plant4_upper Illuminance
|
|
# id: ${plant4}_illuminance
|
|
# filters:
|
|
# - filter_out: nan
|
|
# conductivity:
|
|
# name: $plant4_upper Soil Conductivity
|
|
# id: ${plant4}_conductivity
|
|
# filters:
|
|
# - filter_out: nan
|
|
|
|
# - platform: xiaomi_hhccjcy01
|
|
# mac_address: $plant5_mac
|
|
# temperature:
|
|
# name: $plant5_upper Temperature
|
|
# id: ${plant5}_temperature
|
|
# filters:
|
|
# - filter_out: nan
|
|
# - lambda: return x * (9.0/5.0) + 32.0;
|
|
# unit_of_measurement: "°F"
|
|
# moisture:
|
|
# name: $plant5_upper Moisture
|
|
# icon: mdi:water-percent
|
|
# id: ${plant5}_moisture
|
|
# filters:
|
|
# - filter_out: nan
|
|
# illuminance:
|
|
# name: $plant5_upper Illuminance
|
|
# id: ${plant5}_illuminance
|
|
# filters:
|
|
# - filter_out: nan
|
|
# conductivity:
|
|
# name: $plant5_upper Soil Conductivity
|
|
# id: ${plant5}_conductivity
|
|
# filters:
|
|
# - filter_out: nan
|
|
|
|
# - platform: xiaomi_hhccjcy01
|
|
# mac_address: $plant6_mac
|
|
# temperature:
|
|
# name: $plant6_upper Temperature
|
|
# id: ${plant6}_temperature
|
|
# filters:
|
|
# - filter_out: nan
|
|
# - lambda: return x * (9.0/5.0) + 32.0;
|
|
# unit_of_measurement: "°F"
|
|
# moisture:
|
|
# name: $plant6_upper Moisture
|
|
# icon: mdi:water-percent
|
|
# id: ${plant6}_moisture
|
|
# filters:
|
|
# - filter_out: nan
|
|
# illuminance:
|
|
# name: $plant6_upper Illuminance
|
|
# id: ${plant6}_illuminance
|
|
# filters:
|
|
# - filter_out: nan
|
|
# conductivity:
|
|
# name: $plant6_upper Soil Conductivity
|
|
# id: ${plant6}_conductivity
|
|
# filters:
|
|
# - filter_out: nan
|