custom-components / grocy

Custom Grocy integration for Home Assistant
Apache License 2.0
153 stars 45 forks source link

Feature request: Assistant skills #282

Open MCHellspawn opened 11 months ago

MCHellspawn commented 11 months ago

Hello,

This is a feature request and an offer to help build it. With the new HA Assistant you can now create new intents for assist to work with. It would be great to add assist intents for interacting with Grocy. Working with the shopping lists, adding products, bringing products in and using them, and maybe even recipe and battery support, can't forget chores.

The developer of HA's voice components is the former developer of a self hostable voice assistant called Rhasspy. The new voice stuff added to HA is basically an extension of his version 3 of Rhasspy. I made an almost complete skill for Rhasspy 2.5 that covers almost all of the things I mentioned before. I don't think it would be too much work to combine my skill script with this addon to get full assist and therefore voice control over Grocy. Your thoughts?

clinta commented 11 months ago

This would be the killer feature, especially for querying information. Being able to ask HA "How much flour do I have left" and get an answer.

greenmojo2 commented 11 months ago

I'd be willing to help develop this as well. I already started doing some of it with adding general to-do list items to Grocy's task list.

alkuzman commented 9 months ago

Is there a development on this part? I started doing some work myself, and I got product consumption and stock reporting to work with very simple sentences. I would be willing to contribute if there is a common place for this skill.

MCHellspawn commented 9 months ago

I never heard anything from the project team so I wasn't sure how interested they were. My intention was to make the skill part of this addon. I've seen in the HA docs that they have facilities for this in their dev platform. But seems like others are running forward with it anyways. Maybe we can start by working in a common fork of this addon and hope to push it upstream to this one when we are ready.

Also, I have been able to build custom sentences using the user interface side to do some basic stuff like alkuzman mentioned. But I am really hoping to make this a more integrated setup.

alkuzman commented 9 months ago

@MCHellspawn please let me know if you start a fork. Just a note, i had to create few additional sensors to support quantity units. I am not sure how much of that is supported in pygrocy, library on which this component depends.

rapala-b commented 2 months ago

I'd like to bump this feature request and offer my help in implementing it as well. I think some basic voice controls would drastically improve the usability of Grocy for users both seasoned and new. And I selfishly want to be able to verbally ask my Grocy instance for some dinner suggestions.