As a beginner to coRE, I set up 6 pistons to monitor the state of a 3axis sensor (multipurpose sensor) to be used as a ‘mood cube’. Although I really didn’t think about it enough, I got it to work by a simple IF ‘sensor’ IS ‘right side up’ THEN ‘turn all the first floor lights off’, for example.
Last night the cube stopped responding. I tried changing the battery, but it wasn’t the cause. I panicked and uninstalled and reinstalled coRE. Now when I try to use any 3axis sensor as a trigger, I get an error when I try to save the piston “an unexpected error has occured”. I also notice that no matter what the orientation is of the sensor, I cannot get coRE to recognize it in the mobile app.
When I check the Live Logging, I get this error every time I try to save a piston using a 3 axis sensor as my IF trigger:
8:49:55 AM: error groovy.json.JsonException: A JSON payload should start with an openning curly brace ‘{’ or an openning square bracket ‘[’.
Instead, ‘-998’ was found on line: 1, column: 1 @line 3203 (subscribeToDevices)
I honestly can’t think of what could have changed between the time these pistons worked and stopped working. There was no firmware update, no software update, etc. I can get coRE to save other pistons using other triggers, or even the ‘OPEN’ or ‘CLOSED’ responses from the ‘Contact Sensor’ function of the multipurpose sensor.
ALSO, I tried to initiate the Samsung smartapp MOODCUBE found in the ‘Lights and switches’ category. When I choose a sensor and try to save to the second screen, the app hangs and will not allow me to configure the settings. It just shows a blank page. I get this error in Live Logging:
8:58:36 AM: error groovy.json.JsonException: A JSON payload should start with an openning curly brace ‘{’ or an openning square bracket ‘[’.
Instead, ‘-998’ was found on line: 1, column: 1 @line 295 (getOrientation)
Clearly I am having trouble getting information out of the 3 axis sensors. In the device listing the positions are registering when I move the sensors, however.
I apologize if this is a trivial issue or if I’ve not given enough information. I’m not a programmer and I’ve just begun using coRE. I am totally overwhelmed by the seemingly limitless functionality of this app.