Publish and subscribe ioBroker states to MQTT Brokers
This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.
The on connect message
is published to the on connect topic
every time the client connects or reconnects to the server.
The on disconnect message
is published to the on disconnect topic
when the adapter stops gracefully.
The last will message
is published to the last will topic
every time the client connects or reconnects to the server.
The Server will store this message and send it to its subscribers when the client disconnects unexpectedly.
Comma separated list of topics that are not covered by existing states. Received messages are converted to states within the adapter's namespace (e.g. mqtt.0) and subscribed. You can remove topics after all states have been created.
When publishing this will be prepended to all topics. Default is empty (no prefix).
When subscribing this will be prepended to all topics. Default is empty (no prefix).
Enables or disables the mqtt-client functionality for this state. Disabling will delete any mqtt-client settings from this state.
The topic this state is published to and subscribed from. default: state-ID converted to a mqtt topic.
enable
state will be publishedchanges only
state will only be published when its value changesas object
whole state will be published as objectqos
see http://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levelsretain
see http://www.hivemq.com/blog/mqtt-essentials-part-8-retained-messages
enable
topic will be subscribed and state will be updated accordinglychanges only
state will only be written when the value changedas object
messages will be interpreted as objectsqos
see http://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levelsack
on state updates the ack flag will be set accordingly
- when ack is set to true it will overwrite objects ack, see
as object
- to prevent message loops, if both publish and subscribe are enabled
changes only
is always on for subscribe
- (mcm1957) Adapter requires node.js 20 now.
- (mcm1957) Adapter requires js-controller 5.0.19 and admin 6.17.14 now.
- (simatec) Adapter changed to meet Responsive Design rules.
- (mcm1957) Dependencies have been updated.
- (@klein0r) Added missing information in configuration dialog
- (@klein0r) Fixed type of port configuration to avoid conflicts
- (klein0r) Password is now encrypted - you have to re-renter your password in instance settings!
- (klein0r) Use jsonConfig instead of materialize (for instance settings)
- (mcm1957) Adapter requires node.js 18 and js-controller >= 5 now
- (mcm1957) Dependencies have been updated
- (mcm1957) Dependencies have been updated
- (mcm1957) Adapter requires nodejs 16 now
- (foxriver76) prevent crash cases on invalid subscribe
- (DutchmanNL) Option to allow self-signed certificates in adapter settings added.
- (Apollon77) Prevent potential crash cases reported by Sentry
- (Apollon77) Prevent potential crash cases reported by Sentry
- (Pmant) fix subscriptions
- (Pmant) fix unsubscribing
- (Pmant) use prefix for LWT topic
- (Pmant) add option to select protocol version
- (Pmant) add websocket support
- (Pmant) publish values once on enabling publishing
- (Pmant) Upgrade to MQTT version 4 (resolves many connection issues)
- (Pmant) fix LWT documentation
- (Pmant) optionally publish a message when disconnecting gracefully
- IMPORTANT: This adapter now required at least js-controller 3.3.x
- (Apollon77) Fix crash cases
- (bluefox) js-controller 3.3 optimizations
- IMPORTANT: This adapter now required at least js-controller 2.0.0
- (Apollon77) js-controller 3.3 optimizations
- (AlCalzone) Unpublished expired states
- (AlCalzone) Only handle stat values if state exists
- (bluefox) Added support of admin5
- (bluefox) mqtt package moved back to 2.x
- (bluefox) mqtt package was updated
- (bluefox) Fixed the error with "custom" view
- (algar42) Fix adapter restarting
- (algar42) Fix mqtt issues
- (bluefox) Support of js-controller 2.0 was added
- (bluefox) small fixes
- (bluefox) Translations
- (bluefox) Update of MQTT module
- (bluefox) Update io-package.json
- (Pmant) fix initial object parsing
- (Pmant) fix objects view
- (Pmant) fix crash
- (Pmant) add optional publish and subscribe prefixes
- (Pmant) reduce logging -> debug
- (Pmant) use new custom settings
- (Pmant) fix possible loop
- (Pmant) initial commit
The MIT License (MIT)
Copyright (c) 2024, iobroker-community-adapters [email protected] Copyright (c) 2016-2023 Pmant
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.