Creating virtual / mock / stub devices?

Is there a way to create a stub device, such as a light, that’s not actually tied to a physical light? For example, I’m working on a PR for the flux integration, and would like to test it locally without disrupting my main installation. I don’t need a real light to test - I just need something so the configuration is valid.

Note I’m not talking about stubs for unit tests - I’d like the light to actually show up in the UI and so on.

1 Like

You can use the demo lights for that:

light:
  - platform: demo

It will create a few lights you can play around with.

4 Likes