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

Virtual.set /sensor not longer provided by virtual integration

Open Wiebrenk opened this issue 10 months ago • 13 comments

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 }}'

Wiebrenk avatar Jan 04 '25 21:01 Wiebrenk

It's the same for lights.

AndreKR avatar Jan 05 '25 07:01 AndreKR

Hi, what version of Virtual integration?

Tony763 avatar Jan 05 '25 19:01 Tony763

Hi, what version of Virtual integration?

I am sitting on 0.8.0.1

Wiebrenk avatar Jan 05 '25 21:01 Wiebrenk

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

AndreKR avatar Jan 05 '25 21:01 AndreKR

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

Tony763 avatar Jan 05 '25 23:01 Tony763

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?

AndreKR avatar Jan 06 '25 03:01 AndreKR

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.

Tony763 avatar Jan 06 '25 06:01 Tony763

@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.

twrecked avatar Jan 07 '25 02:01 twrecked

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.

CAT1210 avatar Jan 10 '25 15:01 CAT1210

@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.

twrecked avatar Jan 10 '25 17:01 twrecked

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!

CAT1210 avatar Jan 10 '25 19:01 CAT1210

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 :)

Wiebrenk avatar Jan 13 '25 07:01 Wiebrenk

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. 🤷

AndreKR avatar Jan 29 '25 11:01 AndreKR