ScratMan / HASmartThermostat

Smart Thermostat with PID controller for HomeAssistant
338 stars 49 forks source link

No unique_id #22

Closed papadi closed 2 years ago

papadi commented 2 years ago

The generic thermostat has a unique_id property so that we can explicitly specify the id instead of getting a random one. It would be nice if we can have that in this component. :)

ScratMan commented 2 years ago

Hello, please test the new 2021.11.9-beta1 release

papadi commented 2 years ago

Thx. I followed your instructions and I got no errors. So I guess it's ok? When I rename the sensor in the yaml and restart HA however, the result is that I get a _1, _2 suffix. I don't know if this is expected. Do I always need to stop HA, rename and yaml and then start it again? Not sure what the expected behaviour is. In any case, for new entities it should work. Thx again.

ScratMan commented 2 years ago

When I rename the sensor in the yaml and restart HA however, the result is that I get a _1, _2 suffix. I don't know if this is expected.

This can occur. The old entity should be visible and marked as unavailable in the development tools, next to the new one with _2 or _3 that is working. You can edit the old entity in HA to remove it, and then edit the duplicated one to remove the _2 or _3 from the ID field.

ScratMan commented 2 years ago

Closed with release v2021.11.9