hass-virtual icon indicating copy to clipboard operation
hass-virtual copied to clipboard

Referencing 'virtual' from separate yaml files

Open spry-salt opened this issue 4 years ago • 2 comments

I like the 'virtual' integration, it's such a great idea and works really well, thanks for taking the time to share it with the community.

I recently separated the different elements of the HA configuration.yaml file into separate files (e.g. sensors, fans...). I couldn't figure out how to still reference 'virtual' sensors (for example) from a separate file, I could only do it from within configuration.yaml.

Could you point me in the right direction please?

spry-salt avatar Jan 29 '22 05:01 spry-salt

I have my virtual components mixed in with my packages (for example I have a package for lights, and my virtual lights are set up within that package along with all my other light stuff).

https://www.home-assistant.io/docs/configuration/packages/

Have a look at my config if you want - search for "virtual" in my code, you'll find where I set my stuff up.

jazzyisj avatar Jul 07 '22 02:07 jazzyisj