Teekanne / openhab

Automatically exported from code.google.com/p/openhab
0 stars 0 forks source link

New item type PushButton #410

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

at first many thanks for this project with the fantastic work so far!
I would like to propose a new item type "PushButton"

1. Feature Description
At the moment an item Switch is existing. The functionality is to deliver a ON 
or OFF and to hold this status until the switch is pressed again after it was 
released.
The new item "PushButton" should go just in status ON for the time while the 
button is pressed. As soon the PushButton is released it should go directly 
into status OFF again (without additional scripting).

2. Example Use Case
* in PLC area typically push buttons are used as they might trigger at 
different places an action in the PLC (e.g. several hardware push buttons and 
visual web interface push buttons which trigger one lamp). I would like to use 
the openHAB webinterface in combination with a PLC via modbus.
* some devices/items should be just triggered for the time while the push 
button is pressed, e.g. a door bell or a door opener
* some devices need just an short triggering event, e.g. garage door

If you need more information or if you have questions about the idea, feel free 
to answer.

Best regards,

Christian

Original issue reported on code.google.com by chrif...@gmail.com on 19 Aug 2013 at 6:44

GoogleCodeExporter commented 9 years ago
I'd like to add another use case: sensors. like moving-detectors or those cheap 
door-sensors. They trigger stateless. Looking forward for it! :)

Original comment by philipp....@gmail.com on 23 Nov 2013 at 11:26

GoogleCodeExporter commented 9 years ago
This is actually not a new item type, but a behaviour that should be configured 
in the according binding: Either the binding knows when the button is released 
and sends an OFF itself, or it has to send an OFF after a configurable amount 
of time.

Original comment by kai.openhab on 7 Dec 2013 at 10:35