DrHauss / node-red-contrib_BRP069C4

Module for Node-Red to Control ACs via Daikin Cloud
MIT License
5 stars 1 forks source link

TypeError: Cannot read property 'setData' of null #16

Closed Mordac25 closed 1 year ago

Mordac25 commented 1 year ago

First of all: great work! I can now use node-red-contrib-daikin-cloud to read info from my Daikin airco :) Reading values with 'get' works perfectly! I connect using username and password. I do have a problem with changing values. When I try to set a value I always get: TypeError: Cannot read property 'setData' of null

This is what I send to the node (not my real ssid of course) :


msg.topic = "set"; msg.payload.ssid = "DaikinAP00000"; msg.payload.managementPoint = "climateControl"; msg.payload.dataPoint = "onOffMode"; msg.payload.value = "on"; return msg;

I tried several other settable datapoints but no joy

Mordac25 commented 1 year ago

sorry. I forgot to add this:

msg.payload = {};

it works perfectly!