Guys,
I flashed an ESP32 for testing purposes to use a a BLE reader for some Xiaomi Temperature and humidity devices (i am fairly new at HA and ESPHome).
All went well so i decided to move the devices from my test area into the area where they will be used on an ongoing basis - when doing that i then added a 2nd Xiaomi sensor and did an OTA update - at this point what i wanted to do was
- Rename the ESPhome device so it showed correctly (as to location) in HA
- Rename the existing Xiaomi to the correct new name to represent its location
- Add the 3rd device
So i am having a couple of problems
- When i tried to rename the YAML and device it appeared that the YAML name dictates what DHCP name ESPHome looks for when trying to do OTA updates - even though i restarted my DHCP server and deleted the reservation in there it appeared that ESPHome still had this info cached somewhere so it was failing the OTA - so in the end i went back to the old name for the time being
- Even though i have renamed the sensors when i look at the MQTT stream (using MQTT-SPY) i can still see the old sensor being reported on (as well as the new name) - even though this does not show up in my YAML
- I have two of the same sensors - one i would like to show as Parents Bedroom Temp, Humidity and Battery - the other as Wardrobe Temp, Humidity and Battery (YAML snippet below) - however in the card in Lovelace (auto generated) - i am seeing the first device reported as just Temperature, Humidity and Battery (i.e. it is dropping the Bedroom at the start) - this is probably me just not understanding correct YAML syntax - any pointers for multiple sensors of the same type ?
esp32_ble_tracker:
sensor:
- platform: xiaomi_lywsdcgq
mac_address: 58:2D:34:32:DE:27
temperature:
name: "Parents Wardrobe Temperature"
humidity:
name: "Parents Wardrobe Humidity"
battery_level:
name: "Parents Wardrobe Battery Level"
- platform: xiaomi_lywsdcgq
mac_address: 58:2D:34:32:EF:C4
temperature:
name: "Parents Bedroom Temperature"
humidity:
name: "Parents Bedroom Humidity"
battery_level:
name: "Parents Bedroom Battery Level"
Craig