webCoRE Presence Sensor crashing SmartThings app

fixed

#1

Not sure where to post or who to go to even, but has anyone else noticed an issue when opening webCoRE presence sensor in SmartThings app causing SmartThings app to crash? Every other device works fine, but both of my webCoRE presence sensors crash the app. Go to SmartThings support? @ady624


Smartthings crashing on iOS
webCoRE iOS Application Crash when Adding Presence Sensor
#2

I have the same issue


#3

There have been several users reporting issues with the 2.14 release of the iOS ST app…


#4

Haven’t updated anything here. iOS or ST related. Now updated any repo.

Ok I tell a lie. It’s auto updated. So ST improve their presence sensor and kill another. Typical.


#5

I thnk the issue is within the presence sensor DTH

starting around line 79

tiles(scale: 2) { multiAttributeTile(name: "display", width: 2, height: 2, canChangeBackground: true) { tileAttribute ("device.display", key: "PRIMARY_CONTROL") { attributeState "present, not sleeping", label: 'Home', icon:"st.nest.nest-away", backgroundColor:"#c0ceb9" attributeState "present, sleeping", label: 'Home (asleep)', icon:"st.Bedroom.bedroom2", backgroundColor:"#6879a3" attributeState "not present", label: 'Away', icon:"st.Office.office5", backgroundColor:"#777777" } tileAttribute ("device.status", key: "SECONDARY_CONTROL") { attributeState "default", label:'${currentValue}' }

If I am reading the bug thread and the Multi-Attirbute definition right … should not line 79 have a type attribute - so it read

multiAttributeTile(name: "display", width: 2, type: "generic", height: 2, canChangeBackground: true) {


[Install Instructions] webCoRE Presence Sensor on your iPhone (beta)
#6

Just tested it … that one change seems to have done the trick!


#8

Same here.


#9

Yes crashes, but not full crash. It goes to a black screen, and throws me out but when I reopen the app it is on things not dashboard, as a full crash would do.


#10

@JohnHoke, thanks! That did the trick for me too


#11

Yes…it worked for me too. Thanks for that.


#12

Do you use GitHub? I am grateful for and would like to attribute that fix properly to you if you have an account. Will be in the next release.


#13

I replaced that line and I get an error when saving. Any idea when the fix will be on GitHub?


#14

I use GitHub but sitting in airports today - can you or someone else put it up there instead?


#15

In the IDE my webCoRE presence sensor handler is showing as purple - does that mean there’s been an update to the code in github? I don’t want to update and have the app go back to crashing on me.


#16

The presence sensor DTH fix is released to webCoRE/master now.


#17

Nothing shows as new in IDE under Device Handlers. Shouldin’t it be purple?


#18

Same here


#19

Same here too!


#20

I took the liberty of updating @JohnHoke’s post… code snippets need to be pasted into preformatted text quotations.

This can be done by slelecting the pasted text and then clicking the image button or by using that little known button on your keyboard.

image

Copy / paste should work now :wink:


#21

Try again please