Skip to content

Commit 9c0cedd

Browse files
committed
[fix] handler: _updateZones: match zones by name and type and add debug log #192
1 parent 9b7a77f commit 9c0cedd

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

3-
## v8.7.8 - 2026-01-11
3+
## v8.7.8 - 2026-01-13
4+
- Fix: Match zones by name and type when updating zone states (#192)
45
- Add more debug logs for accessory state updates
56

67
## v8.7.7 - 2026-01-01

src/helper/handler.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,9 +888,10 @@ export default (api, accessories, config, tado, telegram) => {
888888

889889
const allZones = (await tado.getZones(config.homeId)) || [];
890890

891+
Logger.debug("_updateZones: config zones", config.zones);
891892
for (const [index, zone] of config.zones.entries()) {
892893
allZones.forEach((zoneWithID) => {
893-
if (zoneWithID.name === zone.name) {
894+
if (zoneWithID.name === zone.name && zoneWithID.type === zone.type) {
894895
const heatAccessory = accessories.filter(
895896
(acc) => acc && acc.displayName === config.homeName + ' ' + zone.name + ' Heater'
896897
);

0 commit comments

Comments
 (0)