-
Notifications
You must be signed in to change notification settings - Fork 16
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
Attributes have null as value #77
Comments
Maybe this is related?
|
Perhaps a text encoding issue? What happens if you change |
No, still the same |
Have the same issue with attributes |
If you post more details about your problem, we may have a better chance of determining the cause. |
Have this config
Wanted to store simple json |
Okay, I think I know what is happening here. Variable attributes are templates, and they are only updated when a tracked event fires. Neither of your variables specify any tracked events, so the attributes are never evaluated. You can fix this by specifying the following tracked event which will update your variable attributes when home assistant starts. tracked_event_type: homeassistant_start Alternatively, you can set the attributes using the As an aside, this behavior can be inferred from the documentation, but it is not obvious. A proper fix for this is to create a separate |
OK but how about reloading this integration? By watching this event, reloading rom YAML section won't work right? This is essential for my and the reason why I wanted to switch to your integration from similar... |
OK but how can I pass component attribute? |
I am not sure what you are asking. |
This event (COMPONENT_LOADED) requires additional data to be passed -> component (Domain of the integration that has just been initialized. Example: light.) How can I pass it from your integration? |
The domain of the Variable component is |
Yes I know that but how can I pass this param via var integration? |
Ah, I see. That is not supported at the moment. There might be another way to solve your problem, but I'm not sure I understand your use case. |
Hi,
here is my config:
And this is what I see in HA:
So attributes get null as value...
The text was updated successfully, but these errors were encountered: