haruny / adt-pulse-mqtt

ADT Pulse Bridge for Home Assistant
MIT License
10 stars 5 forks source link

sat value #34

Open digitalcraig opened 4 years ago

digitalcraig commented 4 years ago

Can you explain what the sat value and how it's used? I saw you removed some code in a recent commit and stated in the now closed issue #30 that the sat code wasn't available on the front page anymore.

I am seeing this in my pulse /ajax/orb.jsp which looks like it passes a GUID to summary/changeMode.jsp, but it doesn't seem to do anything when I push the button. Is that GUID the sat value you are looking for?

        <div id="divOrbTopL" >
            <div id="divShiftOrbButton" style="width: 100px;">
                <input type="button" id="shift_security_button" name="shift_security_button" value="Asleep" alt="Asleep" class="p_btn p_btnMnormal" onclick="setShiftState('summary/changeMode.jsp','','',*redacted guid*');" onmouseover="javascript:btnHover(this,'M')" onmouseout="javascript:btnNormal(this,'M')" onmousedown="javascript:btnDown(this,'M')" onmouseup="javascript:btnNormal(this,'M')"  data-fitLabel="shrink"/><style type="text/css">#testSizeshift_security_button {position: absolute; visibility: hidden; height: auto; width: auto; white-space: nowrap; min-width: 0}</style><div id="testSizeshift_security_button" class="p_btn p_btnMnormal" >Asleep</div>
            </div>
        </div>
haruny commented 4 years ago

To my understanding SAT value is kind of a session id that is used when you need to force the alarm to change states. e.g.: When alarm is in disarm state but there is still a window/door open if you call disarmURI (line 432) ADT pulse will ask you if you're sure to set the alarm (code will fork into line 457) . In the response you'll get a "SAT" value, which you will to use to force the alarm to change state into stay/away (line 428)