No let me stop you right there. All the good Hue stuff works with Zigbee so you can (and should) totally just run your own hub and bypass all of this; yes with home assistant!
That's really the best solution. You can just control the lights directly how you see fit without even talking to Phillips.
My hue bulbs pair so aggressively to my zigbee hub that I have to block pairing on it to get new ones on the hue hub!
They may already be paired and you just never realized.
yes they are zigbee, yes they work better with the Hue Hub (e.g. colour transitions). Phillips is significantly reducing the usability and value of their own products with this shitty decision.
Ie instead of sending a "home_button_clicked" event, it has to work with: button_click=none -> button_click=home -> delay() -> button_click=none. Just a ridiculous architecture.
Obvious thing is to make it completely event based where certain events change state, ie discrete event=home_button_clicked which has the side-effect of setting event_last_button_clicked when that event is triggered.
They've done it completely the wrong way around and it annoys the hecky out of me.