Willkommen im Loxone Community Forum. Um alle Funktionen nutzen und sehen zu können, registriere dich bitte zuerst. Dies gilt auch für das herunterladen von Dateien.
Bitte im Titel immer zuerst den Namen des Plugins hinschreiben
This plugin connects to the Loxone Miniserver websocket and the LoxBerry MQTT Gateway and publishes Miniserver control state changes over MQTT. In addition, control commands can be send over MQTT to control the Miniserver directly. More info at the Lox2MQTT wiki page
NOTE: Still in BETA stage, so issues might occur. Please report your issues via GitHub
Find the plugin very interesting and have also installed it on my Loxberry for some time to see how it works. Unfortunately I have not seen any data from your plugin in the MQTT part of the Loxberry so far. I have 2 miniserver, I named them under Miniserver Topic Name and entered them in the MQTT Gateway Subscriptions. But now it is so that neither in the MQTT Finder nor at incomming anything from your plugin is to be seen. If the checkbox publish control states is set, changes or operations from the miniserver should be sent to the MQTT gateway, or do I understand this wrong?
I also set the log level to debug and looked what happens, there I see only one entry: "WebSocketAPI 192.168.179.xxx - close" ervery 2 seconds.
Maybe it helps you.
The number of miniservers listed should match with the ones listed in the loxberry general config.
If this default config is missing or empty, something went wrong with the creation of the default configuration. If you have accesss to your loxberry via ssh, login, and goto the bin/plugins/lox2mqtt directory and rerun the configuration:
Code:
node create_config.js
Then check if your default config has been created.
What does the Lox2MQTT page show as PID at the bottom of the screen? Is it green and connected, or red, meaning disconnected?
At the bottom of the page is displayed in green that your plugin is running with the corresponding PID.
What comes to my mind, my miniserver is not reachable under the standard port 80, but another port was used, but this is entered correctly on the configuration page in the Loxberry and on the page the connection is tested successfully.
What do you need to connect to the miniserver?
Greetings Sascha
Angehängte Dateien
Zuletzt geändert von Meininger; 11.05.2023, 22:42.
Ok let's explore further... Can you check the following with 0.2.3:
Do you see the other log entries like log started, register, etc?
the plugin should not restart after exiting, so the PID should become red/unknown and no reoccuring entries in the log file.
Is the correct port number listed in the log? Since you use HTTPS, it should state 443 (from your general config)
I expect the issue relates to the connection to Miniserver HTTPS port, so I will study this further. Unfortuantely I have no V2 Miniserver so I cannot test HTTPS. If possible for you, you could test with HTTP port 80 (or 5000 in your case), so we can confirm it relates to the port setting.
as you can see the port for the HTTPS communication is also entered.
Now I deactivated the HTTPS communication as suggested and connected both miniserver only with HTTP, unfortunately this changes nothing in your plugin, in the logfile you can see that it still tries to communicate on port 443. Also a restart of the Loxberry brought no change.
After a restart the plugin does not start automatically, PID is red, you have to start the plugin manually.
Thanks for the feedback. The plugin does not monitor yet if there are changes made to the general miniserver settings. I will add this to my list. For now, just hit the save button in the plugin config page.
Can you check the value of the miniserver field "Preferhttps" in your general.json file? In my case it states "null" since it is disabled, because I have a Gen1 Miniserver. I expect you have something like "false" (as string with quotes). Can you confirm?
I also noticed I used the old and wrong authentication method, which was still working for my Gen1 Miniserver but most likely not for Gen2. The plugin now it uses the recommended token-based approach. This might explain the issue with connecting to your Miniservers.
I uploaded v0.2.4. Since I did not implement detection of the general.json changes, after changing the Miniserver settings, restart the plugin by doing a save/apply in the plugin config window. Just try this one and report your findings
First, with the new version of the plugin it also works for me, both miniserver are connected and deliver data. It does not matter whether HTTP or HTTPS is selected or not. Your plugin always connects via HTTP to the miniserver.
Here is the excerpt from the general.json:
Great to hear it is working now. In v0.2.4 I check if Preferhttps is "true", but based on your info I see it uses "1" instead. I will update this in the next release later today or tomorrow, then you could also check https.
Do you have a specific use case in mind to process/use this data? My use case is to pass all this data via MQTT to a new LoxBerry App for my tablets and mobiles. If you have specific ideas/requirements, just let me know and I can see if that fits into the Lox2MQTT concept.
v0.3.0 available. Updates to system configuration or plugin configuration are now detected and will restart the plugin automatically. You can now also login to the Miniserver(s) using different credentials other than the admin which is specified in the general Miniserver settings. More changes listed in the CHANGELOG.
could now also test the new version of the plugin.
Here it is now so that if HTTPS is activated in the settings, it is also tried to communicate on the appropriate port, which is not successful. In the log file only the message "close" can be found again.
For the plugin to work again, the HTTPS connection must be explicitly disabled in the Miniserver communication.
Wir verarbeiten personenbezogene Daten über Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen, Werbung zu personalisieren und Websiteaktivitäten zu analysieren. Wir können bestimmte Informationen über unsere Nutzer mit unseren Werbe- und Analysepartnern teilen. Weitere Einzelheiten finden Sie in unserer Datenschutzrichtlinie.
Wenn Sie unten auf "Einverstanden" klicken, stimmen Sie unserer Datenschutzrichtlinie und unseren Datenverarbeitungs- und Cookie-Praktiken wie dort beschrieben zu. Sie erkennen außerdem an, dass dieses Forum möglicherweise außerhalb Ihres Landes gehostet wird und Sie der Erhebung, Speicherung und Verarbeitung Ihrer Daten in dem Land, in dem dieses Forum gehostet wird, zustimmen.
Kommentar