madmachinations / home-assistant-alexa-shopping-list

A custom component for Home Assistant which synchronises your Alexa Shopping List
GNU General Public License v3.0
29 stars 3 forks source link

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

Open madmachinations opened 3 weeks ago

madmachinations commented 3 weeks ago

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 commented 2 weeks ago

@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

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

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

mekki1986 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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

madmachinations commented 2 weeks ago

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

mekki1986 commented 2 weeks ago

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.

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

madmachinations commented 2 weeks ago

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 commented 2 weeks ago

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:

https://github.com/madmachinations/home-assistant-alexa-shopping-list/issues/16