kennychou0529 / openhab

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

Add 2/8 channel switch control to owserver add-on (for EDS-OWSERVER-* hardware) #438

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Feature Description
Enhance the new owserver add-on to support 1-wire addressable switches

2. Example Use Case
Maxim DS2408 (8 channel) and DS2413 (dual channel) 1-wire chips are often used 
to control relays in home automation projects. For example I have a Hobby 
Boards 8 channel I/O board controlling relays for central heating zone valves. 
This enhancement would allow openHAB to be able to easily switch on/off relays 
etc. Other uses might be in garden controls (sprinklers, greenhouse vents etc), 
weather stations (where 1-wire is very popular), etc.

Notes:
You can retrieve the current state from PIOLogicState (1 is off, don't ask me 
why!) from the existing owserver add-on but the trouble is there's no HTTP 
command to set/toggle a single channel/bit (though I have requested it via EDS 
support and it may come eventually). In openHAB I think what I'd want is to be 
able to define a binding for a specific channel (use case: bathroom heating) to 
allow it to be switched on/off.

I think the binding string might be like { 
owserver="<owserver-name:0D0010000021AF7E:PIO:3" } and you would set the value 
to 0 or 1. openHAB would then issue something like 
http://<owserver1-name>/devices.htm?rom=0D0010000021AF7E&variable=PIOOutputLatch
State&value=nnn (where nnn is the current value ORed with 2^channel etc).

I don't really understand the rules for binding strings but if it is heading in 
the right direction I could have a look into coding it sometime.

NB: this feature request is about the owserver add-on for the EDS 1-wire 
devices and nothing to do with owserver in the OWFS package.

Original issue reported on code.google.com by Sim...@veriton.co.uk on 9 Sep 2013 at 9:26

GoogleCodeExporter commented 9 years ago

Original comment by teichsta on 5 Nov 2013 at 10:53

GoogleCodeExporter commented 9 years ago
This issue has been migrated to Github. If this issue id is greater than103 its 
id has been preserved on Github. You can open your issue by calling the URL 
https://github.com/openhab/openhab/issues/<issueid>. Issues with ids less or 
equal 103 new ids were created.

Original comment by teichsta on 17 Nov 2013 at 8:08

GoogleCodeExporter commented 9 years ago
see above!

Issue has been migrated to Github and should be discussed there.

Original comment by teichsta on 21 Nov 2013 at 1:51