(feat adapter): Sonoff - External MQTT broker and alternative Topic#517
Open
patricknitsch wants to merge 5 commits intoioBroker:masterfrom
Open
(feat adapter): Sonoff - External MQTT broker and alternative Topic#517patricknitsch wants to merge 5 commits intoioBroker:masterfrom
patricknitsch wants to merge 5 commits intoioBroker:masterfrom
Conversation
- Add client mode to connect to external MQTT brokers (Mosquitto, EMQX, etc.) - Support username/password authentication for external broker connections - Support MQTTS (TLS/SSL) with certificate configuration - Add topic prefix support for multi-gateway setups - Add advanced connection settings (keepalive, reconnect, clean session) - Create src/lib/client.ts as TypeScript MQTT client wrapper - Update src/main.ts with mode switching (server/client) - Update src/types.d.ts with new configuration fields - Add translations for ru, fr, it, es, pt, nl, pl, uk, zh-cn - Add npm translate script via @iobroker/adapter-dev - Update README with German and English documentation - Update comparison table to reflect external broker support https://claude.ai/code/session_01XjQhfAfCJkrpMwS65eaE9Y
Support Tasmota FullTopic configurations like %topic%/%prefix%/ or tasmota/%topic%/%prefix%/ where the device name comes before tele/stat/cmnd (e.g. tasmota/myDevice/tele/STATE). - Add brokerTopicStructure config option (standard vs device-first) - Update client.ts subscriptions for device-first pattern (+/tele/+) - Normalize incoming messages to standard format for processing - Convert outgoing commands to device-first format when configured - Add topic structure select to admin UI (jsonConfig.json) - Add translations for all 11 languages - Update README with Tasmota FullTopic examples (DE + EN) https://claude.ai/code/session_01XjQhfAfCJkrpMwS65eaE9Y
The adapter was trying to setState('info.connection') without first
creating the state object, causing "has no existing object" error.
https://claude.ai/code/session_01XjQhfAfCJkrpMwS65eaE9Y
Author
|
@GermanBluefox friendly reminder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Actually running on my system with centralized broker and alternative topic. Runs smoothly. Please have a look.