Skip to content

Commit a109058

Browse files
docs(inverter-setup): match Hold charging by prefix in the LuxPower freeze automations
With this branch, a run that raised a warning ends with predbat.status set to '<state>, Warn: ...'. That gets past the Freeze Charge Exit automation's Warn:/Error: filter, and its exact match on 'Hold charging' then fails, so the default branch turns AC charge off during a hold. Match with startswith, as the same automations already do for 'Charging' and 'Freeze charging'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 75fd9f0 commit a109058

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎docs/inverter-setup.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,7 @@ actions:
15721572
- condition: template
15731573
value_template: |
15741574
{{ trigger.to_state.state.startswith('Charging')
1575-
or trigger.to_state.state == 'Hold charging' }}
1575+
or trigger.to_state.state.startswith('Hold charging') }}
15761576
sequence:
15771577
- target:
15781578
entity_id: switch.lux_ac_charge_enable
@@ -1595,7 +1595,7 @@ actions:
15951595
- conditions:
15961596
- condition: template
15971597
value_template: |
1598-
{{ trigger.to_state.state == 'Hold charging' }}
1598+
{{ trigger.to_state.state.startswith('Hold charging') }}
15991599
sequence:
16001600
- target:
16011601
entity_id: number.lux_ac_battery_charge_level
@@ -1670,7 +1670,7 @@ triggers:
16701670
value_template: |
16711671
16721672
{{ states('predbat.status').startswith('Charging')
1673-
or states('predbat.status') == 'Hold charging' }}
1673+
or states('predbat.status').startswith('Hold charging') }}
16741674
16751675
sequence:
16761676
- if:
@@ -1714,7 +1714,7 @@ triggers:
17141714
- condition: template
17151715
value_template: |
17161716
1717-
{{ states('predbat.status') == 'Hold charging' }}
1717+
{{ states('predbat.status').startswith('Hold charging') }}
17181718
17191719
sequence:
17201720
- action: number.set_value

0 commit comments

Comments
 (0)