Categories

Keywords

IHC Viewer for Home Assistant

This is a custom component for Home Assistant that will give you a tree view of the IHC project directly within Home Assistant. You can expand the tree and get the resource ids to be used for manually configuring your IHC setup in HA.

When enabled you get a new item in the HA menu:

In the IHC viewer you can see the IHC project, expand and select to get resource id:

Additionally you can see the IHC log. (This is where you get messages about low battery level)

Installing

You can get the custom component on github here:

https://github.com/dingusdk/haihcviewer

The custom_components folder should be placed in your HA configuration folder. So you will have

YOUR_HA_CONFIG_FOLDER/custom_components/ihcviewer

Additionally you must add the entry ihcviewer:

The above only applies to the older version before config flow was added. In the newest version you add the ihc viewer in HA: Configuration|Integrations and click the add integration

The newest version requires the IHC integration with configflow – not yet available in HA (I have made a PR may 2021) Newest IHC integration

To your configuration.yaml file.

Comments

The comments below has been imported from the old website. Currently comments are readonly, meaning you can not make new comments. You will be able to do that when it is ready. For now if you want to get in touch, you can send me an email. If you have problems with something that has a github repository, please make a github issue.

Thank you :)I saw that some other add-ons "simply" (i don't know how much it involves) make an panel_iframe that links to the hass-IP and then a specific port where the add-ons webpage runs. I don't know if this could be a workaround?I just made a PR with code change that will make IHC Viewer work again with Home AssistantThanks for the PR - it has been merged now. And I made a github "Release" so HACS should be able to pick it up.IHC Viewer does not really work in dark mode as one cannot see the +/- icons used to expand nodes. Also, it would be cool if one could click a button that would copy a skeleton definition of for the item to the clipboard that can be inserted in configuration.yaml.The problem is that all the icons are just pictures so you can not really change the color without have different set of pictures. It should be changed to material icons like HA is using (or svg) I will look into this so it can be use the dark mode. (no promise when) All the code is in github so if someone can make this look nicer feel free to make a PR. (also the tab in the top is not working anymore) Not sure how this copy skeleton should work - other than copying the resource id. Only the products that are already in the autosetup would make sense - and if it is already autosetup you don't need to do it manually.I have released a new version that will work with dark mode, and you can copy the resource id to the clipboard. Note you may have the clear the browser cache for the new code to load.Det virker fint. Tak!I have made some futher improvements -so now you can see the IHC resources that are connected to HA - they will have a "lightning" symbol. And when selecting a connected resource you can see the HA entity name.In IHC service viewer we can see some logs if some button is not assigned. There is a possibility to improve the log from the component to also show this kind of logs?The log that is currently shown is what you get from the controller. Can't remember i have seen the "not assigned button" thing, but I guess it is messages show in the log window by the service viever but not actually stored in log in the controller. I will look futher into it when i get the time to do it.is it possible to get batteri sensor of IHC wireless in Home AssistantCurrently this is not possible. I have been trying to get the information from the IHC controller, but the only way I found was through the messages in the controller log.My Home Assistant urges me to tell you: 2021-04-15 07:38:33 WARNING (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'ihcviewer'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'ihcviewer' Is it or can it be fixed?This is a new requirement in Home Assistant for custom integrations to have a "version" in the manifest. I have added it in version 2.0.3 just released. If you update to 2.0.3 the warning should go away.Hi, i tried to upgrade to the new version (via HACS), but checking de configuration after reboot gives: "Component error: ihcviewer - Integration 'ihcviewer' not found" but the new version is present in custom_componets. nothing changed in configuration.yaml # IHC controller ihc: !include include/ihc.yaml ihcviewer: rest of ihc stil works in HAi mean "custom_components" of course ;-)installed with HACS (last version present in custom_components after install), than try to install it via config/integrations, but wont show up in list am i doing something wrong?Du you have the new ihc integration? The new ihc viewer require the new ihc integration: [New ihc integration](https://github.com/dingusdk/haihc-betatest). (I have made a pull request in ha, but it can take some time to be included)removed ihcviewer via HACS, installed haihc-betatest IHC is up and running fine :-) and than reinstalled ihcviewer via hacs. will still not show up in config/integrations? please helpafter reboot host (and waiting a few minutes to get the system up and running on my Rpi4), it shows up and installs! thanks, the viewer is verry nice work! makes my life much more easy ;-)Hej Jens Jeg får følgende fejl, kan du evt hjælpe med dette. 2021-08-01 20:21:48 ERROR (SyncWorker_0) [homeassistant.loader] The custom integration 'ihcviewer' does not have a valid version key (None) in the manifest file and was blocked from loading. See https://developers.home-assistant.io/blog/2021/01/29/custom-integration-changes#versions for more detailsJeg gætter på at du ikke har den nyeste version af ihcviewer. Der er kommet ændringer til HA som kræver en version i manifestet - det er der i den nyeste version af ihcviewer.Tak for svar Den version jeg har er v1.2.5 er det ikke den nyeste version? Det virkede fint indtil jeg opdaterede HA :-) Super hjælp til IHC - tak for det.Glemte at sige at jeg har Haihc-betatest installeret v2021.5.3Den nyeste version er 2.0.3 ([se her](https://github.com/dingusdk/haihcviewer/releases)). Alle verseion 2.x er markeret som "prereleases" fordi HA ikke har den nyeste IHC integration indbygget endnu. (Jeg har lavet PR til HA i maj - men det tager noget tid at få det med)Hej Jens, Jeg kører 2021.11.2 samt IHC Viewer 1.2.5 men alligevel får jeg at vide at den ikke kan finde ihcviewer. Alt fungerede før jeg opgraderede, hvad er årsagen ?Jeg tænker at det er fordi der er fjernet et eller andet i HA som ihcviwer anvender. Jeg har ikke lavet ændringer til hverken IHC integrationen eller ihcviewer 1.2.5 i lang tid. Jeg har et pull request på den nye IHC integration to HA som har config flow (UI til opsætning). Har ventet i snart 6 måneder! Den ny IHC integration virker samme med den nye 2.x IHC viewver. Jeg kører selv HA 2021.11.3 med den nye integration og IHC viewer 2.0.4 - det virker fint. Jeg vil ikke bruge tid på at lave ændringer nu til den gamle viewer 1.x. Jeg vil foreslå at du installerer [IHC integrationen som custom integration](https://github.com/dingusdk/haihc-betatest) og den nye 2.x IHC viewer.Bare er stort tak for det arbejde du lægger i at få IHC til at spille med HA. Det sætter vi IHC brugere kæmpe pris på! God jul. ThomasHej! Ett stort tack för all tid och energi du lägger ner på ihc integrationen. Det uppskattas :-) God jul! GudmundHi! I've installed the new release of HA - 2021.12.1 Maybe there are breaking changes and I need to look for problems with my local installation, but in case there is something that is needed to be updated in IHC viewer...I get this error.. Setup failed for ihcviewer: Unable to import component: cannot import name 'HTTP_BAD_REQUEST' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py) Thanks! GudmundHi ! Maybe this is the reason? The, previously deprecated, homeassistant.const.HTTP_* HTTP status constants have been removed, use stdlib http.HTTPStatus instead. (@scop - #58380)Yes that was the problem i hve fixed it in the newest versionYes ha version 2021.12.1 did have breaking changes. If you update Ihcviewer to the newest version it should fix it.Hi, Awesome thank you. It works perfectly! Cheers GudmundHej Jens Først og fremmest tak for dit fine værktøj, jeg er lige begyndt at bruge HA og med din Viewer er det noget nemmere at finde ud af :-) Mit spørgsmål går på hvor man evt. kan indsætte noget at det som dit program ikke kan, f.eks. Har jeg er portstyring jeg gerne vil have ind i apple Homekit (Carplay) men er i tvivl om hvor jeg skal kopiere skabelonen ind jeg har fundet, og kan det overhoved lades sig gøre, når jeg kører med din Viewer? mvh SørenDet du kan med Viweren er at tilknytte en resource fra IHC med et eller andet i HA. Det som du eller ville skulle gøre manuelt i ihc_manual_setup.yaml filen. Så virweren tilføjet ikke noget funklionallitet den gør det bare nemmere. HA sensorer er envejs d.v.s fra IHC til HA. Light of switch virker begge veje så hvis du tænder i HA skifter resourcen også i IHC. Derud over har du service funktionerne til at sende noget fra HA til IHC. Du kan f.eks bruge ihc.pulse som vil sende en puls til en IHC resource. Jeg kender ikke noget til homekit eller carplay, men kunne forestille mig at du har brug for at lave en automation som trigger på eller eller ander fra homekit og med ihc.pulse "trykker" på ihc knappen til din port.Hej Jens Jeg har helt styr på hvordan porten kører og det virker allerede i over i IHC delen, og har også fundet en template i HA, som jeg tror jeg kan bruge, men jeg kan simpelthen ikke finde ud af hvor jeg skal ligge min cover template i alle de forskellige filer der er i min HA? har du en ide :-) mvh Sørenconfiguration.yaml er hoved filen for alt HA config. Den includerer som standard diverse andre filer som f.eks. automations.yaml under "automation", scripts.yaml under scripts. Så du kan ligger det direkte i configuration.yaml, og hvis den bliver for stor og ikke til at holde styr på, kan du splitte den op med sektioner som bliver inkluderet fra andre filer.Hej Jens Det er rigtig brugbar info, og også det jeg havde læst mig frem til, syndes bare ikke det gav mening når jeg ikke kunne finde andet IHC. men det er lykkes mig at komme videre i mit lille projekt.Hello, I just updated to Home Assistant 2022.7.0 and maybe there is a breaking change? Setup failed for custom integration ihcviewer: Requirements for ihcviewer not found: ['ruamel.yaml==0.17.21']Got same error message with 2022.7.1The problem is the ruamel.yaml module - not something I can fix easy. [See here for a quick fix if you are using alpine or docker image](https://github.com/dingusdk/haihcviewer/issues/17)ok. Thanks!
(c) 2010-2023 dingus.dk