Repository navigation
Error changing dispatch mode on the inverter #10
Javert1969
started this conversation in
General
Replies: 1 comment 1 reply
|
I think I can see this one 🙂 The problem isn't the quotes, it's the service being called. You've currently got:
but that service is for changing the whole list of available options. To select one of the existing options it should be: - service: input_select.select_option
entity_id: input_select.alphaess_helper_dispatch_mode
option: "No Battery Charge (19)"So I'd change just that service name and try it again. That also explains the error about Nice simple one for a change! |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I switched the read only off for a few minutes to see whether any of the inverter controls are working and forced it to Freeze Export mode.
Good news is that some of the controls are working - a few settings in the integration were changed and the dispatch was activated.
However the command to change the inverter dispatch mode doesn't work:
Full text of discharge freeze service:
discharge_freeze_service:
# Stop all existing forced battery modes first
entity_id: input_boolean.alphaess_helper_force_charging
- service: input_boolean.turn_off
entity_id: input_boolean.alphaess_helper_force_charging_hold
service: input_boolean.turn_off
entity_id: input_boolean.alphaess_helper_force_export
service: input_boolean.turn_off
entity_id: input_boolean.alphaess_helper_force_discharging
- service: input_boolean.turn_off
entity_id: input_boolean.alphaess_helper_force_import
service: input_boolean.turn_off
entity_id: input_boolean.alphaess_helper_dispatch
service: input_select.set_options
entity_id: input_select.alphaess_helper_dispatch_mode
option: "No Battery Charge (19)"
service: input_number.set_value
entity_id: input_number.alphaess_helper_dispatch_duration
value: 480
service: input_boolean.turn_on
entity_id: input_boolean.alphaess_helper_dispatch
discharge_stop_service:
service: input_boolean.turn_off
entity_id: input_boolean.alphaess_helper_force_export
service: input_boolean.turn_off
entity_id: input_boolean.alphaess_helper_force_discharging
Release any active Discharge Freeze / Dispatch hold
service: input_boolean.turn_off
entity_id: input_boolean.alphaess_helper_dispatch
Error log from thehome assistant predbat logs when this command was attempted to be executed:
2026-08-27 18:26:57.651027: Warn: Service call input_select/set_options data {'entity_id': 'input_select.alphaess_helper_dispatch_mode', 'option': 'No Battery Charge (19)'} failed: {'code': 'invalid_format', 'message': "extra keys not allowed @ data['option']"}
I created a script that does roughly the same commands and ran it successfully. The YAML did not contain quote marks around "No Battery Charge (19)" so I tried that in the apps.yaml but the same error.
I guess worst case I can call a script from the apps.yaml instead but I am not sure why this doesn't work for me but works for you.
All reactions