Hi,
I’ve been using a script to log my energy usage (elec. and gas) for over 2 years. It writes a few variables to file every hours. I recently updated HA and since then it is no longer working. And I can’t figure out why.
In my configuration.yaml I added:
notify:
- name: energy_log
platform: file
filename: /config/energy_log.csv
timestamp: true
I made a automation containing:
alias: Energieverbruik Loggen
description: “”
trigger:
- platform: time_pattern
minutes: “0”
seconds: “0”
condition:
action: - data:
message: >-
{{ states(‘sensor.electricity_meter_energy_consumption_tarif_1’) }},{{
states(‘sensor.electricity_meter_energy_consumption_tarif_2’) }},{{
states(‘sensor.electricity_meter_energy_production_tarif_1’) }},{{
states(‘sensor.electricity_meter_energy_production_tarif_2’) }},{{
states(‘sensor.solaredge_production_energy’) }},{{
states(‘sensor.gas_meter_gas_consumption’) }}
action: notify.energy_log
mode: single
This used to work fine. Every hour 1 line of data was added to the file energy_log.csv.
But since the update it gives the error message:
The automation “Energieverbruik Loggen” (automation.test_loggen
) has an unknown action: notify.energy_log
.
This error prevents the automation from running correctly. Maybe this action is no longer available, or perhaps a typo caused it.
To fix this error, edit the automation and remove this action.
Anybody an idea? Did something change to the notify function? Thanks.