custom-components / grocy

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

Feature Request - Fire custom events when receiving updates from Grocy #265

Open gauvingingras opened 1 year ago

gauvingingras commented 1 year ago

Would it be possible for this integration to send custom events (as per the documentation)? This would make it so much more easier to send a notification when, let say, a new task is assigned.

I am not well versed in python nor am I in Home Assistant integrations, but I feel like the code could be integrated in coordinator.py, in the _async_update_data, right after receiving the data.

karwosts commented 1 year ago

I'm not sure what this would get you, that you couldn't get by triggering on a state change of sensor.grocy_tasks.

Seems like just triggering on that state change would work?