Chouffy/home_assistant_tgtg

Product amounts unavailable

Closed this issue · 9 comments

Hi there, what a great idea for addon!

Sadly I'm experiencing the same thing you talked about in the Q&A, but even after I added items manually I'm still getting Unavailable.

image

I'm running HA in docker.

the only log:

2022-02-09 14:08:58 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration tgtg which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

Hi @Benrens
Can you try to query those items manually on your PC using the tgtg-python library?
This is to check that the issue is either with this integration or with the module the integration use

Hi @Chouffy
Your library seems to work just fine:

example store1:
image
example store2:
image

Hi @Benrens
Go too see that it working here, so there's definitely something with the Home Assistant integration.
Would you mind sharing one of those store ID? So I can have a look myself.

Hi @Chouffy,
69241 and 643063 were used in above examples.

@Benrens I just tested those 2 items ID and it seems to work fine with me 🤔
How is your configuration.yaml file done? did you took care of those (nasty) YAML identations?

configuration:
image

the 2 items:
image

one of the item detail
image

Hi @Chouffy

configuration.yaml
image
sensor.yaml
image

image

I started debugging a bit, added the amount attribute, there are items but entity ain't showing pcs

image

Hey @Benrens

This is really weird, as we can guess that the integration works (there's all attributes, and even the amount as you shown), but somehow the "main" attribute of the quantity is missing ... Unfortunately, I'm not deep enough versed in the Home Assistant platform to understand why it doesn't work in your case.

As it seems to be a Home Assistant issue, I would suggest to look around in the forums or maybe open an issue on the Home Assistant side of things?
I'll leave this ticket open for any update, but I cannot do more than this 😞

Closing because of inactivity