Gravitysync is no longer active and has no support for V6. See the developers announcement.
### Effective July 26, 2024, this project has been retired. Thank you for your use and enthusiasm for a project that began as a few lines of bash in a Slack channel and envolved into something far more complex, and used by many thousands of Pi-hole enthusiasts over the last four years.
### The last released version of Gravity Sync (4.0.7) should continue to work with Pi-hole 5.x, but not with Pi-hole 6+ due to architecture changes.
This thread discusses home assistant. Not sure if anything has changed since this post but it would something to look at on the Home Assistant forum perhaps.