Skip to content

Commit

Permalink
Expose "Load balancing priority" (lop) as number entity (Closes: #131
Browse files Browse the repository at this point in the history
…) (#132)
  • Loading branch information
syssi committed Feb 3, 2024
1 parent f92ae73 commit c0bf1b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ Use the Web UI (Config flow) to add the "go-eCharger" integration. You have to k
| `ate` | Automatic stop energy | `config` | :heavy_check_mark: | :heavy_check_mark: | |
| `att` | Automatic stop time | `config` | :heavy_check_mark: | :heavy_check_mark: | |
| `awp` | Awattar maximum price threshold | `config` | :heavy_check_mark: | :heavy_check_mark: | |
| `lop` | Load balancing priority | `config` | :white_large_square: | :white_large_square: | [^1] |

### Select entities

Expand Down
12 changes: 12 additions & 0 deletions custom_components/goecharger_mqtt/definitions/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,16 @@ class GoEChargerNumberEntityDescription(
native_min_value=-100,
native_step=0.1,
),
GoEChargerNumberEntityDescription(
key="lop",
name="Load balancing priority",
entity_category=EntityCategory.CONFIG,
device_class=None,
native_unit_of_measurement=None,
entity_registry_enabled_default=False,
disabled=True,
native_max_value=99,
native_min_value=1,
native_step=1,
),
)

0 comments on commit c0bf1b6

Please sign in to comment.