home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.8k stars 30.51k forks source link

missing service variable.set_variable #51772

Closed mikyjazz closed 3 years ago

mikyjazz commented 3 years ago

The problem

After upgrading from core version 2021.5.5 i get this error: homeassistant.exceptions.ServiceNotFound: Unable to find service variable.set_variable

What is version of Home Assistant Core has the issue?

from 2021.6.2 to 2021.6.4

What was the last working version of Home Assistant Core?

2021.5.5

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

No response

Link to integration documentation on our website

No response

Example YAML snippet

update_power_today:
  sequence:
    - service: variable.set_variable
      data:
        variable: energy_today
        value_template: "{{ states('sensor.pzem_004t_energy') | float - states('variable.energy_total') | float }}"

Anything in the logs that might be useful for us?

Logger: homeassistant.components.script.update_power_today
Source: helpers/script.py:1341
Integration: Script (documentation, issues)
First occurred: 11:05:00 (3 occurrences)
Last logged: 11:07:00

update_power_today: Error executing script. Service not found for call_service at pos 1: Unable to find service variable.set_variable

Additional information

No response

ludeeus commented 3 years ago

The variable.set_variable service is from a custom component see https://github.com/rogro82/hass-variables/issues/59