Hi
I'm developing a quick and easy plug in to control my various XBMC boxes. I've got the plug in working well on the sending side- it can send commands to XBMC, work with triggers etc, but I can't seem to control it at all using the REST API.
I have a state defined to show if the XBMC machine is powered up and XBMC is responding:
<State id="xbmcIsUp">
<ValueType>
<List>
<Option value="Up">Up</Option>
<Option value="Down">Down</Option>
</List>
</ValueType>
<TriggerLabel>XBMC Power Status is</TriggerLabel>
<TriggerLabelPrefix>XBMC Power Status is</TriggerLabelPrefix>
<ControlPageLabel>XBMC Power Status</ControlPageLabel>
<ControlPageLabelPrefix>XBMC Power Status is</ControlPageLabelPrefix>
</State>
Controlling this states works fine in plugins.py or for schedules.
I'm trying to control this state with the rest API with this command in a web browser:
http://192.168.178.200:8176/devices/Liv ... method=put
But this does not seem to have any effect. Shouldn't this change the state and trigger any actions which are watching this state?
Can anyone point me in the direction of some code to use the REST API to change the custom device's state?
Thanks!