A couple of years ago I set up a notify to file thing that wrote to a file every time my hot tub heater turned off. I’m now getting a Repair warning that “The File notify.hottublob action is migrated…”. A while ago I commented out the entry in the configuration.yaml file
- platform: file
name: hottublog
filename: /config/www/hottublog.csv
timestamp: true
and noticed that a File Integration had been created containing just the 1 entity notify.hottublog
with a related Integration Entry that contained the the info from the original yaml code above.
I did not change anything in the automation; this is the bit that does the writing
data_template:
message: " ,{{now().strftime('%d/%m/%Y')}} ,{{now().strftime('%H:%M:%S')}} ,{{states('sensor.hot_tub_energy_total')}} ,{{(states('sensor.hot_tub_energy_total') | float - states('input_number.hot_tub_last_energy') | float) | round(3)}} ,{{states('sensor.garagemotion_bme280_temperature')}} ,{{states('sensor.hot_tub_dht11_temperature')}} ,{{states('sensor.hot_tub_temperature_delta')}} ,{{states('sensor.berkeley_castle_grounds_wind_speed')}} ,{{states('sensor.berkeley_castle_grounds_feels_like_temperature')}} ,{{states('sensor.hot_tub_dht11_temperature') | float - states('sensor.berkeley_castle_grounds_feels_like_temperature') | float}} ,{{((now().timestamp() - states('input_number.hot_tub_last_time') | float) / 3600) | round(3) }} ,{{((states('sensor.hot_tub_energy_total') | float - states('input_number.hot_tub_last_energy') | float) / (( now().timestamp() - states('input_number.hot_tub_last_time') | float ) / 3600 )) | round(3)}} "
action: notify.hottublog
This still works but the Repair message is telling me it stops working in 2024.12.0.
The File notify.hottublog action is migrated, but it seems the old notify action is still being used.
A new notify entity is available now to replace each legacy notify action.
Update any automations or scripts to use the new notify.send_message action exposed with this new entity. When this is done, select Submit and restart Home Assistant.
If i just change action: notify.hottublog
to action: notify.send_message
, how will it know that the target is the hottublog?
I’m missing something and reading the File documentation doesn’t help. Can someone help me with the syntax please.
2 posts - 2 participants