hm2mqtt 3.6.0 → 3.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -372,8 +372,8 @@ Same topics for events, variables, programs, counters, `set` and `paramset`. Dif
372
372
  ## Development
373
373
 
374
374
  `npm test` (node:test, no CCU needed), `npm run lint`. `deploy.sh` ships the package (and
375
- `file:../` siblings) to a host and restarts the `hm2mqtt@*` units. Plan and decisions:
376
- [ROADMAP.md](ROADMAP.md); changes: [CHANGELOG.md](CHANGELOG.md).
375
+ `file:../` siblings) to a host and restarts the `hm2mqtt@*` units. Plan and decisions: the
376
+ roadmap, kept outside this repository; changes: [CHANGELOG.md](CHANGELOG.md).
377
377
 
378
378
  ## License
379
379
 
@@ -635,7 +635,10 @@ function deviceBlock({iface, device, list, ctx, t, st, cmd, bridgeId, ignored})
635
635
  }
636
636
  const avty = [...availability(name, 2)];
637
637
  if (maintenance && maintenance.description.UNREACH && !ignored(iface, maintenance.ADDRESS, 'UNREACH')) {
638
- avty.push({t: st(iface, maintenance.ADDRESS, 'UNREACH'), avty_tpl: t.bool('offline', 'online')});
638
+ // the template of an entry of an availability *list* is `val_tpl`; `avty_tpl` expands to
639
+ // `availability_template`, which Home Assistant's schema for such an entry does not allow
640
+ // - and it refuses the whole device payload over it (mqtt-interfaces-core 0.15.2)
641
+ avty.push({t: st(iface, maintenance.ADDRESS, 'UNREACH'), val_tpl: t.bool('offline', 'online')});
639
642
  }
640
643
  return {
641
644
  id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hm2mqtt",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "description": "Interface between Homematic CCU and MQTT",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -70,7 +70,7 @@
70
70
  "binrpc": "^3.3.1",
71
71
  "homematic-rega": "^2.0.0",
72
72
  "homematic-xmlrpc": "^2.0.0",
73
- "mqtt-interfaces-core": "^0.15.1"
73
+ "mqtt-interfaces-core": "^0.15.2"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@eslint/js": "^9.0.0",