Skip to content

Commit f696cec

Browse files
committed
Topic transformer
1 parent 1c05e50 commit f696cec

11 files changed

Lines changed: 104 additions & 18 deletions

File tree

CHANGELOG.md

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

33
All notable changes to homebridge-easy-mqtt will be documented in this file.
44

5+
## 2.1.0-beta.0 (2026-07-21)
6+
7+
### Added
8+
- [Topic Transformers](https://github.com/mpatfield/homebridge-easy-mqtt/wiki/Advanced-Topic-Notation#topic-transformer) to alter the publish topics based on the value
9+
10+
### Changed
11+
- Updated dependencies
12+
13+
### Notes
14+
- Please consider giving this plugin a ⭐️ on [GitHub](https://github.com/mpatfield/homebridge-easy-mqtt) if you're finding it useful!
15+
516
## 2.0.0 (2026-07-07)
617

718
### Added
@@ -19,7 +30,6 @@ All notable changes to homebridge-easy-mqtt will be documented in this file.
1930

2031
### Notes
2132
- The major version update from v1 to v2 reflects the significant code restructuring needed to support Matter. There should be no breaking changes for existing configurations, but please [open a ticket](https://github.com/mpatfield/homebridge-easy-mqtt/issues/new/choose) if you have any issues.
22-
- Please consider giving this plugin a ⭐️ on [GitHub](https://github.com/mpatfield/homebridge-easy-mqtt) if you're finding it useful!
2333

2434
## 1.5.17 (2026-06-04)
2535

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"displayName": "Easy MQTT",
55
"description": "Homebridge plugin for MQTT devices",
66
"type": "module",
7-
"version": "2.0.0",
7+
"version": "2.1.0-beta.0",
88
"homepage": "https://github.com/mpatfield/homebridge-easy-mqtt#readme",
99
"repository": {
1010
"type": "git",

src/i18n/en.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,8 @@ const en = {
478478
reconnectMinutes: 'Will attempt to reconnect to %s in %s minutes…', // host, number
479479
reconnectSeconds: 'Will attempt to reconnect to %s in %s seconds…', // host, number
480480
reuse: '%s reusing existing client with id %s', // accessory name, uuid
481-
transformedValue: 'Transforming value from %s to %s', // number, number
481+
transformedTopic: 'Transforming topic from %s to %s', // topic, topic
482+
transformedValue: 'Transforming value from %s to %s', // value, value
482483
transformFailed: 'Unable to execute transform:',
483484
},
484485

src/i18n/missing/da.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const da = {
2+
3+
mqttClient: {
4+
transformedTopic: 'Transforming topic from %s to %s', // topic, topic
5+
},
6+
7+
};
8+
9+
export default da;

src/i18n/missing/de.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ const de = {
3131
},
3232
},
3333

34+
mqttClient: {
35+
transformedTopic: 'Transforming topic from %s to %s', // topic, topic
36+
},
37+
3438
startup: {
3539
homekitNewAccessory: 'Adding HomeKit accessory:',
3640
homekitRemoveAccessory: 'Removing HomeKit accessory:',

src/i18n/missing/fr.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const fr = {
2+
3+
mqttClient: {
4+
transformedTopic: 'Transforming topic from %s to %s', // topic, topic
5+
},
6+
7+
};
8+
9+
export default fr;

src/i18n/missing/it.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ const it = {
147147
mqttClient: {
148148
messageUndefined: 'Message on %s with topic %s was transformed to undefined. Ignoring…', // host, topic
149149
publishUndefined: 'Nothing to publish to %s with topic %s. Transformed value is undefined.', // host, topic
150-
transformedValue: 'Transforming value from %s to %s', // number, number
150+
transformedTopic: 'Transforming topic from %s to %s', // topic, topic
151+
transformedValue: 'Transforming value from %s to %s', // value, value
151152
transformFailed: 'Unable to execute transform:',
152153
},
153154

src/i18n/missing/ro.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const ro = {
2+
3+
mqttClient: {
4+
transformedTopic: 'Transforming topic from %s to %s', // topic, topic
5+
},
6+
7+
};
8+
9+
export default ro;

src/i18n/missing/vi.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const vi = {
2+
3+
mqttClient: {
4+
transformedTopic: 'Transforming topic from %s to %s', // topic, topic
5+
},
6+
7+
};
8+
9+
export default vi;

0 commit comments

Comments
 (0)