Skip to content

Commit

Permalink
Add electrolyzer data to Aseko Pool Live (#127249)
Browse files Browse the repository at this point in the history
  • Loading branch information
hopkins-tk authored Oct 2, 2024
1 parent 273795b commit 98a8430
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions homeassistant/components/aseko_pool_live/icons.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"air_temperature": {
"default": "mdi:thermometer-lines"
},
"electrolyzer": {
"default": "mdi:lightning-bolt"
},
"free_chlorine": {
"default": "mdi:pool"
},
Expand Down
7 changes: 7 additions & 0 deletions homeassistant/components/aseko_pool_live/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ class AsekoSensorEntityDescription(SensorEntityDescription):
state_class=SensorStateClass.MEASUREMENT,
value_fn=lambda unit: unit.air_temperature,
),
AsekoSensorEntityDescription(
key="electrolyzer",
translation_key="electrolyzer",
native_unit_of_measurement="g/h",
state_class=SensorStateClass.MEASUREMENT,
value_fn=lambda unit: unit.electrolyzer,
),
AsekoSensorEntityDescription(
key="free_chlorine",
translation_key="free_chlorine",
Expand Down
3 changes: 3 additions & 0 deletions homeassistant/components/aseko_pool_live/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
"air_temperature": {
"name": "Air temperature"
},
"electrolyzer": {
"name": "Electrolyzer"
},
"free_chlorine": {
"name": "Free chlorine"
},
Expand Down

0 comments on commit 98a8430

Please sign in to comment.