BottlecapDave / HomeAssistant-OctopusEnergy

Unofficial Home Assistant integration for interacting with Octopus Energy
https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy/
MIT License
610 stars 61 forks source link

Automation running 3 times every trigger #186

Closed coleburg closed 1 year ago

coleburg commented 1 year ago

Describe the bug

I have 1 trigger. Agile current price change, this should trigger every 30 mins. However, it seems to trigger 3 times at exactly the same time. Maybe milliseconds apart. 1 or 2 of which will be with data from the previous current rate.

Expected behavior

Automation should only run once with the trigger of current rate every half an hour

Home Assistant Version

. Home Assistant 2023.3.6 Supervisor 2023.03.2 Operating System 9.5 Frontend 20230309.1 - latest

Integration Version

6.3.0.

Fresh Install?

After upgrade

yaml

alias: Current above average or next description: "" trigger:

mateuszdrab commented 1 year ago

This might be beause the attributes are changing trigerring the automation, you can check that in the automation trace view or try setting to: null on the automation trigger to ignore attributes.

BottlecapDave commented 1 year ago

Hello and sorry you're having issues. Like @mateuszdrab suggested, the traces of the automations might give an indication on why the automation is called multiple times in quick sucession. I also assume that you've renamed the default name of the sensors as sensor.agile_current_rate is not one provided by default.