This small application written in golang solves the problem of having hue lamps and shelly wifi relays.
Take a look at the Wiki (https://github.com/JWThewes/hueshelly/wiki) on more information about the application and how to use it.