Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual device is not created #61

Open
gitcodeB opened this issue Apr 2, 2023 · 8 comments
Open

Virtual device is not created #61

gitcodeB opened this issue Apr 2, 2023 · 8 comments
Labels
stale Been open too long...

Comments

@gitcodeB
Copy link

gitcodeB commented Apr 2, 2023

image

I did like above and restart HA.

image
image

But the device doesn't appear.
What is the problem?

@gitcodeB gitcodeB changed the title Vit Virtual device is not created Apr 2, 2023
@Tony763
Copy link
Contributor

Tony763 commented Apr 2, 2023

Hi @codinghb, try it like this:

virtual:

fan:
  - platform: virtual
    name: "remote fan"
    speed: True
    speed_count: 4
    direction: False
    oscillate: True
    initial_availability: True

@gitcodeB
Copy link
Author

gitcodeB commented Apr 2, 2023

thanks for reply.
I did, but it doesn't be still created.

@Tony763
Copy link
Contributor

Tony763 commented Apr 2, 2023

Even after HA restart? Coul You post a log here?

@gitcodeB
Copy link
Author

gitcodeB commented Apr 2, 2023

Even after HA restart? Coul You post a log here?

Yes I restarted HA several times.
Where is the log you want and which keyword for searching in log?

@gitcodeB
Copy link
Author

gitcodeB commented Apr 2, 2023

I

Even after HA restart? Coul You post a log here?

I found the reason.
I already wrote code for other template fan and have it.

The code's order is..

Line 40
fan:

  • platform: template..

Line 50
fan:

  • platform: virtual...

After deleting code for template fan, the virtual device was created.
In addition, in case the first code is for virtual and second one is for template, only virtual fan was created.

so, Can't I have your virtual device and template fan at the same time?

In addition, I found virtual fan is not created two more.

For exmaple,

Line 1
fan:

  • platform: virtual
    name: fan 1
    ..

Line 10
fan:

  • platform: virtual
    name: fan 2

Only fan 1 was created and fan 2 wasn't created.

Can't I have two more virtual devices?

Thanks.

@twrecked
Copy link
Owner

twrecked commented Apr 2, 2023

You can. But you can't have more than 2 fan: entries, that is a Home Assistant configuration limitation/design.

fan:
- platform: virtual
  name: fan 1
- platform: virtual
  name: fan 2

@gitcodeB
Copy link
Author

gitcodeB commented Apr 2, 2023

okay, thanks,

Can I use this entity for trigger of automations?
I don't know trigger code

Copy link

This issue is stale because it has been open for 365 days with no activity. This issue will be automatically closed within 28 days if there is no further activity.

@github-actions github-actions bot added the stale Been open too long... label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Been open too long...
Projects
None yet
Development

No branches or pull requests

3 participants