diff --git a/custom_components/goodwe/icons.json b/custom_components/goodwe/icons.json index 0c78f7c..1b824b5 100644 --- a/custom_components/goodwe/icons.json +++ b/custom_components/goodwe/icons.json @@ -25,6 +25,13 @@ } }, "switch": { + "grid_export_limit_switch": { + "default": "mdi:transmission-tower-import", + "state": { + "on": "mdi:transmission-tower", + "off": "mdi:transmission-tower-import" + } + }, "load_control": { "default": "mdi:electric-switch", "state": { diff --git a/custom_components/goodwe/switch.py b/custom_components/goodwe/switch.py index 5a1f98c..1d14af8 100644 --- a/custom_components/goodwe/switch.py +++ b/custom_components/goodwe/switch.py @@ -35,6 +35,13 @@ class GoodweSwitchEntityDescription(SwitchEntityDescription): device_class=SwitchDeviceClass.OUTLET, setting="load_control_switch", ), + GoodweSwitchEntityDescription( + key="grid_export_limit_switch", + translation_key="grid_export_limit_switch", + entity_category=EntityCategory.CONFIG, + device_class=SwitchDeviceClass.SWITCH, + setting="grid_export", + ), ) diff --git a/custom_components/goodwe/translations/cs.json b/custom_components/goodwe/translations/cs.json index 6002859..520288a 100644 --- a/custom_components/goodwe/translations/cs.json +++ b/custom_components/goodwe/translations/cs.json @@ -63,6 +63,9 @@ } }, "switch": { + "grid_export_limit_switch": { + "name": "Řízení dodávky do sítě" + }, "load_control": { "name": "Řízení zátěže" } diff --git a/custom_components/goodwe/translations/en.json b/custom_components/goodwe/translations/en.json index 3c66ab5..8823368 100644 --- a/custom_components/goodwe/translations/en.json +++ b/custom_components/goodwe/translations/en.json @@ -7,7 +7,7 @@ "error": { "connection_error": "Failed to connect" }, -"flow_title": "GoodWe", + "flow_title": "GoodWe", "step": { "user": { "data": { @@ -63,6 +63,9 @@ } }, "switch": { + "grid_export_limit_switch": { + "name": "Grid export limit switch" + }, "load_control": { "name": "Load control" }