Skip to content

Commit

Permalink
Added measurement unit settings for the missing sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Feb 25, 2024
1 parent 102b5c6 commit 0e6c320
Showing 1 changed file with 33 additions and 7 deletions.
40 changes: 33 additions & 7 deletions custom_components/echonetlite/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,17 @@
CONF_MAXIMUM: 90,
},
}, # "Water heating temperature setting",
# 0xB4: , # "Manual water heating stop days setting",
0xB4: {
CONF_TYPE: SensorDeviceClass.TEMPERATURE,
CONF_STATE_CLASS: SensorStateClass.MEASUREMENT,
}, # "Manual water heating stop days setting",
# 0xB5: , # "Relative time setting value for manual water heating OFF",
# 0xB6: , # Tank operation mode setting",
# 0xC0: , # Daytime reheating permission setting",
# 0xC1: , # Measured temperature of water in water heater",
0xC1: {
CONF_TYPE: SensorDeviceClass.TEMPERATURE,
CONF_STATE_CLASS: SensorStateClass.MEASUREMENT,
}, # Measured temperature of water in water heater",
# 0xC2: , # Alarm status",
# 0xC3: , # Hot water supply status",
# 0xC4: , # Relative time setting for keeping bath temperature",
Expand Down Expand Up @@ -332,8 +338,16 @@
CONF_MAXIMUM: 100,
},
}, # Bath water volume setting",
# 0xE1: , # Measured amount of water remaining in tank",
# 0xE2: , # Tank capacity",
0xE1: {
CONF_TYPE: SensorDeviceClass.WATER,
CONF_UNIT_OF_MEASUREMENT: UnitOfVolume.LITERS,
CONF_STATE_CLASS: SensorStateClass.MEASUREMENT,
}, # Measured amount of water remaining in tank",
0xE2: {
CONF_TYPE: SensorDeviceClass.WATER,
CONF_UNIT_OF_MEASUREMENT: UnitOfVolume.LITERS,
CONF_STATE_CLASS: SensorStateClass.MEASUREMENT,
}, # Tank capacity",
# 0xE3: , # Automatic bath water heating mode setting",
# 0xE9: , # Bathroom priority setting",
# 0xEA: , # Bath operation status monitor",
Expand Down Expand Up @@ -385,7 +399,11 @@
},
}, # Volume setting",
# 0xD7: , # Mute setting",
# 0xD8: , # Remaining hot water volume",
0xD8: {
CONF_TYPE: SensorDeviceClass.WATER,
CONF_UNIT_OF_MEASUREMENT: UnitOfVolume.LITERS,
CONF_STATE_CLASS: SensorStateClass.MEASUREMENT,
}, # Remaining hot water volume",
0xDB: {
CONF_TYPE: SensorDeviceClass.POWER,
CONF_STATE_CLASS: SensorStateClass.MEASUREMENT,
Expand Down Expand Up @@ -464,8 +482,16 @@
0xE4: {
CONF_ICON: "mdi:heat-wave",
},
0xE7: {CONF_UNIT_OF_MEASUREMENT: UnitOfVolume.LITERS},
0xEE: {CONF_UNIT_OF_MEASUREMENT: UnitOfVolume.LITERS},
0xE7: {
CONF_TYPE: SensorDeviceClass.WATER,
CONF_UNIT_OF_MEASUREMENT: UnitOfVolume.LITERS,
CONF_STATE_CLASS: SensorStateClass.MEASUREMENT,
},
0xEE: {
CONF_TYPE: SensorDeviceClass.WATER,
CONF_UNIT_OF_MEASUREMENT: UnitOfVolume.LITERS,
CONF_STATE_CLASS: SensorStateClass.MEASUREMENT,
},
},
0x79: { # Home solar power generation
0xA0: {
Expand Down

0 comments on commit 0e6c320

Please sign in to comment.