Skip to content

Commit

Permalink
Add Eddi Active Heater Sensor (#370)
Browse files Browse the repository at this point in the history
Expose `hno` field as Eddi Active Heater Sensor
  • Loading branch information
jmccrohan committed Aug 13, 2023
1 parent ba94e6d commit 65e2f33
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions custom_components/myenergi/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,20 @@ async def async_setup_entry(hass, entry, async_add_devices):
create_energy_meta("Energy consumed session", "consumed_session"),
)
)
sensors.append(
MyenergiSensor(
coordinator,
device,
entry,
create_meta("Active Heater",
"active_heater",
None,
None,
None,
"mdi:fraction-one-half",
),
)
)
if device.temp_1 != -1:
sensors.append(
MyenergiSensor(
Expand Down

0 comments on commit 65e2f33

Please sign in to comment.