script/Automation to turn on/off emulated_hue/cloud

Is it possible to use a script or automation in a way so that one can enable or disable emulated hue component or the cloud component?

For example I’d like to disable voice commands when presence detection says I’m not at home (and enable it again when I’m back).

Any ideas? Thanks in advance.

If it’s not possible then that might be a good candidate for a feature request.

Yeah, that’s not possible. The likely hood of that working well is low too. I doubt your voice command device would handle hardware connecting and disconnecting well.

I think it handles it quite good and simply says “device not online”. Also one could think of not disabling the component but simply sending all requests to /dev/null of you will. So a device like Alexa wouldn’t even notice that the command wasn’t excecuded. Although I prefer the “device is offline”.