Jump to content

openhab, io16, reversing the switch logic


xsherlock
 Share

Recommended Posts

Hi,

I'm using io16 to drive inexpensive relay board to do light switching in home.

I'd love to see a way to reverse the logic of the switch in openhab.

When the output is defined as true in the example. 

 

tinkerforge:io16outb0.defaultState=true

 

The relay is disengaged, does not take power, but the switch in the site map is ON. I'd love see it OFF in that state at that moment

 

Of course it is possible to start the output in the defaultstate=false.

But that implies some annoyances that are hard to accept. First the setup starts with applying about 0.4W of power per relay. that will end up with unnessesary 20-30W residual load on the whole house during the day when the light are off.

 

Second in case openhab crashes/reboots i end up with all ligths on !! all the time.

 

So the most elegant way would be to revese the logic on the sitemap only, is there a way to do it?

 

regards

Maciej 

 

 

 

Link to comment
Share on other sites

  • 2 weeks later...

My openhab skills still wait to get improved in order to be sure if I can make it with the mapping.

 

In the meantime I ordered other relay board that has jumpers to do set the low/high logic. Unfortunately it is 12V so it will require additional power.

 

It looks that all 5v  8x relay boards on the internet are the clones of the same design and take low signal to energize the relay. For some reason.

Link to comment
Share on other sites

Thanks for the hint. I did check this solution, but unfortunately it come with hell lot of compromises.

First the switch is no longer a switch in a gui but a set of two buttons.

Second the bulb icon is still reversed

Third the group master switch works on the original state and not mapped one. -switches the relays on when master_off is pressed

 

So it is a dead end.

Maciej

2016-01-09_21_42_54-Main_Menu.thumb.png.2275f0be33dd9b31fa5ad002992bb2ca.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...