enkama / hass-variables

Home Assistant variables component
90 stars 12 forks source link

[Feature Request] Configure doesn't show the current content of the variable #58

Closed davidolrik closed 8 months ago

davidolrik commented 1 year ago

I have created a variable sensor.foo and added a few attributes to it. My variable has restore on restart = true and exclude from recorder = true.

Over time I have used the variable.update_sensor service to add more attribute data.

When I go to the integrations tab to edit the attributes, I'm shown the initial attributes and not the current contents of my variable.

Is this a bug or intentional behaviour?

Snuffy2 commented 1 year ago

That is intentional behavior.

If you have restore on restart = True, there really isn't any reason to change the Initial Values in the Integration Config. These are only used:

  1. When the Variable is created
  2. When restore on restart = False and Home Assistant is restarted
davidolrik commented 1 year ago

Ah, I see - I didn't just see the UI as only for the initial value, but also as a way see and edit the current value.

Is there a way to see and edit a sensor, like there is for helpers?

Snuffy2 commented 1 year ago

I view and change it manually using the Developer Tools, States.

davidolrik commented 1 year ago

I do that too - it just seems less elegant, than the UI for the helpers. And for my use case, the initial values I see in the integration UI makes no sense as I never want to go back to the beginning.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

enkama commented 1 year ago

If you or anyone has an Idea of how to change that I am happy to merge that pr. But at the moment I do not have any time until late July.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

marcelhoogantink commented 1 year ago

Same here

stale[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.