This page last changed on Mar 15, 2015 by niedejb.

I use HTTP get for sensor status and HTTP post for "click"ing controller buttons or on/off control of switches.

When I change items in the designer (and save and upload to the controller) some of the sensor id numbers change in the controller.xml and panel.xml files.

example:

Before:
-<sensor id="5783427" type="switch" name="VM_5_Sensor">

<include ref="4328" type="command"/>

<state name="on"/>

<state name="off"/>

</sensor>

After:
-<sensor id="105683427" type="switch" name="VM_5_Sensor">

<include ref="4328" type="command"/>

<state name="on"/>

<state name="off"/>

</sensor>

Wanted to know if there was a way to keep these fixed/put them in the designer where they are exempt from re-assignment.

Ironically, the above only happens on my last 4 or 5 sensors I have added...the vast majority do not change assigned numbers.

Thanks,

Jeremy

No, there is not way to fix them.
There is an update to the REST API in the works that will allow to query sensors and trigger commands by name, rendering the "mutating ids" issue void.

Posted by ebariaux at Mar 24, 2015 09:59
Document generated by Confluence on Jun 05, 2016 09:33