IHC Integration in the official Home Assistant
The IHC integration is now included in the official Home Assistant release 0.62
If you have had the previous IHC integration installed as a custom platform/component, you should delete these from you configuration folder to make the new integration work. (Any custom component will overwrite the build in component)
Change since the last release
Some change have been made in the manual configuration, to make it more consistent in the way other components are doing this. Look at the Home Assistant IHC web page for more information about this.
I love it, super easy to deal with, and the documentation part on hass.io is good and thorough. Thanks for this!
Hi there, just upgraded to 0.62, i’m getting this error : Not initializing ihc because could not install dependency ihcsdk==2.1.1
2018 im my logfile.
Help Please 🙂
Home assistant should install dependencies automatically. You can install it manually from a command line using pip:
pip install ihcsdk
(On linux if using python 3 or later use pip3)
You need to do this from the same user/context as you are running HA.
To list installed packaged:
pip list
Any way to recive longpress and release on IHC Switches, for dimming non ihc lights via HASS?
You can connect a button from ihc to a HA binary sensor. Then you can use the sensor in your automation scripts to do whatever you like in HA.The sensor will be on when the button is pressed, and off when the button is released.
I have been using your Homeassistant component for a long time, with great ease. However, after updating to 0.70, IHC keeps giving errors. In the HASS log, it says: Unable to read project from ICH controller
I also get an error, when trying to log into the controller through your IHC Alternative. But that one has nothing to do with HASS, so I am a bit confused, as everything clashed with me updating to 0.70. I really hope you can help.
I have not made any changes to the IHC integration since it was included in HA. I have also updated to 0.70 and it is working fine for me. Have you tried rebooting your IHC controller? Do you have something else connected to your controller. I did have a similar issue with openhab long time ago – it was preventing anything else to connect to the controller.
Alright. Could be caused by a short outage caused by lightning. I will have a look later today. Thanks for fast reply 🙂
It worked! Thanks! 😀
Hi, i have been using the official IHC component for a while – really like it, but after I upgraded HA to 0.72.1 all my graphs stops updating. If I disable the IHC component graphs gets updated again – can anybody confirm that behavior ? tested on hassbian and hass.io with minimum of sersors. No lights at all.
Help to get started with Home Assistant.
I already have a pii running with Openhab that is connected to IHC. and this runs fine.
and now I’ve tried to connect ihc against Home Assistant.
I have followed the instructions from the HA page about the installation.
and have corrected the Config Yaml file, but gets INVALID CONFIG pleas check your config.
Is there a kind soul that will help me get started.
Absolutely great with official integration. Work as a charm except that it brings back the issue with lack of support for multiple IHC controllers.
Would it be possible to add support for multiple entries? With the modules being pulled automatically the old option of modifiying the code locally seems not as the best option.
Otherwise, big thumbs up!
It is possible to do it, but I don’t have the time for it right now. HA is all opensource so anyone else is free to contribute.
I have submitted a pull request on GitHub with support for a secondary IHC controller. Runs smoothly with my double controller setup and doesn’t impact existing configuration. Hope it will help others with the same kind of setup 🙂
Thanks. I know it will help 2 other users, who also asked about it.
Changes approved and can be pulled from the “dev” branch if you cannot wait until the release in a few weeks ;-).
Tadaaa 🙂
Support for multiple controllers finally a part of release 84. Be aware of Breaking Changes if you have manual configuration!
https://www.home-assistant.io/blog/2018/12/12/release-84/
After the upgrade I have issues with manual configured devices – I can only use the controller with auto_setup: true, even though I have moved the light and switches to the controller section – Any ideas ?
Had the same problem, all my “tryk” was missing.
My errors (not detect by HA)
all ID’s must have a name
binary_sensors – must be binary_sensor
ex.
ihc:
– url: http://xxx.xxx.xxx.xxx
username: xx
password: xx
auto_setup: true
info: True
binary_sensor:
– id: 20770394
name: Tryk OV
– id: 20770650
name: Tryk OH
– id: 20770906
name: Tryk NV
– id: 20771162
name: Tryk NH
Hi,
I have the exact same issue after upgrading to 0.84.
I have followed the guide on the “breaking changes” section, ie moved everything to the ihc: section…but no dice…
any ideas?
Error in the documentation (my mistake).
Use ‘switch’, ‘light’, ‘binary_sensor’ (instead of switchS etc).
There were an error in the sensor module that have been fixed too. It will all be included in release 8.1.4
Hi Morten,
I think there is a bug, or maybe Im using the wrong resource. I have some spotlights that are dimmable. I can turn them on using the hassio and homekit interfaces, ie through the IHC component. however, when I try to turn them off they just stay on. Other spotlights that are not dimmable turn on and off just fine. Am I doing something wrong?
best regards
Jock
Not sure but my first guess is that it sounds like LED lights that cannot feed the dimmer?
Can you turn on and off directly through IHC? If you have LED bulbs you can try replacing them with halogen to see if that is the issue
Hi Morten,
No everything works fine directly through the IHC system – and has worked for the last 12 years. The lights in question are spots in the roof (ie halogen GU10). I can dim them or turn them on/off through the IHC and the built-in software. They act strange when using the “Alternate View” app and the hassio component. They are connected using to the viewer/controller through the “unidimmer touch” module (https://bels.dk/produkter/12134-lk-ihcreg-lysdaemper/76394-dimmer-400-uni-sa/) which has 4 resources – touch on/off, sluk alt on/off, memory 1 and memory 2. If I use the “touch” resource the lights keep dimming up/down by themselves, until I use the “sluk alt” and set it to “on”, which turns them off. Do you have such a module in your IHC system? which resource should I use to turn on/off and set a dimmer level? Is it a bug or my misunderstanding?
best regards
Jocke
Hi Jocke,
All my dimmers (25+) are IHC wireless which allows programmable dimming (ie a setting 0-100% similar to eg HUE) from hass and alternative view.
As I do not have a “unidimmer touch” to play with it will be my best guess but based on your description it sounds like your dimmer expects a pulse and instead gets a constant signal forcing the dimmer to constantly dimming up & down (ie similar to keep pushing the button).
Are you using manual or auto setup in hass? And how/what is it registered as? It is just a hunch and I may be wrong but it sound as a configuration issue and my best guess would be to test it with alternative view and try with pulses on each ressource to test on/off and memory 1 and 2. In hass this is not a “dimmable” ressource as such. Try sharing your config and lets see if we can figure out what is going wrong.
Hi Joakim Nordström
Did you manage to control your DIM400 ? I have exact the same issue !
I think the main problem is that the DIM400 do not send us the light level (e.g. 30% on) like the system get from the new wireless DIM.
I think its the same issue if you use the official LK app on your smartphone , then you cannot control the DIM400… (i will test in the near future)
regards janus, [email protected] +4521468084
My config dont work after update from 0.84.3 to 0.84.5
The change in 0.84.x made all IHC config unstable
Can you please describe the changes made in 0.84.5
0.84.4 released with bugfixes and updated documenation. That should fix the issues with the 0.84 update
Hej Morten,
I am guessing we both speak Swedish/danish but I’ll keep everything in English in case you want to distribute to help others down the line.
Ive attached my config, I have tried to config everything manually (following the updated docs). my IHC.yaml file lists all the IHC resources. I think you’re spot on with your analysis, I am just a bit stumped on which resource to use – I have tried using the memory1 resource, but I can only turn the light on, not off. can we use two different resources in the same light? one for on, another for off? Could I build a function in IHC to control the lights and call that function?
Here is the IHC.yaml file (relevant parts)
# IHC
# hämta information och resursid till allting i IHC systemet
# kopplar sig till visual controller och hämtar ut följande
# för att få ut allting automatiskt använd auto_setup: true istället
– url: ‘http://192.168.1.200’
username: !secret ihc_username
password: !secret ihc_password
info: true
# Switches
switch:
# tvättstuga
– id: 717915
name: tvatt_strykjarn_uttag
#…redacted . . .
# Lights
light:
#redacted…
# hallen
– id: 1463131
name: hall_tak_spot
dimmable: true
– id: 1061467
name: hall_garderob_tak_ljus
dimmable: false
best regards
Jocke
You can connect a HA light compoent to a IHC boolean (on/off) or a integer resource. If it is a boolean resource it controls the light directly, if it is a integer resource it is the light level from 0 to 100%. The IHC resource can also be an in or output of a function block in your ihc project. So your can make your own IHC function block to make it work as you want.
Hi,
Total noob within automation and programming here, so sorry if my problems are due to lack of basic knowledge:
I Managed to setup Home Assistant on a Raspberry Pi and get the IHC integration installed and working (auto_setup: true)
I also managed to “map” a couple of my wireless IHC “tryk” (pushbutton remotes) to HA as binary sensors:
binary_sensor:
– id: 36444
name: Tryk_Koekken_Bryggers_NV
– id: 36700
name: Tryk_Koekken_Bryggers_NH
When I press an release on of these “tryk” the HA logbook shows these being turned on (when the button is pressed) and turned off (when the button is released), so the mapping seems to work.
I have made an automation where I am trying to play/pause my SONOS mediaplayer by pressing one of the IHC “tryk”:
– id: ‘1546893667219’
alias: Mediaplayer test
trigger:
– entity_id: binary_sensor.tryk_koekken_bryggers_nv
from: ‘Off’
platform: state
to: ‘On’
action:
– service: media_player.media_play_pause
entity_id: media_player.alrum
The automation is not working when I push the IHC “tryk”, but it is working if I trigger the automation manually in HA. This leads me to believe that it is the trigger part of the automation which is not working. What am I doing wrong?
Thanks in advance for any assistance!
Best regards
Thomas
Try this:
alias: Mediaplayer test
trigger:
- platform: state
entity_id: binary_sensor.tryk_koekken_bryggers_nv
from: 'off'
to: 'on'
action:
...
on and off should be lowercase and use ‘ (This may be the the comment function here in wordpress that has changed it). Not sure it the order having -platform: state at the beginning is required, but the above works for me. (Note the indention is removed in the above by wordpress)
Hi Jens,
Thank you soo much!!!!
I made the changes you suggested and now it works. Thanks also for this awesome integration to IHC!
Best regards
Thomas
Hi,
I’m having some issues with HA and IHC running on a PI3. I have tested the IHC addon with a docker container and here it ran fine. On my PI3B+ I get this in the log:
Error during setup of component ihc
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/setup.py”, line 148, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/ihc/__init__.py”, line 151, in setup
if not ihc_setup(hass, config, controller_conf, index):
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/ihc/__init__.py”, line 172, in ihc_setup
hass, config, ihc_controller, controller_id)):
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/ihc/__init__.py”, line 241, in autosetup_ihc_products
component_setup, groups, controller_id)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/ihc/__init__.py”, line 269, in get_discovery_info
‘position’: product.attrib[‘position’]},
KeyError: ‘position’
This is a fresh install with homekit, samba, ssh, and unifi addons installed as well.
RB
Gert
I have the exact same problem (and error msg) after upgrading to 0.85 .. made no changes to configuration or anything, but now my PIR is not automatically detected and all my manually configured switches are missing. Again without any changes to my config. Guess it’s an error introduced in v0.85, but pretty frustrating.
Details in this issue:
https://github.com/home-assistant/home-assistant/issues/20017
The XML library was updated and caused the error. I have made a PR to fix it that I hope will come out in the next hotfix release (0.85.2 ?).
In the meantime I recommend to downgrade to 0.84.6 (working version) with this command:
hassio ha update –version=0.84.6
Check the updatelog before the next update to verify that the fix is included.
Hello,
I am new in HassIO / IHC world.
I have a IHC Controller ver. 6.2; running Software 2.8.4.
I have downgraded my HassIO to release 0.8.4.6 as recommended above.
When trying to reconice the IHC controller ig get teh following error:
Error during setup of component ihc
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/setup.py”, line 148, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/ihc/__init__.py”, line 172, in setup
if not ihc_setup(hass, config, controller_conf, index):
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/ihc/__init__.py”, line 193, in ihc_setup
controller_id)):
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/ihc/__init__.py”, line 240, in autosetup_ihc_products
project_xml = ihc_controller.get_project()
File “/usr/local/lib/python3.6/site-packages/ihcsdk/ihccontroller.py”, line 84, in get_project
self._project = self.client.get_project()
File “/usr/local/lib/python3.6/site-packages/ihcsdk/ihcclient.py”, line 91, in get_project
compresseddata = base64.b64decode(base64data)
File “/usr/local/lib/python3.6/base64.py”, line 80, in b64decode
s = _bytes_from_decode_data(s)
File “/usr/local/lib/python3.6/base64.py”, line 46, in _bytes_from_decode_data
“string, not %r” % s.__class__.__name__) from None
TypeError: argument should be a bytes-like object or ASCII string, not ‘NoneType’
What am i missing?
Kind regards
Hi,
I have a similar issue:
“Error during setup of component ihc”
I have a HassIo running ver 0.84.6, and a IHC controller 6.2 sw ver 2.8.4.
The traceback give me the following:
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/setup.py”, line 148, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/ihc/__init__.py”, line 172, in setup
if not ihc_setup(hass, config, controller_conf, index):
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/ihc/__init__.py”, line 193, in ihc_setup
controller_id)):
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/ihc/__init__.py”, line 240, in autosetup_ihc_products
project_xml = ihc_controller.get_project()
File “/usr/local/lib/python3.6/site-packages/ihcsdk/ihccontroller.py”, line 84, in get_project
self._project = self.client.get_project()
File “/usr/local/lib/python3.6/site-packages/ihcsdk/ihcclient.py”, line 91, in get_project
compresseddata = base64.b64decode(base64data)
File “/usr/local/lib/python3.6/base64.py”, line 80, in b64decode
s = _bytes_from_decode_data(s)
File “/usr/local/lib/python3.6/base64.py”, line 46, in _bytes_from_decode_data
“string, not %r” % s.__class__.__name__) from None
TypeError: argument should be a bytes-like object or ASCII string, not ‘NoneType’
any good ideas on what is going wrong??
thanks
Esben
Hi Esben,
Can you provide your configuration? It seems that there are missing some when data but I cannot point out what’s going wrong based on the traceback. The error seems to be thrown when reading the project from the controller which puzzles me a bit… Can you connect with Jens’ “Alternative IHC view?”
Hi Morten,
I’m in the process of setting up Home Assistant with hassIo at home, but I’m facing the same issue again and again when setting up the ihc controller..
When doing a docker logs, for the homeassistant container, I see the error:
“ERROR (SyncWorker_6) [homeassistant.components.ihc] Unable to authenticate on IHC controller”
ERROR (MainThread) [homeassistant.setup] Setup failed for ihc: Component failed to initialize
My configuration is:
ihc:
– url: ‘http://192.168.1.110’
username: someuser
password: asdf
info: true
auto_setup: true
When I open http://192.168.1.110 in my browser, I reach the LK IHC Controlle-page.
Do you have any ideas?
Btw, I’m running HomeAssist version 0.85.1
Thanks in advance.
Hi Bruno,
The syntax of your setup looks correct. Have you tried connecting with Jens’ Alternative IHC Viewer? The casing of the username can be an issue so it is worth trying out to see if you can connect with the alternative view.
I can’t install “Jens’ Alternative IHC Viewer” on my win 10 or my win 7 computer. i dont get the “install anyway” option. i have tryede to change my username to all lower casing letters, with no luck.
i just got the mono version to worke, this is the error message i get when i try to login.
https://drive.google.com/file/d/1idS3_IDaP0VcNIokg7-eA2FU4zfX7DPk/view?usp=sharing
what version ihc controller does this worke for?
I have myself tested with controller version 6.1 firmware 2.7.220 and 7.1 and firmware 3.3.9 (and the firmware version before). So I will assume everything after 6.1 and latest firmware will work.
Hi
Upgrading from 0.84.6 to 0.85.0 or 0.85.1
Welcome message says “Setup failed for ihc: Component failed to initialize”
Best regards
Hi Kim,
It is just a guess but it may be linked to the 0.85 update and warning in the HA changelog:
“Slugify changed, which can impact entity ID creation if the entities had names with either a – or characters outside of A-Z and the integration has no unique IDs. We now better handle the characters and substitute it with an alternative instead of removing that character.”
Check the “dev state” view in HA and see if some names have changed. Some characters have previously translated to two underscores __ – this is now replaced with a single. If not changed this may trigger an error that prevent other modules from loading correctly.
Hi – First of all thank you for making this integrations. It was extremely easy to make all lights and switches work. But what about IHC climate control, it that on the roadmap?
I don’t have anything planed. Climate control in IHC is as far as I know not a “standard” product – like a switch or dimmer. You can have temperatures and make some function block to do some stuff. But because of this I don’t see how this should be made into climate control in HA. You can read the temperatures from IHC in HA using a sensor and you can set the temperature in IHC from HA using the service function ihc.set_runtime_value_float so what are you missing?
I’m just using the standard functions blok 5.2 for all heating and the IHC ipad app works just as well with heating as it does switch and dimmers. This does not make it a “standard” product, but I guess that most people use this setup. I will see if I can read the IHC target temperature as well, and then use the ihc.set_runtime_value_float to sync. I want it as a climate control in Hassio so it can show up in the right way in Google Home. Thanks for the input.
Is it possible to make HA automatically reconnect if the ihc controller connection fails?
My problem is that if the IHC controller loses its connection for a few minutes, then status in HA isn’t updated before HA is restarted.
It should already reconnect if the connection is lost. Any state change happening during the “offline” period will however not be updated in HA. You are the second to ask this – so there may be some problem here. I will look into it when I get the time and see if I can reproduce it. (I am busy now doing a new kitchen and other stuff now, so it may take some time before i get there)
I get a error in the HA, when I use this config:
ihc:
– url: ‘http://10.170.0.15’
username: admin
password: 1234
auto_setup: true
info: true
binary_sensor:
– id: 3347290
name: Tryk NH – stue
I’m trying to add my ihc input to HA.
Configuration invalid
Invalid config for [ihc]: [– id] is an invalid option for [ihc]. Check: ihc->ihc->0->– id. (See /home/homeassistant/.homeassistant/configuration.yaml, line 91). Please check the docs at https://home-assistant.io/components/ihc/
HA version: 0.90.0b4
works now… issue was spaces in the yaml file 😉
ihc:
– url: ‘http://10.170.0.15’
username: admin
password: 1234
auto_setup: true
info: true
binary_sensor:
– id: 3347290
name: Tryk NH – stue