Sensor config: Should type be alias? #1905
Unanswered
pmharris77
asked this question in
Q&A
Replies: 1 comment 1 reply
-
This is expected behavior. The alias argument changes the type directly after fetching the data. So the sensor does not know the original type returned by the source fetch script. I added a comment to the sensor documentation that this is the aliased type (if alias provided) in #1906 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I set up some customized aliases for my sources in my configuration.yaml like so:
However, when I come to create sensors, it seems to be expecting the type field to be the source type alias, rather than the original source type (e.g. it expects "Garden Waste" instead of "garden") - if I just use the source type, the sensors have an "Unknown" state.
Is this expected behaviour, or a bug? It doesn't seem to be documented anywhere that alias overrides the original source type name
Beta Was this translation helpful? Give feedback.
All reactions