[MQTT Plugin] Need Static MQTT Client ID


#1

Hi,

first, sorry for my bad written english.

and now my problem: I use Fhem Homeautomation Server. On My AnetA8 Mod with Marlin 1.1.8 woks Uptodate Octoprint on RPI 3+.
I use the MQTT plugin for Octoprint and MQTT2 on Fhem. In Fhem is an option to "autocreat" Mqtt Devices. This Works very fine, but only Octoprint creat on every Startup (boot /reboot) a new Device with a random "client_id".
at the footer of the mqtt-dokumentation i read, " OctoPrint-MQTT uses the Eclipse Paho Python Client under the hood,"

and their in the readme, i read " client_id

the unique client id string used when connecting to the broker. If client_id is zero length or None , then one will be randomly generated. In this case the clean_session parameter must be True ."

but how can i do this? I need a unique static Client_ID for Fhem-Mqtt2
is it possible to edit this in one config file?


#2

Yes. If that's what the instructions say to do, the copy one of the ones that got generated from before and fill in that client id. Let us know how it works out.


#3

I do not understand, what do I have to edit where?

in which directories do I have to edit which files?


#4

@kurtnelle, there isn't a way to statically assign a clientid in the MQTT plugin. You can set a username/password but I don't think this is the same thing that @DasQ is running into. I've added a feature request to the MQTT repo for this.


#5

thanks a lot, that`s what i need.


#6

You needed a change request. That's kinda sad. I would think having the need to have a static client id would have come up by now.


#7

The MQTT plugin was one of the many that recently got transferred to other developers (including myself) by foosel because she knew they were not getting the attention they deserve. I've been real busy with work and have a backlog of my own plugin issues that need some attention, so I get it. If I'm able to, I'll look into this request over the weekend to see how hard it will be to implement. If it's not too difficult I'll submit a PR for review by the other team members once completed, and potentially get you guys to test prior to submitting if that's ok since I don't have the same MQTT restrictions as you guys.


#8

Incorporated into branch 1.8.2 for testing. Install using the following url in plugin manager to verify it's working for you please. If everything looks good on your end I'll release an official version.

https://github.com/OctoPrint/OctoPrint-MQTT/archive/0.8.2.zip


#9

installation no problem but

first try, no changes

fhem Log

2019.04.20 10:11:25 2: autocreate: define MQTT2_3TNZHoUbNXtz8FvCoseuii MQTT2_DEVICE 3TNZHoUbNXtz8FvCoseuii
2019.04.20 10:11:25 2: autocreate: define FileLog_MQTT2_3TNZHoUbNXtz8FvCoseuii FileLog ./log/MQTT2_3TNZHoUbNXtz8FvCoseuii-%Y.log MQTT2_3TNZHoUbNXtz8FvCoseuii

after reboot 
2019.04.20 10:22:37 2: autocreate: define MQTT2_3gliFh2LSFrsjJu4O9q1cF MQTT2_DEVICE 3gliFh2LSFrsjJu4O9q1cF
2019.04.20 10:22:37 2: autocreate: define FileLog_MQTT2_3gliFh2LSFrsjJu4O9q1cF FileLog ./log/MQTT2_3gliFh2LSFrsjJu4O9q1cF-%Y.log MQTT2_3gliFh2LSFrsjJu4O9q1cF

do i have first, something to configure?

octopi log

******************************************************************************
2019-04-20 10:22:15,167 - octoprint.startup - INFO - Starting OctoPrint 1.3.11rc3
2019-04-20 10:22:15,168 - octoprint.startup - INFO - ******************************************************************************
2019-04-20 10:22:15,588 - octoprint.startup - INFO - Blacklist processing done, adding 1 blacklisted plugin versions: roomtemp (any)
2019-04-20 10:22:15,705 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2019-04-20 10:22:19,972 - octoprint.plugins.errortracking - INFO - Initialized error tracking
2019-04-20 10:22:19,982 - octoprint.plugin.core - INFO - Found 26 plugin(s) providing 26 mixin implementations, 37 hook handlers
2019-04-20 10:22:20,371 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2019-04-20 10:22:20,429 - octoprint.server - INFO - Intermediary server started
2019-04-20 10:22:20,431 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2019-04-20 10:22:21,200 - octoprint.plugin.core - INFO - Found 26 plugin(s) providing 26 mixin implementations, 37 hook handlers
2019-04-20 10:22:21,252 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...
2019-04-20 10:22:21,848 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.
2019-04-20 10:22:22,457 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2019-04-20 10:22:25,837 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2019-04-20 10:22:27,629 - octoprint.util.pip - INFO - Version of pip is 19.0.1
2019-04-20 10:22:27,631 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python2.7/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2019-04-20 10:22:27,633 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-04-20 10:22:27,639 - octoprint.plugin.core - INFO - Initialized 26 plugin implementation(s)
2019-04-20 10:22:27,662 - octoprint.plugin.core - INFO - 26 plugin(s) registered with the system:
|  Action Command Prompt Support (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/action_command_prompt
|  Action Commands (0.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_actioncommands
|  Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/announcements
|  Anonymous Usage Tracking (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/tracking
|  Application Keys Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/appkeys
|  Automatic Shutdown (0.1.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_automaticshutdown
|  Backup & Restore (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/backup
|  Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/corewizard
|  Detailed Progress Plugin (0.1.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_detailedprogress
|  Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/discovery
|  EEPROM Marlin Editor Plugin (1.2.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_eeprom_marlin
|  Error Tracking (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/errortracking
|  FileManager (0.1.3) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_filemanager
|  Firmware Updater (1.2.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_firmwareupdater
|  Force Login (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/forcelogin
|  GcodeEditor (0.2.6) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_GcodeEditor
|  Logging (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/logging
|  MQTT (0.8.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_mqtt
|  Pi Support Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pi_support
|  Plugin Manager (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager
|  Preheat Button (0.3.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_preheat
|  Print History Plugin (1.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_printhistory
|  Printer Safety Check (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/printer_safety_check
|  Slicer (1.4.3) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_slicer
|  Software Update (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/softwareupdate
|  Virtual Printer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/virtual_printer
2019-04-20 10:22:27,684 - octoprint.environment - INFO - Detected environment is Python 2.7.13 under Linux (linux2). Details:
|  hardware:
|    cores: 4
|    freq: 1200.0
|    ram: 918188032
|  os:
|    id: linux
|    platform: linux2
|  plugins:
|    pi_support:
|      model: Raspberry Pi 3 Model B Rev 1.2
|      octopi_version: 0.16.0
|  python:
|    pip: 19.0.1
|    version: 2.7.13
|    virtualenv: /home/pi/oprint
2019-04-20 10:22:27,698 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2019-04-20 10:22:27,720 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2019-04-20 10:22:28,394 - octoprint.server - INFO - Shutting down intermediary server...
2019-04-20 10:22:28,741 - octoprint.server - INFO - Intermediary server shut down
2019-04-20 10:22:28,744 - octoprint.events - INFO - Processing startup event, this is our first event
2019-04-20 10:22:28,745 - octoprint.events - INFO - Adding 0 events to queue that were held back before startup event
2019-04-20 10:22:28,786 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2019-04-20 10:22:28,889 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2019-04-20 10:22:28,905 - octoprint.server.util.watchdog - INFO - Running initial scan on watched folder...
2019-04-20 10:22:28,909 - octoprint.server.util.watchdog - INFO - ... initial scan done.
2019-04-20 10:22:28,925 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance "My Printer"' for _http._tcp
2019-04-20 10:22:28,939 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance "My Printer"' for _octoprint._tcp
2019-04-20 10:22:28,951 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance "My Printer" for SSDP
2019-04-20 10:22:28,965 - octoprint.plugins.pi_support - WARNING - This Raspberry Pi is reporting problems that might lead to bad performance or errors caused by overheating or insufficient power.
!!! UNDERVOLTAGE REPORTED !!! Make sure that the power supply and power cable are capable of supplying enough voltage and current to your Pi.
2019-04-20 10:22:29,005 - octoprint.server - INFO - Listening on http://127.0.0.1:5000
2019-04-20 10:22:29,024 - octoprint.plugins.mqtt - INFO - Connected to mqtt broker
2019-04-20 10:22:29,043 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2019-04-20 10:22:29,613 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2019-04-20 10:22:30,743 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.1.34
2019-04-20 10:22:31,178 - octoprint.server.util.flask - INFO - Passively logging in user root from ::ffff:192.168.1.34
2019-04-20 10:22:31,204 - octoprint.server.util.sockjs - INFO - User root logged in on the socket from client ::ffff:192.168.1.34
2019-04-20 10:22:31,936 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2019-04-20 10:22:31,939 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python2.7/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2019-04-20 10:22:31,950 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-04-20 10:22:33,014 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=de', 'path': '/', 'base_url': 'http://192.168.1.150/'}
2019-04-20 10:23:01,828 - octoprint.server.preemptive_cache - INFO - ... done in 20.53s
2019-04-20 10:23:01,829 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=de', 'path': '/', 'base_url': 'http://octopi/'}
2019-04-20 10:23:09,863 - octoprint.server.preemptive_cache - INFO - ... done in 8.03s
2019-04-20 10:23:09,865 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://192.168.1.150/'}
2019-04-20 10:23:22,199 - octoprint.server.preemptive_cache - INFO - ... done in 12.33s
2019-04-20 10:23:22,201 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=de', 'path': '/', 'base_url': 'http://octopi.local/'}
2019-04-20 10:23:29,752 - octoprint.server.preemptive_cache - INFO - ... done in 7.55s
2019-04-20 10:29:52,926 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.1.34
2019-04-20 10:29:53,728 - octoprint.server.util.flask - INFO - Passively logging in user root from ::ffff:192.168.1.34
2019-04-20 10:30:02,977 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.1.34
2019-04-20 10:30:03,148 - octoprint.server.util.flask - INFO - Passively logging in user root from ::ffff:192.168.1.34
2019-04-20 10:30:05,445 - octoprint.server.util.sockjs - INFO - User root logged in on the socket from client ::ffff:192.168.1.34
2019-04-20 10:30:20,963 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Detecting serial port"
2019-04-20 10:30:21,139 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting serial port" to "Opening serial port"
2019-04-20 10:30:21,142 - octoprint.util.comm - INFO - Changing monitoring state from "Opening serial port" to "Detecting baudrate"
2019-04-20 10:30:22,154 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2019-04-20 10:30:22,180 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting baudrate" to "Operational"
2019-04-20 10:30:22,196 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2019-04-20 10:30:22,211 - octoprint.plugins.firmwareupdater - INFO - Got CONNECTED event
2019-04-20 10:30:22,216 - octoprint.plugins.firmwareupdater - INFO - Run postflash flag is not set
2019-04-20 10:30:24,816 - octoprint.util.comm - INFO - Printer reports firmware name "Marlin 1.1.8 (Github)"
2019-04-20 10:30:24,842 - octoprint.util.comm - INFO - Firmware states that it supports temperature autoreporting
2019-04-20 10:30:33,359 - octoprint.util.comm - INFO - Firmware states that it supports temperature autoreporting
2019-04-20 10:33:01,268 - octoprint.server.api.system - INFO - Performing command for core:reboot: sudo shutdown -r now
2019-04-20 10:33:01,500 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.1.34
2019-04-20 10:33:01,831 - octoprint.server - INFO - Shutting down...
2019-04-20 10:33:02,406 - octoprint.events - INFO - Processing shutdown event, this will be our last event
2019-04-20 10:33:02,434 - octoprint.events - INFO - Event loop shut down
2019-04-20 10:33:03,532 - octoprint.server - INFO - Goodbye!
2019-04-20 10:33:15,675 - octoprint.startup - INFO - ******************************************************************************
2019-04-20 10:33:15,677 - octoprint.startup - INFO - Starting OctoPrint 1.3.11rc3
2019-04-20 10:33:15,681 - octoprint.startup - INFO - ******************************************************************************
2019-04-20 10:33:15,768 - octoprint.startup - INFO - Blacklist processing done, adding 1 blacklisted plugin versions: roomtemp (any)
2019-04-20 10:33:15,843 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2019-04-20 10:33:20,717 - octoprint.plugins.errortracking - INFO - Initialized error tracking
2019-04-20 10:33:20,727 - octoprint.plugin.core - INFO - Found 26 plugin(s) providing 26 mixin implementations, 37 hook handlers
2019-04-20 10:33:21,124 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2019-04-20 10:33:21,916 - octoprint.server - INFO - Intermediary server started
2019-04-20 10:33:21,918 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2019-04-20 10:33:22,696 - octoprint.plugin.core - INFO - Found 26 plugin(s) providing 26 mixin implementations, 37 hook handlers
2019-04-20 10:33:22,748 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...
2019-04-20 10:33:23,341 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.
2019-04-20 10:33:23,711 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2019-04-20 10:33:25,937 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2019-04-20 10:33:27,713 - octoprint.util.pip - INFO - Version of pip is 19.0.1
2019-04-20 10:33:27,716 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python2.7/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2019-04-20 10:33:27,717 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-04-20 10:33:27,723 - octoprint.plugin.core - INFO - Initialized 26 plugin implementation(s)
2019-04-20 10:33:27,746 - octoprint.plugin.core - INFO - 26 plugin(s) registered with the system:
|  Action Command Prompt Support (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/action_command_prompt
|  Action Commands (0.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_actioncommands
|  Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/announcements
|  Anonymous Usage Tracking (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/tracking
|  Application Keys Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/appkeys
|  Automatic Shutdown (0.1.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_automaticshutdown
|  Backup & Restore (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/backup
|  Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/corewizard
|  Detailed Progress Plugin (0.1.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_detailedprogress
|  Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/discovery
|  EEPROM Marlin Editor Plugin (1.2.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_eeprom_marlin
|  Error Tracking (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/errortracking
|  FileManager (0.1.3) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_filemanager
|  Firmware Updater (1.2.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_firmwareupdater
|  Force Login (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/forcelogin
|  GcodeEditor (0.2.6) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_GcodeEditor
|  Logging (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/logging
|  MQTT (0.8.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_mqtt
|  Pi Support Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pi_support
|  Plugin Manager (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager
|  Preheat Button (0.3.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_preheat
|  Print History Plugin (1.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_printhistory
|  Printer Safety Check (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/printer_safety_check
|  Slicer (1.4.3) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_slicer
|  Software Update (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/softwareupdate
|  Virtual Printer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/virtual_printer
2019-04-20 10:33:27,771 - octoprint.environment - INFO - Detected environment is Python 2.7.13 under Linux (linux2). Details:
|  hardware:
|    cores: 4
|    freq: 1200.0
|    ram: 918188032
|  os:
|    id: linux
|    platform: linux2
|  plugins:
|    pi_support:
|      model: Raspberry Pi 3 Model B Rev 1.2
|      octopi_version: 0.16.0
|  python:
|    pip: 19.0.1
|    version: 2.7.13
|    virtualenv: /home/pi/oprint
2019-04-20 10:33:27,786 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2019-04-20 10:33:27,808 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2019-04-20 10:33:28,489 - octoprint.server - INFO - Shutting down intermediary server...
2019-04-20 10:33:28,838 - octoprint.server - INFO - Intermediary server shut down
2019-04-20 10:33:28,841 - octoprint.events - INFO - Processing startup event, this is our first event
2019-04-20 10:33:28,843 - octoprint.events - INFO - Adding 0 events to queue that were held back before startup event
2019-04-20 10:33:28,857 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2019-04-20 10:33:28,889 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2019-04-20 10:33:28,956 - octoprint.server.util.watchdog - INFO - Running initial scan on watched folder...
2019-04-20 10:33:28,958 - octoprint.server.util.watchdog - INFO - ... initial scan done.
2019-04-20 10:33:28,975 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance "My Printer"' for _http._tcp
2019-04-20 10:33:28,988 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance "My Printer"' for _octoprint._tcp
2019-04-20 10:33:28,995 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance "My Printer" for SSDP
2019-04-20 10:33:29,016 - octoprint.plugins.pi_support - WARNING - This Raspberry Pi is reporting problems that might lead to bad performance or errors caused by overheating or insufficient power.
!!! UNDERVOLTAGE REPORTED !!! Make sure that the power supply and power cable are capable of supplying enough voltage and current to your Pi.
2019-04-20 10:33:29,057 - octoprint.server - INFO - Listening on http://127.0.0.1:5000
2019-04-20 10:33:29,077 - octoprint.plugins.mqtt - INFO - Connected to mqtt broker
2019-04-20 10:33:29,191 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2019-04-20 10:33:30,184 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2019-04-20 10:33:32,434 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2019-04-20 10:33:32,439 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python2.7/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2019-04-20 10:33:32,440 - octoprint.util.pip - INFO - ==> pip ok -> yes
2019-04-20 10:33:33,082 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=de', 'path': '/', 'base_url': 'http://192.168.1.150/'}
2019-04-20 10:33:33,389 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.1.34
2019-04-20 10:33:33,564 - octoprint.server.util.flask - INFO - Passively logging in user root from ::ffff:192.168.1.34
2019-04-20 10:33:33,581 - octoprint.server.util.sockjs - INFO - User root logged in on the socket from client ::ffff:192.168.1.34
2019-04-20 10:34:00,897 - octoprint.server.preemptive_cache - INFO - ... done in 20.50s
2019-04-20 10:34:00,899 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=de', 'path': '/', 'base_url': 'http://octopi/'}
2019-04-20 10:34:08,363 - octoprint.server.preemptive_cache - INFO - ... done in 7.46s
2019-04-20 10:34:08,365 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://192.168.1.150/'}
2019-04-20 10:34:21,885 - octoprint.server.preemptive_cache - INFO - ... done in 13.52s
2019-04-20 10:34:21,886 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=de', 'path': '/', 'base_url': 'http://octopi.local/'}
2019-04-20 10:34:29,325 - octoprint.server.preemptive_cache - INFO - ... done in 7.44s
2019-04-20 10:41:24,347 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.1.34
2019-04-20 10:41:25,155 - octoprint.server.util.flask - INFO - Passively logging in user root from ::ffff:192.168.1.34
2019-04-20 10:41:40,194 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.1.34
2019-04-20 10:41:40,420 - octoprint.server.util.flask - INFO - Passively logging in user root from ::ffff:192.168.1.34
2019-04-20 10:41:43,939 - octoprint.server.util.sockjs - INFO - User root logged in on the socket from client ::ffff:192.168.1.34
2019-04-20 10:48:21,128 - octoprint.server.heartbeat - INFO - Server heartbeat <3


#10

Yes, in the settings change enable the option and set your client_id. Once set, restart octoprint.


#11

shame on me. in german we said "den Wald vor lauter Bäume nicht gesehn" "did not see the forest for the trees"

19.04.20 19:45:22 4: Connection accepted from MQTT2_Broker_192.168.1.150_33779
2019.04.20 19:45:22 5: CONNECT: (16)A(0)(6)MQIsdp(3)(238)(0)<(0)(6)OctoPi(0)(13)octoprint/LWT(0)(12)disconnected(0)(4)andy(0)(8)passwort
2019.04.20 19:45:22 4: MQTT2_Broker_192.168.1.150_33779 OctoPi CONNECT V:3 keepAlive:60 LWT:octoprint/LWT:disconnected usr:andy


It Works very Fine !!!:laughing::smiley:
Thanks a lot :kissing_heart: