Update devices.yaml and state.json with new device configurations and states

- Refactored friendly names in devices.yaml for consistency and clarity.
- Added new devices and updated existing ones in devices.yaml.
- Populated state.json with detailed state information for various devices, including brightness, power, and link quality.
- Included update information for devices where applicable.
This commit is contained in:
2026-04-03 00:39:43 +02:00
parent 17883d85d9
commit bdbeec27aa
28 changed files with 6459 additions and 89839 deletions

View File

@@ -19,3 +19,44 @@ packages:
logger: !include templates/logger.yaml
btproxy: !include templates/bt_proxy.yaml
# esp32_ble_tracker:
# on_ble_advertise:
# then:
# - lambda: |-
# ESP_LOGD("BLE", "MAC: %s | RSSI: %d", x.address_str().c_str(), x.get_rssi());
sensor:
- platform: xiaomi_hhccjcy01
mac_address: "5C:85:7E:13:17:A3"
temperature:
name: "Xiaomi MiFlora Temperature"
moisture:
name: "Xiaomi MiFlora Moisture"
illuminance:
name: "Xiaomi MiFlora Illuminance"
conductivity:
name: "Xiaomi MiFlora Soil Conductivity"
battery_level:
name: "Xiaomi MiFlora Battery Level"
esp32_ble_tracker:
on_ble_advertise:
then:
- lambda: |-
// MAC-adres als string
std::string mac = x.address_str();
// RSSI ophalen via getter
int rssi = x.get_rssi();
// Naam ophalen, lege string als onbekend
std::string name = x.get_name(); // geen has_value(), gewoon std::string
// Filter: Xiaomi MAC-prefixes of Flowercare naam
if (mac.rfind("A4:C1:38", 0) == 0 ||
mac.rfind("62:26:28", 0) == 0 ||
mac.rfind("4C:65:A8", 0) == 0 ||
name.find("Flower") != std::string::npos) {
ESP_LOGD("xiaomi_logger", "Xiaomi device found: %s (%s), RSSI: %d", mac.c_str(), name.c_str(), rssi);
}