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");
}
Code: Select all
void receive(const MyMessage &msg) {
Serial.print("Message received !!! => ");
Serial.println(msg.getString());
}
