Skip to content

Commit

Permalink
Add overkiz heating status, absence mode, and boost mode binary senso…
Browse files Browse the repository at this point in the history
…rs for Atlantic Water Heater (#114184)

* Adds heating status, absense mode, and boost mode binary sensors for Atlantic water heater

* Renamed absence mode and boost mode binary sensors

* Update homeassistant/components/overkiz/binary_sensor.py

Co-authored-by: TheJulianJES <TheJulianJES@users.noreply.github.com>

* Update homeassistant/components/overkiz/binary_sensor.py

Co-authored-by: TheJulianJES <TheJulianJES@users.noreply.github.com>

* Update homeassistant/components/overkiz/binary_sensor.py

Co-authored-by: TheJulianJES <TheJulianJES@users.noreply.github.com>

---------

Co-authored-by: TheJulianJES <TheJulianJES@users.noreply.github.com>
  • Loading branch information
ALERTua and TheJulianJES committed Mar 29, 2024
1 parent 8ed0311 commit 3381469
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions homeassistant/components/overkiz/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,22 @@ class OverkizBinarySensorDescription(BinarySensorEntityDescription):
)
== 1,
),
OverkizBinarySensorDescription(
key=OverkizState.CORE_HEATING_STATUS,
name="Heating status",
device_class=BinarySensorDeviceClass.HEAT,
value_fn=lambda state: state == OverkizCommandParam.ON,
),
OverkizBinarySensorDescription(
key=OverkizState.MODBUSLINK_DHW_ABSENCE_MODE,
name="Absence mode",
value_fn=lambda state: state == OverkizCommandParam.ON,
),
OverkizBinarySensorDescription(
key=OverkizState.MODBUSLINK_DHW_BOOST_MODE,
name="Boost mode",
value_fn=lambda state: state == OverkizCommandParam.ON,
),
]

SUPPORTED_STATES = {
Expand Down

0 comments on commit 3381469

Please sign in to comment.