I am using latest version of OpenHab which is 2.1.0-1. I am using it with an IHC system so I have installed the bindings. It works fine but now in the configuration, I need to tweak it a bit so it reflects exactly how it is set up in the IHC system.
First of all, I have the following line:
Switch vent_niveau_3 “Ventilation max” (vent) {ihc=“0x33c311”}
My problem is that the system should be a push button and not a switch because when I click on it, it will activate and then when I click again on it, it will deactivate. At the moment, with the switch in Openhab, I have to click to activate then click again so the cursor go back then click again to deactivate then click again for the cursor to go back which is 4 times instead of 2 :(.
Second thing is that the icon that show if green or red should come from another reference in the ihc and I don’t konw how to tell it. It should come from {ihc=“0x33c312”} and that will be the status if activated or not from my ventilation system.
What I have done in situations like this is to create a new bistable switch in the IHC program and tie that to the status of the push button, so that it follows automatically. Then make openhab communicate with that new switch and you are set.
Also if you have multiple levels that are set to a numerical value in the IHC program you can write those numbers directly. That is the way I have handled multiple speeds.
If you are interested I can get the program for you when I get back from holidays.
Why you are mapping the inputs instead the outputs? You should map all the outputs, and with openhab you simply turn the on or off the output.
I only map the inputs where i’m using it in contacts or sensors.
How do you handle a wired dimmer by mapping it´s output ?. (ie an LK/Schneider Uni400 dimmer (IHC)).
The problem with the push buttons is a long press on the button to control the dimming level (Up/down). This is, for god knows what reason, a tricky (impossible) job for OpenHab. And I really cant firgure why this is not a standard option, just like a normal switch. I doubt we´re the only ones in the world with push buttons and have the need of long press.
I dont have any dimmer in my home, but you can debug the internal variables of the functions that handles the dimmer. When you discover the resource id simply bind the resource id with one number field in openhab. You can set one slider or one predefined percentagem using one dropdown.
I´m not sure if I understood what you mean.
I have setup the switch which handle the dimmer, as an item. (its a push button). When i push the button, it turns on the light. When I push it again, it turns off the light. It works fine.
To be able to dimm the light, I have to push the button, and hold the press, and the light will dimm up or down. The problem is holdning the press in OpenHab (BasicUI or Habpanel), as the switch only send ON command according to the log.
After analizing to the function in IHC Visual for your dimmer you need to bind 2 buttons.
To dim up bind with output soft turn on
To dim down bind with output soft turn on.
Hallo,
I am new with the Push button in openHAB2. I do not the idea about setting a simple push button, that when I click it shows me ON and when I release it shows me OFF through mqtt. It was just the simple button in openHAB nothing is connected to it. Can you help me to setting the Push Button with MQTT in openHAB2.?
I fully agree with Kim Andersen, the OpenHAB system does not fully interact with the IHC system as it is right now.
Let me give you some examples:
I do not want to control the outputs directly. why not you may ask… Well because the IHC system is infact a system with inputs and outputs and a program in between the input and output which is often more complex than “if input then toggle output” there can be complex functions involved (timers, double press, calendar, AND/OR combinations etc.) and if I directly toggles an output i might very well disrupt the functions internally programmed in the HC system. Now I do not want to completely exchange my IHC system controller program for a program in the OpenHAB controller. I whish it to become an addendum to IHC controller which is compliant to the nature of IHC.
Often buttons are used for more than one function. (i.e. single press/double press OR short or long press)
same button can even be used for both dimming and turn ON/OFF a dimmer . Thus i need the OpenHAB interface to operate as is was an input to the system which can provide single press, double press, triple press, Short press and long press (and i wish to set short press & Long press times)
I cannot just change my system to operate with a two button system for dimmer, I simply does not have enough inputs & outputs for this operation. MY installation have used all Inputs and outputs and this i have succededd by having one button for dimming and turning ON/OFF my 13 dimmers. so changing this setup is not an option for me.
Last let med state that I do like the OpenHAB system and see many strengths and posibilities so I’m all for having OpenHAB and IHC interact with each other. OpenHAB surely can do what IHC cant. but by enabling the above mentioned issues we could go from good to great interface to IHC
I hope that the OpenHAB system designers are reading this and wishes to solve these issues
Hi Morten…
I´m not sure, but it may be a binding option/feature. So perhaps @pauli_anttila can do something with this in the new IHC binding. I forgot to ask him in the IHC user forum
Do you have an idea, how to do the same for a button in the Homekit binding?
Background: I’d like to use Siri for opening the housedoor, Electric strike is connected via KNX, Gira X1 button and (your) openhab button are running fine…
additional information: I can open the door by saying “hey Siri, open the door” but then I need to say also “hey Siri, close the door” - which is stupid with a “Türsummer”
a more convenient way would be a timer to switch off the release buzzer, like that:
rule "switch off release buzzer"
when
Item releaseBuzzer received command ON
then
createTimer(now.plusMillis(1000), [ |
releaseBuzzer.sendCommand(OFF)
])
end
You can also use the expire Binding (v1 Addon) or use the brand new option for expire in openHAB3-M3 (not 100% sure if in milestone already… will be in the first stable release in late december))