Closed buhito81 closed 2 years ago
@buhito81
Experienced the same error which is logged to the Home Assistant logging every x seconds as per the configured sample interval.
I fixed it by commenting out the line:
attribute: humidity # Optional use sensor attribute instead of state.
My humidity sensor doesn't contain an attribute for humidity however the state of the sensor itself contains the humidity in %.
So it was just a configuration mistake?
So it was just a configuration mistake?
No, I think this indicates that the addon can't take a sensor that has the forementioned attribute humidity. So actually I think its a bug (or a lack of documentation saying that the sensor can't have the humidity attribute)
So because your sensor doesn't have an attribute humidity
but you configured it anyway and the addon throws an error (to inform you about that) it's therefore a bug?
Sorry but this is all basic Home Assisstant stuff, sensors have a state and can have attributes.
Configuring an attribute as source sensor was added as a (optional) feature https://github.com/basschipper/homeassistant-generic-hygrostat/pull/27 so you no longer needed a template https://www.home-assistant.io/docs/configuration/templating/ to use a sensors attribute.
Anyway, you can always file a PR if you want to add improvements of course, it's open source... :)
Running the HACS addon gives the following error on HA 2022.9.7: