Skip to content

Commit

Permalink
Add more fridge sensor #41
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed May 14, 2023
1 parent 9a65eab commit 604cf1b
Show file tree
Hide file tree
Showing 23 changed files with 540 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,20 @@ For every device exists a hidden button which can be used to log all infos of yo
#### Configs
| Name | Icon | Entity | Key |
| --- | --- | --- | --- |
| Freezer Temperature | `thermometer` | `number` | `settings.tempSelZ2` |
| Fridge Temperature | `thermometer` | `number` | `settings.tempSelZ1` |
| Program | | `select` | `startProgram.program` |
#### Sensors
| Name | Icon | Entity | Key |
| --- | --- | --- | --- |
| Auto-Set Mode | `robot-outline` | `binary_sensor` | `intelligenceMode` |
| Door Status Freezer | `fridge-top` | `binary_sensor` | `doorStatusZ1` |
| Door Status Fridge | `fridge-bottom` | `binary_sensor` | `door2StatusZ1` |
| Holiday Mode | `palm-tree` | `binary_sensor` | `holidayMode` |
| Room Humidity | `water-percent` | `sensor` | `humidityEnv` |
| Room Temperature | `thermometer` | `sensor` | `tempEnv` |
| Super Cool | `snowflake` | `binary_sensor` | `quickModeZ2` |
| Super Freeze | `snowflake-variant` | `binary_sensor` | `quickModeZ1` |

### Tumble dryer
#### Controls
Expand Down
50 changes: 50 additions & 0 deletions custom_components/hon/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,56 @@ class HonBinarySensorEntityDescription(
translation_key="door_open",
),
),
"REF": (
HonBinarySensorEntityDescription(
key="quickModeZ2",
name="Super Cool",
icon="mdi:snowflake",
device_class=BinarySensorDeviceClass.RUNNING,
on_value="1",
translation_key="super_cool",
),
HonBinarySensorEntityDescription(
key="quickModeZ1",
name="Super Freeze",
icon="mdi:snowflake-variant",
device_class=BinarySensorDeviceClass.RUNNING,
on_value="1",
translation_key="super_freeze",
),
HonBinarySensorEntityDescription(
key="doorStatusZ1",
name="Door Status Freezer",
device_class=BinarySensorDeviceClass.DOOR,
icon="mdi:fridge-top",
on_value="1",
translation_key="freezer_door",
),
HonBinarySensorEntityDescription(
key="door2StatusZ1",
name="Door Status Fridge",
icon="mdi:fridge-bottom",
device_class=BinarySensorDeviceClass.DOOR,
on_value="1",
translation_key="fridge_door",
),
HonBinarySensorEntityDescription(
key="intelligenceMode",
name="Auto-Set Mode",
icon="mdi:robot-outline",
device_class=BinarySensorDeviceClass.RUNNING,
on_value="1",
translation_key="auto_set",
),
HonBinarySensorEntityDescription(
key="holidayMode",
name="Holiday Mode",
icon="mdi:palm-tree",
device_class=BinarySensorDeviceClass.RUNNING,
on_value="1",
translation_key="holiday_mode",
),
),
}


Expand Down
18 changes: 18 additions & 0 deletions custom_components/hon/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,24 @@
translation_key="target_temperature",
),
),
"REF": (
NumberEntityDescription(
key="settings.tempSelZ1",
name="Fridge Temperature",
entity_category=EntityCategory.CONFIG,
icon="mdi:thermometer",
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
translation_key="fridge_temp_sel",
),
NumberEntityDescription(
key="settings.tempSelZ2",
name="Freezer Temperature",
entity_category=EntityCategory.CONFIG,
icon="mdi:thermometer",
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
translation_key="freezer_temp_sel",
),
),
}

NUMBERS["WD"] = unique_entities(NUMBERS["WM"], NUMBERS["TD"])
Expand Down
24 changes: 24 additions & 0 deletions custom_components/hon/translations/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,24 @@
},
"buzzer": {
"name": "Zvuková signalizace konce cyklu"
},
"holiday_mode": {
"name": "Režim Holiday"
},
"auto_set": {
"name": "Automatické nastavení"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Otevřená dvířka Mraznička"
},
"fridge_door": {
"name": "Otevřená dvířka Chladnička"
}
},
"number": {
Expand Down Expand Up @@ -1254,6 +1272,12 @@
},
"steam_level": {
"name": "Úroveň páry"
},
"freezer_temp_sel": {
"name": "Cílová teplota Mraznička"
},
"fridge_temp_sel": {
"name": "Cílová teplota Chladnička"
}
},
"button": {
Expand Down
24 changes: 24 additions & 0 deletions custom_components/hon/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,24 @@
},
"buzzer": {
"name": "Signalton zum Programmende"
},
"holiday_mode": {
"name": "Holiday-Modus"
},
"auto_set": {
"name": "Auto-Set"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Tür offen Gefrierschrank"
},
"fridge_door": {
"name": "Tür offen Kühlschrank"
}
},
"number": {
Expand Down Expand Up @@ -1254,6 +1272,12 @@
},
"steam_level": {
"name": "Dampfstufe"
},
"freezer_temp_sel": {
"name": "Zieltemperatur Gefrierschrank"
},
"fridge_temp_sel": {
"name": "Zieltemperatur Kühlschrank"
}
},
"button": {
Expand Down
24 changes: 24 additions & 0 deletions custom_components/hon/translations/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,24 @@
},
"buzzer": {
"name": "Κουδούνισμα τέλους κύκλου"
},
"holiday_mode": {
"name": "Λειτουργια Holiday"
},
"auto_set": {
"name": "Αυτόματη ρύθμιση"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Πόρτα ανοιχτή Καταψύκτης"
},
"fridge_door": {
"name": "Πόρτα ανοιχτή Ψυγείο"
}
},
"number": {
Expand Down Expand Up @@ -1254,6 +1272,12 @@
},
"steam_level": {
"name": "Επίπεδο ατμού"
},
"freezer_temp_sel": {
"name": "Στοχευμένη θερμοκρασία Καταψύκτης"
},
"fridge_temp_sel": {
"name": "Στοχευμένη θερμοκρασία Ψυγείο"
}
},
"button": {
Expand Down
24 changes: 24 additions & 0 deletions custom_components/hon/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,24 @@
},
"buzzer": {
"name": "Cycle end chime"
},
"holiday_mode": {
"name": "Holiday Mode"
},
"auto_set": {
"name": "Auto-Set"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Door open Freezer"
},
"fridge_door": {
"name": "Door open Fridge"
}
},
"number": {
Expand Down Expand Up @@ -1322,6 +1340,12 @@
},
"steam_level": {
"name": "Steam Level"
},
"freezer_temp_sel": {
"name": "Target temperature Freezer"
},
"fridge_temp_sel": {
"name": "Target temperature Fridge"
}
},
"button": {
Expand Down
24 changes: 24 additions & 0 deletions custom_components/hon/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,24 @@
},
"buzzer": {
"name": "Campana de fin de ciclo"
},
"holiday_mode": {
"name": "Modo Holiday"
},
"auto_set": {
"name": "Auto-Set"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Puerta abierta Congelador"
},
"fridge_door": {
"name": "Puerta abierta Frigorífico"
}
},
"number": {
Expand Down Expand Up @@ -1254,6 +1272,12 @@
},
"steam_level": {
"name": "Nivel de vapor"
},
"freezer_temp_sel": {
"name": "Temperatura deseada Congelador"
},
"fridge_temp_sel": {
"name": "Temperatura deseada Frigorífico"
}
},
"button": {
Expand Down
24 changes: 24 additions & 0 deletions custom_components/hon/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,24 @@
},
"buzzer": {
"name": "Sonnerie de fin de cycle"
},
"holiday_mode": {
"name": "Mode Holiday"
},
"auto_set": {
"name": "Réglage automatique"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Porte ouverte Congélateur"
},
"fridge_door": {
"name": "Porte ouverte Réfrigérateur"
}
},
"number": {
Expand Down Expand Up @@ -1254,6 +1272,12 @@
},
"steam_level": {
"name": "Niveau de vapeur"
},
"freezer_temp_sel": {
"name": "Température cible Congélateur"
},
"fridge_temp_sel": {
"name": "Température cible Réfrigérateur"
}
},
"button": {
Expand Down
24 changes: 24 additions & 0 deletions custom_components/hon/translations/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,24 @@
},
"buzzer": {
"name": "Cycle end chime"
},
"holiday_mode": {
"name": "Holiday Mode"
},
"auto_set": {
"name": "Auto-Set"
},
"super_cool": {
"name": "Super Cool"
},
"super_freeze": {
"name": "Super Freeze"
},
"freezer_door": {
"name": "Door open Freezer"
},
"fridge_door": {
"name": "Door open Fridge"
}
},
"number": {
Expand Down Expand Up @@ -707,6 +725,12 @@
},
"steam_level": {
"name": "מפלס קיטור"
},
"freezer_temp_sel": {
"name": "Target temperature Freezer"
},
"fridge_temp_sel": {
"name": "Target temperature Fridge"
}
},
"button": {
Expand Down
Loading

0 comments on commit 604cf1b

Please sign in to comment.