Trouble Setting Up Virtual Components

Hey, I just started using home assistant about a month ago. I’ve gotten a hang of the UI but anything having to do with the the config just doesn’t work out :frowning:

So far I’ve wanted to add virtual components to my dashboard but can’t seem to get it to work. I’ve downloaded the virtual repo, now I just have to add instances to the my config but it just doesn’t work.
I’ve followed all the instructions in the README but I can’t just get it to work.

Here’s my config. I just want to create a simple light instance :slightly_frowning_face: for starters.

What should I add to this file that you think would create the entity, or doesn’t this create an entity?

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes
# Text to speech
tts:
  - platform: google_translate

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

Also setting a static image as the themes background has proven impossible.

Please Help!!

I figured out my problem after looking at the closed issues on the repo

This was my initial code

virtual:
  switch:
    - platform: virtual
      name: fakeswitch

Then after reading I changed it to this

virtual:

switch:
  - platform: virtual
    name: fakeswitch

And it worked!!
I found the entity after restarting.

1 Like