Custom Component : GKeep (with sensor synced and config_flow)

yeah, but IFTTT is unique in adding an ingredient to “google assistant”
i dont know how to retrieve a voice command ( or a word ) from google assistant to home assistant
if thats possible, yes , then we can drop IFTTT , and just use the google keep service to add an item

i only use IFTTT just for that single applet to add items to the shoplist

Is there a Lovelace card to use with this as well?

yes, there are others :

Ok lol I didn’t know the hass custom Component https://github.com/aFrankLion/hass-google_keep

Well. Thread and project close.

Thanks for the link :slight_smile:

For voice add. You can do it with any voice input and call service to add a note.
On the hass component, it explains with ifttt but you can do it with any other voice platform.

Before you go closing it!! I could be wrong but I don’t think the existing custom component lets you add/remove list items, only check the box. Currently on mobile so not easy for me to look into to confirm. If this is the case, then your component will be better than the other one

Also with Google assistant?

It was my goal to have just a sensor without service : update the sensor <-> list
I will try again.

Not sure. I didn’t try.
You can expose HA to Google assistant. And run HA device with custom voice command.

yeah, i have exposed HA to google for lots of my stuff , like scripts/switches/lights/covers…
but those are commands…

for google keep, its different, you need to capture a variable like

hey google, add “choco” to the google keep list
so you need to capture the word “choco” , to add it to this service
i have no idea how to capture that word

With a smartphone, we already know how to (ifttt, Tasker…)
For Google device like home, mini etc… :
Maybe you should look into smart home projects (kind of custom Component for Google Assistant, like the HA Google Assistant component is a smart home app)

If it’s possible to send a SMS, hell sure we can send a text :slight_smile:
I will check Google smart app documentation to see if it’s possible

:slight_smile:
thnx

Update !
Sensor is a live sensor or sync sensor ? (Not sure about words)
Changing checked value will change in your GKeep list :slight_smile:

1 Like

I can add a service to remove item.
Or the sensor can handle it (add/remove).
I will start with the first one. It’s easy.
And I will implement it in sensor, after.

Can I have some feedback about displaying plz ?
Because in developer tools, it’s ok.
But in Lovelace, I see only : ‘[Object]’

Sorry, only just got around to installing this integration. I am not seeing my list items in the Dev console, only ‘object’.

EDIT: Actually I just realised that if I click the entity to open it up, I get the items displayed. I’ll what I can do in Lovelace…

Same for me. But it’s usable in templates.
I think : HA has just deprecated json format.
I guess we have wait for Lovelace update

I read that having a core ‘attributes card’ is not going to happen, but came across a custom card that should work… I just didn’t have any luck with it. See this link and perhaps you can get it to work.

Interesting.
I didn’t try (I have to install this custom card)
But for what I read you can try :

- key : sensor.gkeep_shopping_list.items

Edit : ok it works… But render is like Lovelace.
I have to find a way to be ui AND template compliant.

Keep in touch

Edit2: so I can do a crappy stuff like name1 + checked1, name2 + checked2…

But seriously… I prefer to wait Lovelace update. My purpose is to use it in automation templates. For display, I have my phone with official app.

Or maybe I do it wrong and some advice will very welcome !