I don’t know if this is a HA problem or a ESPHome problem so spun the wheel and posting here.
Running HassOS on a NUC-like Lenovo PC. Small system. I’ve been upgrading steadily as I see updates via the configuration page.
Changed an automation template to do integer math instead of float math with temperatures. I don’t think this has anything to do with the problem but explains why I was “in there” today.
Everything appeared to be working fine.
Upgraded to ESPHome 2022.1.1 (from the previous version).
I then updated each of my ESPHome devices. A NodeMCU and 4 smart outlets.
Upgraded to Home Assistant Core 2021.12.10 (from the previous version).
On my Lovelace dashboard I notice that “Garage Outdoor Temperature” is “Unavailable”. I restarted ESPHome. No improvement. I restarted server management. No improvement. I rebooted the host. No improvement.
I went to ESPHome and clicked on “Logs” for the device that provides this entity. I watched for a bit and saw that it’s sending a temperature update. Lovelace still says “Unavailable”.
The device is a NodeMCU running ESPHome with a Dallas DS18B20 temperature sensor. The ESPHome sensor configuration follows:
sensor:
- platform: dallas
# test at home
#address: 0xAF0417C1AC55FF28
# 269 garage
address: 0xD50417C2038CFF28
name: "Garage Outdoor Temperature"
Back on HA, I look at the ESPHome integration and expand the NodeMCU device. Says there’s 1 device and 7 entities. I click on the “7 Entities” and notice that there are now two “Garage Outdoor Temperature” entities. One has a “_2” added to the entity ID. That one seems to work. The old, original entity has a red circle arrow on the far right with an exclamation point in the middle, and when I hover over the icon I see the word “Restored”.
This is the only entity that appears to have duplicated itself.
I’m 700 miles away from this HA system and it’s a small configuration. I decide to edit the Lovelace dashboard to use the new “_2” entity ID, and I updated the automations as well. My OCD doesn’t like this and I’m happy it’s a small configuration. The system is working again.
I’m hesitant to do more until I visit the location later this year. I wanted to report this to see if anyone understands what happened. Seems to be a bug somewhere.