![]() |
Release MQTT Adapter - Now forked (2022) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152) +---- Thread: Release MQTT Adapter - Now forked (2022) (/showthread.php?tid=222109) |
MQTT Adapter - Now forked (2022) - owagner - 2015-03-22 As per October 2022, a forked version is available. Go to the update post here: https://forum.kodi.tv/showthread.php?tid=222109&pid=3114761#pid3114761 *added by moderator* ---------------------------------------------------------------------------------------------------------------------------------- Overview This is a Kodi addon which acts as an adapter between a Kodi media center instance and MQTT. It publishes Kodi's playback state on MQTT topics, and provides remote control capability also via messages to MQTT topics. It's intended as a building block in heterogenous smart home environments where an MQTT message broker is used as the centralized message bus. See https://github.com/mqtt-smarthome for a rationale and architectural overview. Download Source is available on GitHub at https://github.com/owagner/kodi2mqtt Installable packages are available on the GitHub release page https://github.com/owagner/kodi2mqtt/releases/ Settings The addon has three settings: * the MQTT broker's IP address or host name (defaults to 127.0.0.1) * the MQTT broker's port. This defaults to 1883, which is the MQTT standard port for unencrypted connections. * the topic prefix which to use in all published and subscribed topics. Defaults to "kodi/". Topics The addon publishes on the following topics (prefixed with the configured topic prefix):
The addon listens to the following topics (prefixed with the configured topic prefix):
Feedback welcome! Best Regards, Olli RE: kodi2mqtt - MQTT Adapter - jvandenbroek - 2015-04-12 Great add-on, thanks! One suggestion: Could you allow hostname as input for the server instead of only IP address? RE: kodi2mqtt - MQTT Adapter - scottt732 - 2015-05-17 I just started playing around with MQTT & Kodi and I think this can really be the start of something amazing. With this plugin installed on multiple Kodi instances and all of them sharing the same storage & database (the typical MySQL config), it would be possible for them to either periodically broadcast their activity or respond to requests to publish their activity on-demand (by any other instance). I'm thinking Kodi instance name (Living room, bedroom, etc), the currently playing file, and the position of the transport. It would be possible for another client to get approximately synchronized to the same position in the same file. It would also give users the ability to pause in one room and resume in any other. Standard MQTT keep-alives and last-will-and-testament concepts would allow any client to know which other instances on the network were active (not just runnning). Even the remote apps would be able to cause > 1 instance to do the same thing at the same time. For instance, imagine clicking the Share icon on your mobile device and sharing to an app that publishes a request onto MQTT asking any/every client to start playing the same YouTube clip at the same time. I don't have any Python experience, but I am a developer and with a lot of message queue experience. I'm happy to help out with the protocol/messaging design... I'm tempted to start teaching myself Python for this. Any chance you can get TLS working? RE: kodi2mqtt - MQTT Adapter - RockerC - 2015-06-16 Not sure if this is still being developed but if it is then this project should probably be renamed to meet the official trademark policy? http://kodi.wiki/view/Official:Trademark_Policy You should not use "Kodi" or "XBMC" in the name of unoffical products, see this section: http://kodi.wiki/view/Official:Trademark_Policy#Related_Software Related Software XBMC Foundation products are designed to be extended, and we recognize that community members writing add-ons and supplemental software need some way to identify the XBMC Foundation product to which their add-on/software pertain. Our main concern about add-ons and related software is that consumers not be confused as to whether they are official (meaning approved by XBMC Foundation) or not. To address that concern, we request that add-ons and supplemental software names not include, in whole or in part, the words "XBMC Foundation" or "Kodi" in a way that suggests a connection between XBMC Foundation and the add-on or software (e.g., "Frobnicator for Kodi," would be acceptable, but "Kodi Frobnicator" would not). RE: MQTT Adapter - owagner - 2015-06-16 I've just released v0.4: Code: V0.4 - 2015-06-16 - owagner @jvandenbroek: done @RockerC: thanks for pointing this out, I've amended the documentation and addon zip name accordingly; at the UI level, it was already just called "MQTT Adapter" throughout. Best Regards, Olli RE: MQTT Adapter - Mike Lowrey - 2015-06-21 Thanks for this great addon! I'm using it with my Openelec installation. Unfortunately sometimes I get an Addon Error and afterwards the service seems to stop until I do a restart. Any advice on how to debug this issue? RE: MQTT Adapter - owagner - 2015-07-25 Hi, I've now uploaded a new version which should fix the error: https://github.com/owagner/kodi2mqtt/releases/tag/v0.5 Best Regards, Olli RE: MQTT Adapter - owagner - 2015-09-15 I've just uploaded v0.8 at https://github.com/owagner/kodi2mqtt/releases/tag/v0.8 Code: v0.8 - 2015-09-15 - owagner RE: MQTT Adapter - tameion - 2016-01-15 Awesome addon Olli (Owagner)! I'm using it with my Raspberry Pi Openelec installation and on three other PC's in an home. Each install of Kodi has five user profiles and links to a central SQL database for syncing user watched lists. I am now using your plugin to post each install's details of who is watching what, when & where to a Mosquitto MQTT broker (Also on a Raspberry Pi) The MQTT messages are picked up by EventGhost on my central server which displays system wide status on its home screen using Rainmeter. Your plugin has filled in a gap in my system and I appreciate your hard work. Would love to compare notes on home automation.... Again thanks. RE: MQTT Adapter - tameion - 2016-01-23 Please delete.... RE: MQTT Adapter - ReducedToZero - 2016-01-28 Really nice ![]() Any plans for inclusion in the official repo? RE: MQTT Adapter - namirda - 2016-02-04 Hi Olli I really like your addon - I think it will help get around a problem with the old xbmc binding in OpenHAB which does not seem to have been updated for some time. MQTT Adapter was simple to setup and configure and ran without issues. Do you have any future plans for it? A couple of points : 1) When I boot my system, it can take a while before the network (and hence the MQTT broker) become available. MQTT Adapter tries to connect to the MQTT broker but when it cannot, it fails to retry. It is necessary for me to disable and then re-enable the addon in order to get it started. It would be great if MQTT Adapter could retry periodically until the connection succeeds. 2) I think it would be good if the update period of the progress sentence could be made user configurable. Thanks again for a great addon - wish I had thought of it! RE: MQTT Adapter - jvandenbroek - 2016-02-04 (2016-02-04, 10:09)namirda Wrote: Hi OlliHi namird, I had the first issue already covered in my fork of the add-on (https://github.com/jvandenbroek/kodi2mqtt) and just added your second request. Make sure you restart Kodi after changing the progress interval, somehow it doesn't do it by itself, which I'll look into later. If all is stable I'll create a pull request for the original project. [edit]Just created a pull request for the official fork, hopefully some of my additions can be included.[/edit] RE: MQTT Adapter - namirda - 2016-02-04 Great thank you! I have just tried your fork and it is working well. Nice that it is possible to completely disable the progress topic if desired. RE: MQTT Adapter - owagner - 2016-02-23 I've just done a new release (V0.12) including jvandenbroek's changes and some others: https://github.com/owagner/kodi2mqtt/releases/tag/v0.12 Code: v0.12 - 2016-02-022 - markferry Best Regards, Olli |