New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sensor time_date platform: rename display_options configuration variable #337
Comments
Doesn't it?
Of course will there be no other sensors than the ones that are configured.
It's a direct link from the configuration option to the sensor name and is there on purpose. It's easier to find the sensor in the overview. As it's a sensor, we need to create a sensor. I disagree about the renaming of We can discus the re-write of this integration after 4 years or so as a lot has changed and some design decisions from the past don't make sense anymore but this should go in the direction of support for config flow and having one sensor for all possible output and alike. |
In Lovelace it shows nothing unless you add it to a view somehow.
so you're saying that it's absolutely clear what's created here?
clearer that this?
As I described, it's confusing because has nothing to do with displaying sensors. |
That's how the handling of the sensors is done.
It's not an excuse but a fact. It seems that it is not that unclear as you claim.
If it's not clear then the documentation should be updated. But saying three times the same thing instead of two times will not actually help.
It's import and I outlined already a way to improve the integration. |
I'm here because of that. Is it Catch 22? |
I'm really sorry to see how serious HA devs take issues. |
Context
Currently the platform has only one configuration variable -
display_options
.Its name implies it changes what's displayed, but in fact it lists the actual sensors to be created in the state machine. As I understand based on this conversation, configuration has nothing to do with how it's displayed so the name definitely needs to be changed.
For example, currently to have sensor
sensor.time
one need to configure it like this:and there will be no othere sensors like
sensor.date_time
,sensor.date
etc despite having thattime_date
entry in configuration.It is pretty confusing, mainly because of a) the name of the configuration variable and b) indirect link between the platform's name and the sensors being created.
Proposal
There are at least 2 options to get it right.
display_options
tosensors
so everything remains almost the same:instead of
and the requested sensors are actually strings in a list.
template
platform works, i.einstead of
Consequences
For the users it is a breaking change, but the fix is easy whatever option is choosen.
The benefit is it's more clear in terms of what's going on.
Option 2 it allows for further configuration of individual sensors (like format etc).
In terms of how to make this change the option 1 should be pretty easy and straightforward, just changing
display_option
tosensors
everywhere, when the option 2 involves much more internal changes to the platform (but might bring more benefits in the long run).The text was updated successfully, but these errors were encountered: