How hard would it be to poll for new lists? I have added 2 new lists to google tasks and without deleting and reconfiguring the integration I canāt seem to get them to show up in HA.
@dopacak - what does your log say when it fails? I might be able to help you with more information from your logs.
I am using Gtasks-Ha (0.5.2) together with gtasks-card (0.1.4) and I am facing an Error message at Dashboard once I set a task to done:
Failed to call service homeassistant/update_entity. Entity ID sensor.gtasks_š§āāļø Bastian is an invalid entity ID for dictionary value @ data['entity_id']
I am wondering if someone also notices this message?
Propably it is caused because I am using Icons in my different Tasklists Names:
I believe the binary sensor just tells you if the task list is empty or not. I have never used it. It has some attributes as well but I havenāt updated these.
At the moment only date is used. Showing time would be a good additional feature.
I tried to replicate this but for me it was working with a task list called āTest ā and tasks both with and without emojiās. I could create them and set them to done.
Are you having the same issue with lists without the emoji?
ok cool.
Yes time would be cool. looking into to use the sensor to trigger an automation to disable or turn of entities if tasks in a list is not done
like turning of my ps4 if I have not done a task or something like that or preventing me to start it if I am not finished with a task.
to help me to stop procrastinating.
Thank you for checking. They will probably not fix that but itās ok. I can work around it. I checked and it looks like the binary_sensor tells if a task is overdue and what task it is.
Finally I was able to test on my instance also without emoji. Here I did not received that message.
Then I thought probably the icon at the end of the name, like yours, could be different, but also for another task list āTest ā Iāve received the error message again.
During this ecexise I deinstalled and installed the component several times as the system option āEnable newly added entitiesā is not considering new task lists automatically. So also a clean re-install doesnāt help.
Thanks for the further report. Iāve looked into this a little more. On my setup when I hit the ātickā button the entity_id (which is this.config.entity) value doesnāt include the emojis and so it goes through just fine, home assistant doesnāt seem to mind that the emojiās are excluded. If I manually set the entity_id to include any emoji then I get the same issue as you.
It may be that this is due to some difference in browsers or environment. What browser and OS are you using? What type of Home Assistant install do you have? I tried on a few different browsers but all still worked fine.
It seems the error message can be ignored and the list will update by itself a few minutes later as well at least for me. If I can find an environment that replicates the issue then hopefully I can fix it otherwise I think you can either ignore it or drop the emojiās from the list name.
I had this (awesome) component working up until a couple of days ago and now I canāt get it set up again. I canāt remember what the paths were and after trying to set it up fresh I believe it is there it stops for me.
I have a path to credentials as follows: /config/custom_components/gtasks/credentials/credentials.json
and in the setup of the integration, Iāve tried many different paths. Some give āCouldnāt find credentialsā and some give āUnknown errorā.
From logs: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packa - Pastebin.com
Any help is much appreciated.
update: solved it, I messed up and missed a part of the documentation. had my app i test. a couple of days ago tuesday/wednesday. the integration stoped working due to the token not working. āinvalid_grant: Token has been expired or revoked.ā, {āerrorā: āinvalid_grantā, āerror_descriptionā: āToken has been expired or revoked.ā})ā i have tried to create token file but to no avail.
Thanks for looking into it again!
As you said it is not a critical bug, I can easily bypass by avoiding emojies at Tasklist names, but I am a fan of supporting by reporting such oberservations.
My system is
Home Assistant 2023.3.3
Supervisor 2023.03.1
Operating System 9.5
Frontend 20230309.0 - latest
Browser is Chrome, but the same message occures with Edge and even with HA Android App.
I also played a bit with renaming the entities w/o emoji within HA only. For reading open tasks no negatibve impact at dashboard is visible, but ticking off a task is not working anymore.
I am also wondering about the data model as the device is shown twice with, once with sensor ON/OFF and once with task numbers #. Probably this can be merged to reflect at device level the task list only.
I also recognized that the icon on device view is missing, probably due to the fact that the integration has no icon.
Iāve now been trying to create new credentials, and even a new project, but still the same āunknown errorā. Any help is really appreciated. This is very frustrating as I see this integration as crucial for my family dashboard.
It appears as if details are being loaded from the ātoken.pickleā file rather than the credentials.json. Have you tried deleting the token.pickle file? Otherwise you could just change the writable path.
If you get your āUnknown Errorā then you credentials path is right and there is no need to change that.
Do you ever get through to the stage where you get a URL to click so you can copy the authorisation code?
If you still get an error after deleting the token.pickle file please provide a paste of that as it may help narrow the issue.
I may make an update so that the token.pickle file is deleted if it fails to refresh the token. Otherwise it does seem you may get stuck at this point. New credentials.json are ignored while the component tries to keep refreshing from the previous token.
Thanks for the further details. Seems we can rule out the browser. Although if I canāt duplicate your issue I might ask for some more details.
I also have the issue with the duplicates (this is due to the binary_sensor and the sensor, Iāll have to look into binary_sensor to see if it completely redundant can can just be removed it marks overdue tasks I believe) and the icons so I donāt think that is causing the emoji list. I might fix those up if I find the motivation but they all existed when I forked the repo. Otherwise pull requests are welcome
I run āHome Assistant Coreā but I assume you are running āHome Assistant Operating Systemā from those specs. I do have a spare raspberry pi with that installed so I will try get some time to test on that one. What hardware are you using?
I believe that the error you are getting is from the āupdateā process initiated by the card. The way the component works is that the card first requests the component change the task list and when that is complete with google it then requests home assistant to update the component data. Your error appears to relate only to how the update request is called and not to the change. The update also occurs on a timer (may take a few minutes). Can you confirm if the task is removed from the list after waiting for a few minutes even though there is the error? If not there may be additional error information in the homeassistant.log file that would be helpful.
Also do you have the same issue with creating a new task? I would suspect that you would.
Just reported that this issue has been fixed with the latest lovelace card.
But wanna reply to your questions:
I am running Home Assistant Operating System on a PI4.
The task got marked as done (after few minutes) even with the error message, that why I named it cosmetic issue only Creation of new task was not activated, so I did not test this before.