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.set /sensor not longer provided by virtual integration #149

Open
Wiebrenk opened this issue Jan 4, 2025 · 13 comments
Open

Virtual.set /sensor not longer provided by virtual integration #149

Wiebrenk opened this issue Jan 4, 2025 · 13 comments

Comments

@Wiebrenk
Copy link

Wiebrenk commented Jan 4, 2025

After updating HA core to 2025.1 the following is going on with my virtual sensor (switches are fine);

The virtual sensor is unavailable with the following message;
"This entity is no longer being provided by the virtual integration. If the entity is no longer in use, delete it in settings"

This sensor is fed by node red with "virtual.set", which states states the following;
"Action virtual.set not found"

No logs in ha which i can link to the virtual sensors HACCS repository / integration other than

Logger: homeassistant.helpers.template
Source: helpers/template.py:2758
First occurred: 10:10:56 (1 occurrences)
Last logged: 10:10:56

Template variable warning: 'dict object' has no attribute 'action' when rendering '{{ value_json.action }}'

@AndreKR
Copy link

AndreKR commented Jan 5, 2025

It's the same for lights.

@Tony763
Copy link
Contributor

Tony763 commented Jan 5, 2025

Hi, what version of Virtual integration?

@Wiebrenk
Copy link
Author

Wiebrenk commented Jan 5, 2025

Hi, what version of Virtual integration?

I am sitting on 0.8.0.1

@AndreKR
Copy link

AndreKR commented Jan 5, 2025

Yes, me too, it's the latest stable.

@Tony763
Copy link
Contributor

Tony763 commented Jan 5, 2025

I would recomend you to try latest beta. All latest changed to HA are incomporated there (lot of breaking changes / deprecations).

@AndreKR
Copy link

AndreKR commented Jan 6, 2025

Last time I tried the beta it was a disaster. Half the settings were in the UI, the other half in YAML files, some stuff was migrated wrong and I had to roll back to a backup. Is it better now?

@Tony763
Copy link
Contributor

Tony763 commented Jan 6, 2025

I run it for almost a year, configuration is still done in yaml (separate file from configuratin.yaml). You just add integration in HA Integrations menu and point integration to yaml file in integration settings.

@twrecked
Copy link
Owner

twrecked commented Jan 7, 2025

@AndreKR sorry about the issue before, there were some bugs in the upgrade code. For the record, all the settings are in the yaml file, all the integration does is point at the yaml file.

You should try 0.9; it probably fixes the issue. You can also add this to your current config

virtual:
  yaml_config: True

to keep the old behaviour and use your current configuration. See https://github.com/twrecked/hass-virtual#i-dont-want-the-new-behaviour

If it doesn't fix your issue attach some debug, I'll take a look.

@CAT1210
Copy link

CAT1210 commented Jan 10, 2025

Just adding "yaml_config: True" didn't work for me. Sensors are still unavailable. What exactly do you need to see to troubleshoot? Here is a snap of my configuration.yaml:
image
Developer tools also shows this configuration warning (after change to config and after reboot of the system):
image
Happy to provide anything else you need. Rolling Core back for now since the sensors are vital to home environment.

@twrecked
Copy link
Owner

@CAT1210 I think you are still on version 0.8 of virtual; yaml_config is only available on version 0.9 and version 0.9 doesn't use FREQUENCY_GIGAHERTZ.

@CAT1210
Copy link

CAT1210 commented Jan 10, 2025

Yeah....I had that same thought after I sent in my message....thought it was beta or add this line instead of beta and add this line. Sorry about that. Upgraded to beta, added line, all good. Thank you!

@Wiebrenk
Copy link
Author

For me all the issues has been solved by switching to the beta version, and later to the final 0.9.1.

Thanks for the support :)

@AndreKR
Copy link

AndreKR commented Jan 29, 2025

So, I don't know what happened but I just updated Home Assistant again and my virtual lights still work even though I still use 0.8. 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants