22.06.2020, 10:21
Enabled logging in your script and post what you get:
Code:
mclient.ON_LOG = log
MQTT broker example
|
22.06.2020, 10:21
Enabled logging in your script and post what you get:
Code: mclient.ON_LOG = log
22.06.2020, 10:23
(This post was last modified: 22.06.2020, 10:46 by thomasoppida.)
Only 0 and 1.
Sorry admin, didnt see your post. I enabled logging and it seems like I am receiving a 1 byte on this one.. thats weird because the trait in gbridge is a onoff.. Thank you very much for your help :-) Using my old script now that has conversion.
22.06.2020, 14:50
I've installed broker package from the first post on LM5 Lite + Ext (i.MX6) SW: 20191015, installation went without errors but mosquitto process have not started. I've also installed UI package, but it says i need to have at least 2020xxx firmware. I'm really interested in moving my broker to LM to reduce amount of dedicated hardware (and points of failure) needed to run automation, is there any updates on general availability?
22.06.2020, 14:57
I will send you Beta FW to PM but we are not far of with RC2 release. It contains some bugs.
------------------------------
Ctrl+F5
20.08.2021, 14:21
(19.03.2020, 07:23)admin Wrote: Unfortunately these packages require some other system packages to be updated. This is only possible via full firmware upgrade. Hi, am also getting same errors like I have 2 errors: error loading module 'mosquitto' from file 'Library mosquitto.so': Error loading shared library libssl.so.1.1: No such file or directory (needed by /usr/lib/libmosquitto.so.1) stack traceback: [C]: at 0x00055d50 [C]: in function 'require' Resident script:112: bad argument #2 to 'selectfds' (number expected, got nil) stack traceback: [C]: in function 'selectfds' but my Hardware is LM5p2-DR with latest version (V052021)
20.08.2021, 14:27
Have you installed MQTT packages separately? You don't have to do this, MQTT support is already built into the 2021 firmware. Try reinstalling the firmware to revert the packages.
20.08.2021, 14:30
Is there a manual for using the internal MQTT broker?
20.08.2021, 14:33
(This post was last modified: 20.08.2021, 14:42 by dharma@srujan-infotech.com.)
(20.08.2021, 14:27)admin Wrote: Have you installed MQTT packages separately? You don't have to do this, MQTT support is already built into the 2021 firmware. Try reinstalling the firmware to revert the packages. can you Please send the latest firmware link which is suitable for my hardware. (20.08.2021, 14:27)admin Wrote: Have you installed MQTT packages separately? You don't have to do this, MQTT support is already built into the 2021 firmware. Try reinstalling the firmware to revert the packages. hi, after the new version am getting the error like... Mqttt 20.08.2021 20:08:47 * arg: 1 * string: mqtt disconnect * arg: 2 * bool: false * arg: 3 * number: 7 * arg: 4 * string: unexpected disconnect * arg: 5 * nil
24.08.2021, 05:44
(20.08.2021, 14:30)Bobby Wrote: Is there a manual for using the internal MQTT broker?You need to install the MQTT broker configuration" app from the store to use it. Do you have any specific questions? (20.08.2021, 14:33)dharma@srujan-infotech.com Wrote: hi,Install these packages and try again. There will be a more descriptive error report. https://dl.openrb.com/pkg/libmosquitto_2...1_imx6.ipk https://dl.openrb.com/pkg/luamosquitto_2...0_imx6.ipk
03.09.2021, 11:13
Hi!As i am new to MQTT broker, i dont know how to use it.I want to use my smartthings hub to all my Z.wave applications, since LM dont support it anymore. How do i set things up to get it to talk together?sorry for lame questions, this is probably a walk in the park for you.
Br Bobby (24.08.2021, 05:44)admin Wrote:(20.08.2021, 14:30)Bobby Wrote: Is there a manual for using the internal MQTT broker?You need to install the MQTT broker configuration" app from the store to use it. Do you have any specific questions?
03.09.2021, 12:52
I don't know how to setup your smartthing hub but LM must subscribe to the same topics what your hub. There are several MQTT client scripts on the forum for example this.
https://forum.logicmachine.net/showthrea...6#pid17126
------------------------------
Ctrl+F5
01.11.2021, 18:15
(09.03.2020, 08:49)edgars Wrote: Here is a step by step guide to make LogicMachine act as MQTT broker. Hi , I am testing how MQTT works, I have updated the firmware of LM and activated the MQTT Broker app. I have configured it for unsecured connections and created the example script as resident, but it does not work and I get this error all the time: Resident script:133: bad argument #2 to 'selectfds' (number expected, got nil). stack traceback: [C]: in function 'selectfds'. How can I fix it. Thanks.
01.11.2021, 18:23
If someone want to help set up all my Z-wave sensors to talk with LM, via ie MQTT and Smartthings hub, i would appreciate it. Can also pay some for the help.
Since the Z-wave module in LM is not working now, none of my sensors are online.
02.11.2021, 08:59
@Hyxion14
The script works for me correctly using the latest firmware. Can you post the whole script? Are you using RC3? You don't need to install any packages apart from the MQTT broker app. @Bobby Smartthings hubs now have Lua driver support for local network communication. Do you only need sensor data in LM or a two-way communication? https://developer.samsung.com/smartthing...utomations
19.12.2021, 08:59
(02.11.2021, 08:59)admin Wrote: @Hyxion14Hi. I need 2way as i have a couple of relays as well...
02.01.2022, 21:02
(02.11.2021, 08:59)admin Wrote: @Hyxion14 Is there a way to make this work on a SpaceLYnk? BR Lars Eirik
03.01.2022, 08:28
SL has all the mqtt libs in, the only thing you miss is the broker app but you can also use an external one.
------------------------------
Ctrl+F5
03.01.2022, 13:24
13.01.2022, 10:59
So there is no way a SpaceLYnk can act as a broker?
13.01.2022, 11:12
Use it on your own risk
https://dl.openrb.com/pkg/mqtt-broker-20210104.ipk
------------------------------
Ctrl+F5 |
« Next Oldest | Next Newest »
|