I have an automation setup to adjust my PowerWall settings to minimize solar usage and ensure I don't import from the grid during peak electricity rate periods. The automation sets the Operating Mode, Backup Reserve and Allow Grid Charging settings using the Tesla Fleet integration.
Issue: I noticed that on some days, shortly after the automation runs, the setting revert to their prior values and then change to the desired values over an hour later. Looking at the Activity log, it isn't clear what is triggering these latter two changes (not a rouge automation.) On other days, it works as desired. Has anyone else seen something like this or have ideas about what the root cause might be? (Note: there have not been any changes to the automation recently.)
This shows the state changing unexpectedly on May 12 & 13, but working as expected on May 10 & 11:
Here is the Activity log from May 13:
And the YAML snippet for the automation action being run:
- conditions:
- condition: trigger
id:
- high_gen_charge_start
- condition: numeric_state
entity_id: sensor.solcast_pv_forecast_forecast_today
above: 24.99
sequence:
- action: select.select_option
metadata: {}
target:
entity_id: select.my_house_operation_mode
data:
option: autonomous
- action: number.set_value
metadata: {}
target:
entity_id: number.my_house_backup_reserve
data:
value: "70"
- action: switch.turn_on
metadata: {}
target:
entity_id: switch.my_house_allow_charging_from_grid
data: {}
alias: High solar generation battery charge start

