-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mqtt-bridge crashing when sending commands #88
Comments
Mac5000
changed the title
Error module mqtt not found when running
mqtt-bridge crashing when sending commands
Oct 27, 2023
Update : I've managed to run the nodejs process by using pm2 so this makes the process to be relaunched after every command but its not the best solution but for now it works. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
First of all I want to thank you guys for creating this integration. I have everything up and running and I can read values using my mqtt broker but I have a problem with the sending of the commands.
For some reasons (Unfortunally I'm not good in coding ...) the sending of the commands is working fine and the appliance is receiving the command and also excecuting it.
the problem is that the mqtt bridge is crashing with this output :
[UDP] New device registered: c6d18638
[UDP] Device c6d18638 is bound!
[MQTT] Message "1" received for home/greehvac/power/set
/sinclair/app/deviceFactory.js:178
this.device.props[opt] = pack.val[i]
^
TypeError: Cannot read properties of undefined (reading '0')
at /sinclair/app/deviceFactory.js:178:42
at Array.forEach ()
at Device._handleResponse (/sinclair/app/deviceFactory.js:177:16)
at Socket. (/sinclair/app/deviceFactory.js:45:47)
at Socket.emit (node:events:513:28)
at UDP.onMessage [as onmessage] (node:dgram:930:8)
So in the above example I'm just sending value 1 to turn the system on. The system is receiving this command and is also turning on but somewhere something is going wrong resulting in a crash and not accepting any commands anymore.
I allready tried to debug this myself but so far no luck. Any ideas ?
The text was updated successfully, but these errors were encountered: