I cant remember how to get the state of a presence sensor.
Basically i am trying to check the presence when motion is detected, This is for a individual room
When there is motion it fires and then checks to see if the said person is present or note. I am having issues getting that info. Thanks Guys