Mood Cube Piston


#9

Plus you get to drink the wine to get your corks.
Its a win win situation. :laughing:


#10

Ugh!!! If I must…Although still kicking around @eibyer ‘s idea of using a baseball case.


#11

I found the original post about the baseball holder.


#12

I imported the piston, but I am unable to get it working. I do not see where the ST Multi sensor is reporting orientation as rear side up…ect. See below.

Logs
12/28/2017, 1:52:55 PM +40ms
+1ms ╔Received event [A Scene Cube].threeAxis = -990,43,10 with a delay of 179ms
+118ms ║RunTime Analysis CS > 11ms > PS > 81ms > PE > 26ms > CE
+121ms ║Runtime (43376 bytes) successfully initialized in 81ms (v0.2.101.20171227) (119ms)
+122ms ║╔Execution stage started
+129ms ║║Comparison (enum) front side up changes = true (0ms)
+130ms ║║Condition #21 evaluated true (3ms)
+130ms ║║Condition group #1 evaluated true (state did not change) (4ms)
+133ms ║║Evaluating switch with values [[i::0fb7c880d6e8db92f7ea5b8bf7a933a7::orientation, v:[t:enum, v:front side up, d::0fb7c880d6e8db92f7ea5b8bf7a933a7:, a:orientation, i:null, x:false, vt:string]]]
+136ms ║║Comparison (enum) front side up is (string) rear side up = false (1ms)
+139ms ║║Comparison (enum) front side up is (string) down side up = false (1ms)
+142ms ║║Comparison (enum) front side up is (string) left side up = false (1ms)
+144ms ║║Comparison (enum) front side up is (string) front side up = true (1ms)
+146ms ║║Cancelling statement #15’s schedules…
+149ms ║║Error executing virtual command [].setVariable: (1ms) groovy.lang.MissingPropertyException: No such property: result for class: script_app_webCoRE_Pi_19514eaf_6f2f_47d6_88e0_3ee12653e45f_ver_0_5 Possible solutions: request
+158ms ║║Executed virtual command setVariable (3ms)
+160ms ║║Cancelling statement #22’s schedules…
+163ms ║║An error occurred while executing the event: java.lang.NullPointerException: Cannot get property ‘v’ on null object
+166ms ║╚Execution stage complete. (45ms)
+167ms ╚Event processed successfully (167ms)


#13

Someone mentioned having trouble with the ST sensor only to find out the newer ones doesn’t report 3-axis anymore?

Not sure if it’s accurate.


#14

This is what I am seeing from the device in ST IDE.


#15

Anyone tried this lately? I backed up from tr580 (shown above) and logs tell me I’m missing a curly brace or bracket.

2/20/2018, 5:31:06 PM +694ms
+1ms ╔Received event [Mood Cube].threeAxis = -23,1040,-11 with a delay of 388ms
+105ms ║An error occurred while executing the event: groovy.json.JsonException: A JSON payload should start with an openning curly brace ‘{’ or an openning square bracket ‘’. Instead, ‘-23’ was found on line: 1, column: 1
+107ms ╚Event processed successfully (107ms)


X axis of contact sensor not working in piston
#16

I’m getting the same error. I haven’t edited the piston since October. I don’t use my mood cube everyday but this is the first I’m noticing that it’s broken. Maybe the minion on this thread has some insight? @eibyer


#17

I’m not at the location where I have the mood cube so can’t really test it. It looks like from the errors everyone is getting that maybe ST did something to the handler? Not really sure.


#18

Fwiw, my piston (almost identical to those posted above) used to work flawlessly, but I don’t use it a lot. Tried today, same errors as you guys posted. I already have a Support ticket going with ST on a different issue involving a Multi reporting negative axis numbers and not working right , so I just casually mentioned the MOODCUBE issue to see if maybe they know of a Multi sensor issue on their end. I’ll tackle it after the first issue is resolved


#19


#20

Is anyone else having trouble with their mood cube Pistons lately? Mine stopped receiving 3-axis events. The last time my Piston executed was on 3/12. The 3 axis events are present in the IDE log, but they don’t seem to be getting passed through to webcore. Other data from my mood cube device is making it to webcore - temperature for example. No other changes have been made to my setup.

Edit: actually, after double checking… IDE is not actually logging any 3 axis events. I’ll be opening a ticket with smartthings.


#21

I’ve seen this as well. Twice I had to re-include the Sensor to get it going again.


#22

Mine is working fine since the above mentioned errors were fixed


#23

Maybe I’m missing something: I have a Multi Sensor, set as a “SmartSense Multi Sensor”.

In webcore, I only get the “status” state (?):

In the IDE, I see:

temperature: 23 C
battery: 83
contact: open
threeAxis: 40,1035,-23
acceleration: inactive
checkInterval: 720
status: open

What am I doing wrong? Shouldn’t I see an “orientation” state somewhere?

(Ideally I would like a device handler that only shows BATTERY and ORIENTATION, rather than threeAxis and the other states which are irrelevant when the sensor is used as a mood cube.)

Thanks!


#24

The handler I’m using is SmartSense Multi, there is another handler listed as SmartSense Multi Sensor.


#25

Dammit I just got rid of all my sons Legos. That’s a good idea.


#26

I’m not sure if you have the same device, but with my SmartThings Multipurpose Sensor, there is no DH required.

temp


#27

thanks. i removed it and re-paired (again, as a “SmartSense Multi Sensor”) and now I get all the options!


#28

I just did this a few days ago with a newer SmartThings Multipurpose sensor as well. Next step is to see if I can get some other ‘advanced features’ to work like the magic cube product. Would be cool if rotate would dim up/down which color is up, tap to toggle on/off, toss/roll to random or party lights, etc :slight_smile: