Skip to content

Commit

Permalink
Merge pull request #53 from ChristophCaina/patch-3
Browse files Browse the repository at this point in the history
Add option to select u1p3p modes
  • Loading branch information
a529987659852 authored May 1, 2023
2 parents 8e9bd09 + 77d9c42 commit 5f157aa
Showing 1 changed file with 112 additions and 0 deletions.
112 changes: 112 additions & 0 deletions custom_components/openwbmqtt/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,118 @@ class openWBNumberEntityDescription(NumberEntityDescription):
"Fahrzeug",
],
),
openwbSelectEntityDescription(
key="config/get/u1p3p/nurpvPhases",
entity_category=EntityCategory.CONFIG,
name="Phasenumschaltung PV-Laden",
valueMapCurrentValue={
1: "1 Phase",
3: "3 Phasen",
4: "Auto",
},
valueMapCommand={
"1 Phase": 1,
"3 Phasen": 3,
"Auto": 4,
},
mqttTopicCommand="config/set/u1p3p/nurpvPhases",
mqttTopicCurrentValue="config/get/u1p3p/nurpvPhases",
modes=[
"1 Phase",
"3 Phasen",
"Auto",
],
),
openwbSelectEntityDescription(
key="config/get/u1p3p/minundpvPhases",
entity_category=EntityCategory.CONFIG,
name="Phasenumschaltung Min+PV-Laden",
valueMapCurrentValue={
1: "1 Phase",
3: "3 Phasen",
4: "Auto",
},
valueMapCommand={
"1 Phase": 1,
"3 Phasen": 3,
"Auto": 4,
},
mqttTopicCommand="config/set/u1p3p/minundpvPhases",
mqttTopicCurrentValue="config/get/u1p3p/minundpvPhases",
modes=[
"1 Phase",
"3 Phasen",
"Auto",
],
),
openwbSelectEntityDescription(
key="config/get/u1p3p/sofortPhases",
entity_category=EntityCategory.CONFIG,
name="Phasenumschaltung Sofort-Laden",
valueMapCurrentValue={
1: "1 Phase",
3: "3 Phasen",
4: "Auto",
},
valueMapCommand={
"1 Phase": 1,
"3 Phasen": 3,
"Auto": 4,
},
mqttTopicCommand="config/set/u1p3p/sofortPhases",
mqttTopicCurrentValue="config/get/u1p3p/sofortPhases",
modes=[
"1 Phase",
"3 Phasen",
"Auto",
],
),
openwbSelectEntityDescription(
key="config/get/u1p3p/nachtPhases",
entity_category=EntityCategory.CONFIG,
entity_registry_enabled_default=False,
name="Phasenumschaltung (Modus Nacht-Laden)",
valueMapCurrentValue={
1: "1 Phase",
3: "3 Phasen",
4: "Auto",
},
valueMapCommand={
"1 Phase": 1,
"3 Phasen": 3,
"Auto": 4,
},
mqttTopicCommand="config/set/u1p3p/nachtPhases",
mqttTopicCurrentValue="config/get/u1p3p/nachtPhases",
modes=[
"1 Phase",
"3 Phasen",
"Auto",
],
),
openwbSelectEntityDescription(
key="config/get/u1p3p/standbyPhases",
entity_category=EntityCategory.CONFIG,
entity_registry_enabled_default=False,
name="Phasenumschaltung (Modus Standby)",
valueMapCurrentValue={
1: "1 Phase",
3: "3 Phasen",
4: "Auto",
},
valueMapCommand={
"1 Phase": 1,
"3 Phasen": 3,
"Auto": 4,
},
mqttTopicCommand="config/set/u1p3p/standbyPhases",
mqttTopicCurrentValue="config/get/u1p3p/standbyPhases",
modes=[
"1 Phase",
"3 Phasen",
"Auto",
],
),
]

SELECTS_PER_LP = [
Expand Down

0 comments on commit 5f157aa

Please sign in to comment.