nguyenquanghai1993 / openhab

Automatically exported from code.google.com/p/openhab
GNU General Public License v3.0
0 stars 0 forks source link

TOGGLE command in REST API for switch and rollershutter items #336

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. Feature Description

In some cases we need a TOGGLE command available for Switch and Rollershutter 
items in REST API. REST client currently have to get item status first to 
toggle it's state and send on/off depending on current item status. This is not 
stateless at all, cause there is a possibility, especially in a slow networking 
environment, that status of the item will change between getting it and 
executing toggle on the client side.

2. Example Use Case

Headless NFC operation, when openHAB client app is not running on the phone 
when the tag with 'toggle' command is touched.

Original issue reported on code.google.com by belovic...@gmail.com on 9 Jun 2013 at 8:10

GoogleCodeExporter commented 8 years ago
I agree, this is a needed function. I'm attempting to integrate speech controls 
and this would help tremendously.

Original comment by fabio.fo...@gmail.com on 25 Jul 2013 at 11:08

GoogleCodeExporter commented 8 years ago

Original comment by kai.openhab on 5 Aug 2013 at 8:43

GoogleCodeExporter commented 8 years ago
Implemented with changeset 
https://code.google.com/p/openhab/source/detail?r=f87aecca40c3a690db13cdab94d171
fa8810cb00

Original comment by kai.openhab on 5 Aug 2013 at 9:24