Adding a "virtual" device

Hi there,

I’m currently thinking about building one of those DIY ambilights for my TV but wanna be able to shut the whole thing down with hue essentials or voice commands and a smart plug. Since a Raspberry hates power loss I need some time for an automation to handle the shutdown procedure. I did something similar for my magic mirror with an hassio automation and MQTT, but of course without the voice command or hue essentials.

I thought it would be great if there is a way to add “virtual” devices in phoscon. It just seems right to me to add it there as single source of truth. It would make it accessible from any switch, application and voice assistant I use. Anything else regarding automation etc. could be done in hassio or node-red.

Is something like this possible, or is there a better way?