Skip to content
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

HA shopping list does not update, even though server 'list' command works. #14

Open
madmachinations opened this issue Sep 24, 2024 · 11 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@madmachinations
Copy link
Owner

I have no idea what is wrong, I can only assume HASS OS isn't installing something the custom component needs. It's state stays as unknown and the shopping list is not synchronised.

The server is set up and works as expected, list commands are successful.

It's just the component itself that for some reason doesn't work specifically on HASS OS

@madmachinations
Copy link
Owner Author

@mekki1986

I have looked a little further into this and have some further questions for you please:

  1. Do you have the shopping list integration active, the HA one:

https://www.home-assistant.io/integrations/shopping_list

  1. In your HA config folder, is there a .shopping_list.json file?

  2. Are there items currently on your shopping list within HA? Or does it show as empty?

@mekki1986
Copy link

Thank you very much

  1. yes, the integration is installed.
  2. I tried to search for the .shopping_list.json file, but I couldn't find it. What folder should it be on?
  3. No, the list is currently empty

@madmachinations
Copy link
Owner Author

It should just be in your HA config folder.

If it isn't there, try these steps please:

  1. Make sure there IS stuff on your Alexa shopping list
  2. Go onto your HA shopping list, add something manually, anything.
  3. Immediately tick that item off
  4. Remove all completed items from your HA shopping list so it is empty again
  5. Go into the dev tools > services and fire the alexa shopping list sync service.
  6. Wait 5 minutes and see if your HA shopping list is now syncing with your Alexa shopping list

@madmachinations
Copy link
Owner Author

This morning I noticed that if I didn't have a .shopping_list.json file, the sync would just do nothing. If this works for you now, then hopefully that confirms the theory.

@madmachinations madmachinations added bug Something isn't working question Further information is requested labels Sep 28, 2024
@madmachinations
Copy link
Owner Author

@KiraPC Can you also try this please? You were having the same problem were you not?

@madmachinations madmachinations changed the title HASS OS custom component does not update HA shopping list does not update, even though server 'list' command works. Sep 28, 2024
@madmachinations
Copy link
Owner Author

You can also install the new version of the custom_component part, restart home assistant, and see if it works now

@madmachinations madmachinations self-assigned this Sep 29, 2024
@mekki1986
Copy link

mekki1986 commented Sep 29, 2024

It should just be in your HA config folder.

If it isn't there, try these steps please:

Make sure there IS stuff on your Alexa shopping list
Go onto your HA shopping list, add something manually, anything.
Immediately tick that item off
Remove all completed items from your HA shopping list so it is empty again
Go into the dev tools > services and fire the alexa shopping list sync service.
Wait 5 minutes and see if your HA shopping list is now syncing with your Alexa shopping list

I'm very sorry, I did everything you described, but unfortunately I also have problems with the server now. It used to work, now since yesterday when I go to question it, first it tells me that I'm authenticated, then it tells me that I'm not. I paste below what the terminal reports

➜ client python3 client.py 192.168.1.47
Alexa Shopping List Sync Client Console.

Attempting to connect to ws://192.168.1.47:4000
Connected successfully

Checking config
Config is valid

Checking authentication
Server is authenticated

Type 'help' for commands.

  • list
    ERROR: Not authenticated

I've already tried deleting the client folder and putting it back, changing the terminal, but I can't make it work anymore! :(

@madmachinations
Copy link
Owner Author

It should just be in your HA config folder.

If it isn't there, try these steps please:

Make sure there IS stuff on your Alexa shopping list
Go onto your HA shopping list, add something manually, anything.
Immediately tick that item off
Remove all completed items from your HA shopping list so it is empty again
Go into the dev tools > services and fire the alexa shopping list sync service.
Wait 5 minutes and see if your HA shopping list is now syncing with your Alexa shopping list

I'm very sorry, I did everything you described, but unfortunately I also have problems with the server now. It used to work, now since yesterday when I go to question it, first it tells me that I'm authenticated, then it tells me that I'm not. I paste below what the terminal reports

➜ client python3 client.py 192.168.1.47 Alexa Shopping List Sync Client Console.

Attempting to connect to ws://192.168.1.47:4000 Connected successfully

Checking config Config is valid

Checking authentication Server is authenticated

Type 'help' for commands.

* list
  ERROR: Not authenticated

I've already tried deleting the client folder and putting it back, changing the terminal, but I can't make it work anymore! :(

That might be a separate bug. It relies on regular usage to keep the session alive so it might think it's authenticated but it isn't really.

Try removing the server completely, or clearing the folder where it persists it's session files to. And then set the server up again so you can do a fresh authentication.

@madmachinations
Copy link
Owner Author

I've opened a new issue for this server authentication problem, so this one stays on track with the list not synchronising in the component:

#16

@twisterrm
Copy link

@KiraPC Can you also try this please? You were having the same problem were you not?

I have add the same issue, adding a dummy thing to shopping list, deleted and then fired the sync has solved the issue and the entity is not in unknown status anymore, thank you!

@madmachinations
Copy link
Owner Author

This fix should be dealt with by the block of work being done this weekend as part of #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants