snarky-snark / home-assistant-variables

A custom Home Assistant component for declaring and setting generic variable entities dynamically.
Apache License 2.0
274 stars 16 forks source link

Variables in separate folder #86

Closed davel4wa closed 1 year ago

davel4wa commented 1 year ago

When variables are moved into a separate folder, the var integration fails to initiate.

var: !include_dir_merge_list variables

HA container in Docker v. 2022.7.5

snarky-snark commented 1 year ago

~~Looks like the var component needs to set a unique ID. https://community.home-assistant.io/t/2021-4-for-our-advanced-users/297058/11~~

Edit: nevermind, this is wrong.

snarky-snark commented 1 year ago

I haven't found any documentation for this, yet.

snarky-snark commented 1 year ago

Okay I think this may be it: https://developers.home-assistant.io/docs/config_entries_config_flow_handler#unique-ids

snarky-snark commented 1 year ago

The var integration doesn't use config flows, so this documentation doesn't help all that much.

davel4wa commented 1 year ago

https://github.com/home-assistant/core/pull/58596

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: snarky-snark @.> Sent: Sunday, October 9, 2022 10:48:49 AM To: snarky-snark/home-assistant-variables @.> Cc: davel4wa @.>; Author @.> Subject: Re: [snarky-snark/home-assistant-variables] Variables in separate folder (Issue #86)

The var integration doesn't use config flows, so this documentation doesn't help all that much.

— Reply to this email directly, view it on GitHubhttps://github.com/snarky-snark/home-assistant-variables/issues/86#issuecomment-1272594066, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVKWJYAF34MG36JV6CC3MVLWCMAQDANCNFSM6AAAAAARAOVSCQ. You are receiving this because you authored the thread.Message ID: @.***>

snarky-snark commented 1 year ago

That looks to be a unique_id for entities. I think that's different.

davel4wa commented 1 year ago

Described as being for the 'command line integration. '

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: snarky-snark @.> Sent: Sunday, October 9, 2022 11:13:48 AM To: snarky-snark/home-assistant-variables @.> Cc: davel4wa @.>; Author @.> Subject: Re: [snarky-snark/home-assistant-variables] Variables in separate folder (Issue #86)

That looks to be a unique_id for entities. I think that's different.

— Reply to this email directly, view it on GitHubhttps://github.com/snarky-snark/home-assistant-variables/issues/86#issuecomment-1272599092, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVKWJYGG2FFGEJLGAXSER4DWCMDNZANCNFSM6AAAAAARAOVSCQ. You are receiving this because you authored the thread.Message ID: @.***>

snarky-snark commented 1 year ago

This adds unique_id as configuration variable to the command_line platform, allowing to customize entities trough the UI.

This is a pull request to add a unique_id property to entities in the command_line integration. It does not add a unique ID to the integration itself.

snarky-snark commented 1 year ago

I don't think this is an issue with the var integration.

snarky-snark commented 1 year ago

Have you read #17? Is that your issue?

davel4wa commented 1 year ago

Well, don't I feel like a dumbass. That is exactly the problem. I built the variables folder by copying the var: definitions directly from the configuration file and neglected to format it as a list. I am not sure why because all of my other integration linked folders have the list construct. Sorry for wasting your time.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: snarky-snark @.> Sent: Sunday, October 9, 2022 11:47:43 AM To: snarky-snark/home-assistant-variables @.> Cc: davel4wa @.>; Author @.> Subject: Re: [snarky-snark/home-assistant-variables] Variables in separate folder (Issue #86)

Have you read #17https://github.com/snarky-snark/home-assistant-variables/issues/17? Is that your issue?

— Reply to this email directly, view it on GitHubhttps://github.com/snarky-snark/home-assistant-variables/issues/86#issuecomment-1272605303, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVKWJYBMAUR2K7B26ERJA73WCMHM7ANCNFSM6AAAAAARAOVSCQ. You are receiving this because you authored the thread.Message ID: @.***>

snarky-snark commented 1 year ago

No worries. It's a common issue! Glad you got it sorted.