Impossible to set value of a text node ?

Moderator: leecollings

Post Reply
NCa78
Posts: 3
Joined: Thursday 28 April 2016 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.6460
Location: Saigon
Contact:

Impossible to set value of a text node ?

Post by NCa78 »

Hello,

I am using Domoticz v3.4834 on a Raspberry Pi, a serial Gateway and a sensor with MySensors version 2 beta.
I can see the text node/device in domoticz and add it, it goes to the Utility panel.
However it is impossible for me to set a value, I have tried :
- json api: Value in UI is updated and returns a json confirm message but nothing is sent to the sensor.
- blocky: I get this error message in the log: "Error: EventSystem: Malformed action sequence!"
- lua: no error, but nothing sent to the sensor when I try to set the text value. Log message put together the set value is printed in the log

When I send a text value from the node, it's updated correctly in Domoticz.

My guess is Domoticz doesn't set the value to the "Utility" sensor and it is read only ?

I tried to add a switch to the same node and made the same tests :
- json api: Value in UI is updated and returns a json confirm message but nothing is sent to the sensor
- blocky: no error, the value is sent to the sensor
- lua: the value is sent to the sensor

Did I do something wrong ?

Presentation code : (seems to run ok, both sensors are visible in Domoticz)

Code: Select all

void presentation()  {
  // Send the sketch version information to the gateway and Controller
  sendSketchInfo("Alert Clock", "1.02");
  present(CHILD_ID_TEXT, S_INFO, "Alert Clock");
  present(CHILD_ID_LED, S_LIGHT, "Arduino Led");
}
Receive message code : (runs ok for S_LIGHT)

Code: Select all

void receive(const MyMessage &msg) {
   Serial.print("Message received !!! => ");
   Serial.println(msg.getString());
}
Thank you in advance for your help, I'm close to getting bald :D
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest