Erroneous isPhysical() event (Zwave DTH)


(Bobby) #1

Continuing the discussion from [ALPHA VERSION] CoRE (Community's own Rules Engine):

Background: certain DTH erroneously report device/physical action when certain automatic events occur, such as polling the device, which has nothing to do with physical actuation.

http://docs.smartthings.com/en/latest/ref-docs/event-ref.html#isphysical


How to distinguish between manual push of a switch vs. automating turning on a switch
Having an issue setting one switch to toggle multiple switches (GE zwave switch showing multiple events)
Double tap misfiring randomly?
[OBSOLETE] [BETA MILESTONE 1] CoRE (Community's own Rules Engine)
UPDATED 10/7/2015 -- "Double Duty" - Use redundant switch presses to control other lights. You paid a lot for those switches, make them work Double Duty!
Smart Lighting Automations Broken for 8 Months
Hub Firmware Release Notes 08/15/16 (Hub V2) - 15.3
Device / Physical vs / Digital - Digital "physical" triggers?
#2

I know you previously reported that one of the stock device handlers started doing this about 6 weeks ago.

Could you tell us exactly which one? That would make it easier for @slagle to research since it’s not custom code.


(Patrick Musselman) #3

I have seen this happen with my ST motion sensor but I am using Pollster which I believe is a bit of a no no.


(Bobby) #4

If Tim or Jodi have time to merge the posts from other threads as indicated, we should have all of the details.

Here is a recent post that I hope will be moved here (the device is stock zwave switch)

https://community.smartthings.com/t/alpha-version-core-communitys-own-rules-engine/48189/223?u=sbdobrescu&source_topic_id=49799

(Bobby) #5

This is about misreporting a physical action, such as flipping the switch manually, instead of automatically. I don’t think it applies to motion sensors.


(Patrick Musselman) #6

Oh sorry guess I understood. Yesterday, I noticed that when one of the ST motion sensor was polled via Pollster it would create a motion action thus turning on the lights. FYI, this was when no one was at home.


(Bobby) #7

Ouch, that in its own is worthy of a new thread :slight_smile:


#8

For me, one of the most important things about this is that it’s a change. DTHs that did not do this in January 2016 are doing it now. Including official DTHs.

You can see this in the discussions about the double tap code. Stuff that was working, stopped working.

There have been quite a few platform changes during this time period, including some Z wave firmware changes to the hub. And of course it could be that the DTH code itself was changed.

But regardless of the exact point of change, The fact that there was a change seems significant. This isn’t an artifact of the Z wave protocol or something to do with a particular device. The way in which zwave polling reports are handled by the smartthings platform has apparently changed, and that is breaking some existing code, including some official DTHs.

Several reports in the forums of people trying to open a support ticket on this and support just not understanding what the issue is. that’s why I think it’s important to emphasize that this is happening with official device handlers as well and that it is a change in platform behavior, so it can get past the first line of support responses.

Someone may be seeing a failure in custom code, but the failure is because of a change in platform behavior in how an official DTH reports an event.

@Tyler


(Bobby) #9

Looks like no one is home!!!


(Ed) #10

I’ve been in contact with Jason from support and it was determined that the GE 12727 (non-dimmer) and 12729 (dimmer) have different methods of reporting digital vs physical interaction with a switch. Currently the DTH source as reported in the IDE is as follows:

12727
Digital - DEVICE /digital
Physical - DEVICE /physical

12729
Digital - DEVICE
Physical - APP_Command, DEVICE

A feature request has been put in to see if it is possible to change the GE 12729 to report similar to the GE 12727. Below is my example in which Jason was able to replicate.

12727 (non-dimmer)

12729 (dimmer)


CoRE - Get peer assistance here with setting up Pistons
(Ed) #11

I just tested my switches and it looks like the 12727 (non-dimmer) has the physical/digital option where as the 12729 (dimmer) does not. Not sure why the DTH would be so different.

12727 (Non-dimmer)

12729 (Dimmer)


( I hate Mondays) #12

Does CoRE work fine with the physical switch? Talking about the Interaction field, is it working fine? I don’t have any device that can report physical events, so I can’t really test that (I can only assume it does). Thank you


(Ed) #13

Looks like CoRE is working fine for physical interaction. I did a simple test in which I physically turned on a switch to have another switch come on and it worked.

It’s the DTH of the various devices that may have the issue identifying physical vs digital. I’ll put in a ST support ticket to see where there goes.


(Kevin) #14

When writing a Z-Wave DTH, how can you determine if the event sent from the device is physical?

@jody.albritton, @slagle


(Tim Slagle) #15

http://docs.smartthings.com/en/latest/ref-docs/event-ref.html?#isphysical


(Kevin) #16

That’s not what I asked…I’m trying to find out how the device tells the DTH that it’s physical so that that the DTH can include it in the event it creates.

Does the zwave.parse method automatically add it to the command map it generates?


(Tim Slagle) #17

Ah,

The platform knows where he command comes from. If we send it, it’s not physical. If we don’t, it is physical.


(Kevin) #18

Thanks for the response, but are you sure about that?

The documentation, that you just posted a link to, says isPhysical is “true if the Event is from the physical actuation of a Device”.

A device reporting its battery level is not a “physical actuation of a device”, but the platform didn’t send it.

Sorry for being difficult, but some DTH seem to report it the way you would expect and others don’t so I’m trying to understand how it’s supposed to work.


(Bobby) #19

And some apps take the documentation as the absolute truth and get mixed results. Double Duty anyone? What a great idea, too bad there isn’t consistency among DTH…and the more recent event, ST’s own Smart Lighting…

@krlaframboise this proves your point

UPDATED 10/7/2015 -- "Double Duty" - Use redundant switch presses to control other lights. You paid a lot for those switches, make them work Double Duty!

UPDATE: just tried the stock zwave switch DTH and is still not fixed. It is throwing physical without anyone touching it…


(Colin) #20

is it throwing that just randomly or when the switch is programatically turned on?