mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Mill Heater: Add support for Energy consumption (#43523)
This commit is contained in:
parent
47ff04d9ad
commit
3b105c415b
@ -114,6 +114,8 @@ class MillHeater(ClimateEntity):
|
|||||||
"heating": self._heater.is_heating,
|
"heating": self._heater.is_heating,
|
||||||
"controlled_by_tibber": self._heater.tibber_control,
|
"controlled_by_tibber": self._heater.tibber_control,
|
||||||
"heater_generation": 1 if self._heater.is_gen1 else 2,
|
"heater_generation": 1 if self._heater.is_gen1 else 2,
|
||||||
|
"consumption_today": self._heater.day_consumption,
|
||||||
|
"consumption_total": self._heater.total_consumption,
|
||||||
}
|
}
|
||||||
if self._heater.room:
|
if self._heater.room:
|
||||||
res["room"] = self._heater.room.name
|
res["room"] = self._heater.room.name
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"domain": "mill",
|
"domain": "mill",
|
||||||
"name": "Mill",
|
"name": "Mill",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/mill",
|
"documentation": "https://www.home-assistant.io/integrations/mill",
|
||||||
"requirements": ["millheater==0.3.4"],
|
"requirements": ["millheater==0.4.0"],
|
||||||
"codeowners": ["@danielhiversen"],
|
"codeowners": ["@danielhiversen"],
|
||||||
"config_flow": true
|
"config_flow": true
|
||||||
}
|
}
|
||||||
|
@ -943,7 +943,7 @@ mficlient==0.3.0
|
|||||||
miflora==0.7.0
|
miflora==0.7.0
|
||||||
|
|
||||||
# homeassistant.components.mill
|
# homeassistant.components.mill
|
||||||
millheater==0.3.4
|
millheater==0.4.0
|
||||||
|
|
||||||
# homeassistant.components.minio
|
# homeassistant.components.minio
|
||||||
minio==4.0.9
|
minio==4.0.9
|
||||||
|
@ -468,7 +468,7 @@ meteofrance-api==0.1.1
|
|||||||
mficlient==0.3.0
|
mficlient==0.3.0
|
||||||
|
|
||||||
# homeassistant.components.mill
|
# homeassistant.components.mill
|
||||||
millheater==0.3.4
|
millheater==0.4.0
|
||||||
|
|
||||||
# homeassistant.components.minio
|
# homeassistant.components.minio
|
||||||
minio==4.0.9
|
minio==4.0.9
|
||||||
|
Loading…
x
Reference in New Issue
Block a user