Skip to content

Update device_action.py#16

Open
prusuino wants to merge 2 commits into
MarstekEnergy:mainfrom
prusuino:patch-1
Open

Update device_action.py#16
prusuino wants to merge 2 commits into
MarstekEnergy:mainfrom
prusuino:patch-1

Conversation

@prusuino

Copy link
Copy Markdown

Add optional power parameter to Marstek device actions

  • extend action schema with optional power
  • expose power in action capabilities
  • allow charge/discharge actions to use custom watt values
  • keep existing default power values when no parameter is provided
  • map charge power to negative values and discharge power to positive values

Add optional `power` parameter to Marstek device actions

- extend action schema with optional `power`
- expose `power` in action capabilities
- allow charge/discharge actions to use custom watt values
- keep existing default power values when no parameter is provided
- map charge power to negative values and discharge power to positive values
Handle explicit zero power correctly in _get_action_parameters
Comment thread custom_components/marstek/device_action.py
@Hammer-NL

Copy link
Copy Markdown

@prusuino Please don't mark a comment as "resolved" as long as you have not pushed the changes to this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants