Ditto this, done this to a few lights so far and works very well. I have the switch wired up to a gpio pin that can be configured to handle a traditional switch rather than a press button.

Some rooms I have a press switch instead set up like:
- press once to turn on
- press again to cycle scenes (other lights involved)
- press and hold for half a sec to turn off

Even if the home automation server or WiFi goes down the switch just falls back to controlling itself so you still get light.