Closed Letrab closed 1 year ago
@codmdu could have a look into this?
I am the original submitter in that facebook group. Was unsure if I did something wrong, or if there was a technical issue. Appreciate the work on this plugin and am happy to test out potential solutions in my Loxone system here.
Hey @tbernaerd, could you test this with 0.10.12
? Thanks!
``As reported by someone (not me), on the Belgian Loxone users Facebook group, who has a crashing plugin:
And indeed, I see on receiving a
message_text
event, which is of typejson
ortext(=default case)
, there is no data variable defined currently: https://github.com/codmpm/node-red-contrib-loxone/blob/master/loxone/loxone.js#L213 and https://github.com/codmpm/node-red-contrib-loxone/blob/master/loxone/loxone.js#L262which was before: https://github.com/codmpm/node-red-contrib-loxone/blob/3acab1a4fe36b451d63dd1b66ac590577e80f64a/loxone/loxone.js#L126
This data structure should be re-introduced in the handling of a
message_text
(or at least handled differently):var data = { type: message.type };
Thanks!