Code Monkey home page Code Monkey logo

haihcviewer's People

Contributors

dependabot[bot] avatar dingusdk avatar duddi avatar ludeeus avatar msvinth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

haihcviewer's Issues

How to enable the log?

How to enable the log in haihcviewer? It says "false". I have IHC Controller HW 6.1 FW 2.7.220.

Not able to reinstall IHCViewer

I have a fully functioning IHC (beta) integration running in latest version.
Earlier I had HAIHCViewer running too, but when it broke at one point I removed it.
Now I want to reinstall. I have downloaded via HACS, but when I run the setup flow, I get a popup saying that "This controller is already setup".
I suspect there is something left over from the previous installation, but how do I remove it?

I have tried deleting related files from the custom integrations folder, reboots, reinstalls etc.

image

Startup error

Using HASS.IO v 0.72.1 I get this error on startup:

2018-07-08 09:03:48 ERROR (MainThread) [homeassistant.setup] Error during setup of component ihcviewer
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/setup.py", line 143, in _async_setup_component
hass, processed_config)
File "/config/custom_components/ihcviewer/init.py", line 35, in async_setup
yield from hass.components.frontend.async_register_panel(
File "/usr/lib/python3.6/site-packages/homeassistant/loader.py", line 170, in getattr
value = getattr(self._module, attr)
AttributeError: module 'homeassistant.components.frontend' has no attribute 'async_register_panel'

Can't load after 2.0.9 update

IHC Viewer can't load after updating to 2.0.9.
If I go back to 2.0.8 it loads again.

Logger: homeassistant.config_entries
Source: config_entries.py:402
First occurred: 11.57.51 (1 occurrences)
Last logged: 11.57.51

Error setting up entry IHC Viewer for ihcviewer
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 402, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ihcviewer/init.py", line 70, in async_setup_entry
hass.data[DOMAIN] = [ v['controller_id'] for v in hass.data["ihc"].values()]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ihcviewer/init.py", line 70, in
hass.data[DOMAIN] = [ v['controller_id'] for v in hass.data["ihc"].values()]
~^^^^^^^^^^^^^^^^^
KeyError: 'controller_id'

inverse of binary sensor does not work?

I tried to integrate a binary sensor, but status needed to be inverted.

I used the invert option when adding the sensor, but this did not seem to work?

Had to edit the ihc_manual_setup.yaml to manually add "inverting: true" this to the sensor:

  • id: xxxxxxx
    name: Alarm Status
    type: safety
    inverting: true

Ihc viewer cannot startup

Core :2024.1.2
Supervisor :2023.12.0
Os :11.3
Ihc viever :2.0.9

Logger: homeassistant.config_entries
Source: config_entries.py:406
First occurred: 16.26.35 (2 occurrences)
Last logged: 16.29.21

Error setting up entry IHC Viewer for ihcviewer
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 406, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ihcviewer/init.py", line 70, in async_setup_entry
hass.data[DOMAIN] = [ v['controller_id'] for v in hass.data["ihc"].values()]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ihcviewer/init.py", line 70, in
hass.data[DOMAIN] = [ v['controller_id'] for v in hass.data["ihc"].values()]
~^^^^^^^^^^^^^^^^^
KeyError: 'controller_id'
image

Can't add an entity to HA

Hallo
I am new to HA and i am trying to add a light by using IHCViewer but im geting an error can someone help?

(https://user-images.githubusercontent.com/44833159/215861133-9dd15599-77ee-4c65-af56-53fda60ba806.png)

Log:
2023-01-31 20:35:00.459 WARNING (SyncWorker_6) [custom_components.ihcviewer.api.mapper] The id 56154, was not found as an entity state
2023-01-31 20:35:00.463 WARNING (SyncWorker_6) [custom_components.ihcviewer.api.mapper] The id 56667, was not found as an entity state
2023-01-31 20:35:00.464 WARNING (SyncWorker_6) [custom_components.ihcviewer.api.mapper] The id 56667, was not found as an entity state
2023-01-31 20:35:00.464 WARNING (SyncWorker_6) [custom_components.ihcviewer.api.mapper] The id 56667, was not found as an entity state
2023-01-31 20:35:00.465 WARNING (SyncWorker_6) [custom_components.ihcviewer.api.mapper] The id 56667, was not found as an entity state
2023-01-31 20:35:00.465 WARNING (SyncWorker_6) [custom_components.ihcviewer.api.mapper] The id 56667, was not found as an entity state

thank in advance

Not able to integrate to HA 0.111.4

@dingusdk Thanks for this contribution! Sorry to make this simple question, but why I can't get this working - I have copied the contents of custom_components/ihcviewer folder in this repo under my "YOUR_HA_CONFIG_FOLDER/custom_components/ihcviewer" with similar rights than other directories/files, I have IHC configured in HA and I have inserted ihcviewer: in my configuration.yaml. I get "ERROR (MainThread) [homeassistant.components.hassio] Component error: ihcviewer - Integration 'ihcviewer' not found." to my HA log.

manuel setup af entities virker ikke

Hej.
Jeg har installeret IHC viewer via HACS. Den del fungere udemærket. Jeg kan også se hele controllerens konfiguration osv.
Udfordringen ligger i, når jeg vil tilføje en udgang fra IHC'en som "App'en" ikke selv har tilføjet. Så opretter den ikke entitien.
Jeg kan inden genstart, stadig aktivere udgangen på IHC controlleren via on/off/toggle i viewer menuen.
Men efter genstart er entitien der ikke og viewer har gemt, at der blev oprettet en manuel entiti.
//David
Udklip1
Udklip2

Error loading IHCViewer

HomeAssistant on Intel NUC running HAOS

IHC Controller HW6.1
Firmware 2.7.220

I cannot get the IHCViewer loaded, seems also linked to errors I'm getting with IHC Beta Integration...

Reboot of HA and/or the IHC controller does not resolve the issue:

This error originated from a custom integration.

Logger: aiohttp.server
Source: custom_components/ihcviewer/api/project.py:19
Integration: IHC Viewer (documentation)
First occurred: 7:58:50 PM (2 occurrences)
Last logged: 8:06:45 PM

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
    result = await handler(request, **request.match_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/ihcviewer/api/project.py", line 19, in get
    project = await self.hass.async_add_executor_job(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/ihcsdk/ihccontroller.py", line 142, in get_project
    self._project = self.client.get_project_in_segments()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/ihcsdk/ihcclient.py", line 122, in get_project_in_segments
    buffer.write(self.get_project_segment(s, projectMajor, projectMinor))
TypeError: a bytes-like object is required, not 'bool'

Error unloading entry IHC Viewer for ihcviewer (HA core-2022.3.3)

Hi.
I got this error message when updating from core 2022.3.2 to 2022.3.3.
I have the ELKO (Norwegian) variant of the visual controller.
The IHC Beta Test Integration works as a charm, no issiues there.

This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/ihcviewer/init.py:75
Integration: IHC Viewer (documentation)
First occurred: 20:39:28 (1 occurrences)
Last logged: 20:39:28

Error unloading entry IHC Viewer for ihcviewer
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 474, in async_unload
result = await component.async_unload_entry(hass, self)
File "/config/custom_components/ihcviewer/init.py", line 75, in async_unload_entry
hass.components.frontend.async_remove_panel(hass, URL_PANEL)
TypeError: async_remove_panel() takes 2 positional arguments but 3 were given

How to enable the log in haihcviewer?

It says "false". I have IHC Controller HW 6.1 FW 2.7.220. Downloaded the new code version, copied under custom components, restarted HA and also emptied the browser history.

Issue with integration of IHC hus tilstand in HA

Dear dingusdk

Thank you for the awesome IHCViewer in HA.
I have troubles of integrating the status of 'Tilstand' in HA. Please guide me
Resource id: 9424911
Type: str
Value: Hjemme mørkt (this is the value I would like to be shown in HA)

2024-01-20_07-51-25

Error loading IHC viewer

After a recent update to either HomeAssistant or IHC Viewer the IHC Viewer cannot perform initial load. I have not made any changes to my IHC installation. I get this error

Logger: aiohttp.server
Source: custom_components/ihcviewer/__init__.py:110
First occurred: 12:00:34 AM (2 occurrences)
Last logged: 8:35:47 AM

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_response.py", line 620, in body
    self._body = body = payload.PAYLOAD_REGISTRY.get(body)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/payload.py", line 112, in get
    raise LookupError()
aiohttp.payload.LookupError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
    result = await result
  File "/config/custom_components/ihcviewer/__init__.py", line 110, in get
    return web.Response(
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_response.py", line 595, in __init__
    self.body = body
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_response.py", line 622, in body
    raise ValueError("Unsupported body type %r" % type(body))
ValueError: Unsupported body type <class 'bool'>

Home Assistant warning - The behavior of this method will change in future

Logger: py.warnings
Source: /usr/local/lib/python3.11/warnings.py:109
First occurred: February 24, 2024 at 11:16:25 PM (1 occurrences)
Last logged: February 24, 2024 at 11:16:25 PM

/usr/local/lib/python3.11/site-packages/ihcsdk/ihcclient.py:136: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead. if elem:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.