Coder Social home page Coder Social logo

matrix-nio-hacs's People

Contributors

dependabot[bot] avatar neubi4 avatar paarthshah avatar

Stargazers

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

Watchers

 avatar

matrix-nio-hacs's Issues

error for token login failure

System Health details

no need, known issue

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

when the matrix login happens this ntegration first tries to use the token in .matrix.conf and fails and logs an error. Then it tries the password and succeeds. although the integration is successfully logged in there remains the error in the HA log, which is misleading.

it would be better to log a warning or info when token login fails and only log an error, if no login option did work.

Reproduction steps

  1. enable debug logging for better understanding of what is happening
  2. restart HA
  3. watch full log

...

Debug logs

DEBUG (MainThread) [custom_components.matrix] Logging in using stored token
WARNING (MainThread) [custom_components.matrix] Login by token failed: M_FORBIDDEN, Invalid login token
DEBUG (MainThread) [custom_components.matrix] Logging in using password

Diagnostics dump

no need

Push it to mainline Hass from HACS

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

There is a mainline hass matrix integration which also name you as a codeowner hence having the nio based Matrix integration in Hass would be a cleaner solution, then having hacs

Describe the solution you'd like

See https://community.home-assistant.io/t/change-libraries-for-matrix-chat-to-support-e2e-encryption/211399

Describe alternatives you've considered

remove default integration and install hacs version instead

Additional context

Video Notification Support

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

Currently, it appears as if this tool supports text and image notifications. But, it seems to lack support for video notifications. It would be great if this support could be added, as it has a variety of uses.

Describe the solution you'd like

Video upload support for notifications.

Describe alternatives you've considered

Using a different tool

Additional context

N/A - it's a straightforward request : )

Can't send message to room, claims user not in room

System Health details

System Information

version core-2023.7.2
installation_type Home Assistant Container
dev false
hassio false
docker true
user root
virtualenv false
python_version 3.11.4
os_name Linux
os_version 4.4.302+
arch x86_64
timezone Europe/Berlin
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4947
Installed Version 1.32.1
Stage running
Available Repositories 1274
Downloaded Repositories 6
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Dashboards
dashboards 1
resources 1
views 4
mode storage
Recorder
oldest_recorder_run 27. Juni 2023 um 09:54
current_recorder_run 22. Juli 2023 um 12:27
estimated_db_size 120.36 MiB
database_engine sqlite
database_version 3.41.2

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

I am very thankful that you made you're work accessible to me by HACS!

I installed your custom component via HACS.
But when I call one of my notify messages I receive the no message in the matrix room and the info you see in the log.
I also tried to remove and readd the user to the matrix room by hand but still the same result. I feel that the log entries "Joined and already in room" and "not in room" are kind of contradicting, aren't they? So, I'm a bit helpless with what to do now to get it working again.

I also had a command "report" in with the old integration working once. When I call "!report" now in the room I see that the component receives it but nothing else happens ...

Reproduction steps

  1. Install the custom-component via HACS
  2. Put in ./config/matrix.yaml
homeserver: https://mydomain.net
  username: !secret matrix_handle
  password: !secret matrix_password
  rooms:
    - "#hassi:mydomain.net"
  commands:
    - word: report
      name: report

  1. in ./config/configuration.yaml
matrix: !include matrix.yaml

notify:
  - name: matrix_notify
    platform: matrix
    default_room: "#hassi:mydomain.net"

Call matrix_notify in any Automization

Debug logs

homeassistant              | 2023-07-22 12:28:22.720 DEBUG (MainThread) [custom_components.matrix] Successfully restored login from access token: user_id '@homeassistant:mydomain.net', device_id 'GWFCBNTGOK'
homeassistant              | 2023-07-22 12:28:22.808 INFO (Update loop) [pyShelly] Error adding device, 192.168.2.17 IP-addr
homeassistant              | 2023-07-22 12:28:23.274 INFO (MainThread) [custom_components.hacs] Starting recurring background task for downloaded repositories
homeassistant              | 2023-07-22 12:28:23.276 INFO (MainThread) [custom_components.hacs] Stage changed: running
homeassistant              | 2023-07-22 12:28:23.279 INFO (SyncWorker_2) [homeassistant.loader] Loaded dlna_dms from homeassistant.components.dlna_dms
homeassistant              | 2023-07-22 12:28:23.312 INFO (SyncWorker_6) [homeassistant.loader] Loaded upnp from homeassistant.components.upnp
homeassistant              | 2023-07-22 12:28:24.068 DEBUG (MainThread) [custom_components.matrix] Joined or already in room '#hassi:mydomain.net'
homeassistant              | 2023-07-22 12:28:24.295 INFO (MainThread) [nio.client.base_client] New joined room !LGikxWyfCXalKdkofs:mydomain.net
homeassistant              | 2023-07-22 12:28:24.295 INFO (MainThread) [nio.rooms] Room !LGikxWyfCXalKdkofs:mydomain.net handling event of type RoomCreateEvent
homeassistant              | 2023-07-22 12:28:24.295 INFO (MainThread) [nio.rooms] Room !LGikxWyfCXalKdkofs:mydomain.net handling event of type RoomEncryptionEvent
homeassistant              | 2023-07-22 12:28:24.295 INFO (MainThread) [nio.rooms] Room !LGikxWyfCXalKdkofs:mydomain.net handling event of type PowerLevelsEvent
homeassistant              | 2023-07-22 12:28:24.295 INFO (MainThread) [nio.rooms] Room !LGikxWyfCXalKdkofs:mydomain.net handling event of type RoomJoinRulesEvent

homeassistant              | 2023-07-22 12:29:13.787 INFO (MainThread) [homeassistant.components.automation.matrix_report] Matrix Report: Running automation actions
homeassistant              | 2023-07-22 12:29:13.787 INFO (MainThread) [homeassistant.components.automation.matrix_report] Matrix Report: Executing step call service
homeassistant              | 2023-07-22 12:29:13.841 ERROR (MainThread) [custom_components.matrix] Unable to deliver message to room '#hassi:mydomain.net': RoomSendError: M_FORBIDDEN User @homeassistant:mydomain.net not in room #hassi:mydomain.net

[...]

homeassistant              | 2023-07-22 12:45:58.167 INFO (MainThread) [nio.rooms] Room !thbmTZEKVxomcoMekV:ismus.net handling event of type RoomMessageText
homeassistant              | 2023-07-22 12:45:58.167 DEBUG (MainThread) [custom_components.matrix] Handling message: !report

Diagnostics dump

No response

HACS repository

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

I've manually cloned the repository and moved everything in place but that's inconvenient for most and impossible for many potential users.

Describe the solution you'd like

Since your upstream merge request seems to be going nowhere, please consider creating a HACS repository which is a great solution for everyone.

Describe alternatives you've considered

Short of bribing a Homeassistant dev to review your MR? None.

Additional context

Upgrade to HAOS 2023.8 breaks matrix-nio (missing requirements)

System Health details

System Information

version core-2023.8.0
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.4
os_name Linux
os_version 6.1.39
arch x86_64
timezone Europe/Berlin
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.32.1
Stage running
Available Repositories 1283
Downloaded Repositories 27
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 10.4
update_channel stable
supervisor_version supervisor-2023.07.1
agent_version 1.5.1
docker_version 23.0.6
disk_total 62.3 GB
disk_used 34.6 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons redacted
Dashboards
dashboards 1
resources 10
views 11
mode storage
Recorder
oldest_recorder_run July 24, 2023 at 21:28
current_recorder_run August 3, 2023 at 21:32
estimated_db_size 4206.23 MiB
database_engine sqlite
database_version 3.41.2

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

Hi, first of all, thanks for creating the hacs-repo! I used your matrix-nio-hacs integrations since the first day without any problems. Since the upgrade to Home-Assistant 2023.8. the integration isn't longer working because of missing requirments.

Reproduction steps

  1. Upgrading Home-Assistant core from version 2023.7.3 to 2023.8.
  2. Trying to restart Home-Assistant results in the error showing below.

Debug logs

Logger: homeassistant.components.hassio
Source: components/hassio/__init__.py:568
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 21:43:48 (1 occurrences)
Last logged: 21:43:48

The system cannot restart because the configuration is not valid: Platform error notify.matrix - Requirements for matrix not found: ['Pillow==9.5.0']. Platform error notify.matrix - Requirements for matrix not found: ['Pillow==9.5.0']. Platform error notify.matrix - Requirements for matrix not found: ['Pillow==9.5.0']. Platform error notify.matrix - Requirements for matrix not found: ['Pillow==9.5.0']. Integration error: matrix - Requirements for matrix not found: ['Pillow==9.5.0'].
	




Logger: homeassistant.components.websocket_api.http.connection
Source: components/hassio/__init__.py:579
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 21:43:48 (1 occurrences)
Last logged: 21:43:48

[140465551150144] The system cannot restart because the configuration is not valid: Platform error notify.matrix - Requirements for matrix not found: ['Pillow==9.5.0']. Platform error notify.matrix - Requirements for matrix not found: ['Pillow==9.5.0']. Platform error notify.matrix - Requirements for matrix not found: ['Pillow==9.5.0']. Platform error notify.matrix - Requirements for matrix not found: ['Pillow==9.5.0']. Integration error: matrix - Requirements for matrix not found: ['Pillow==9.5.0'].
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 226, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 579, in async_handle_core_service
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Platform error notify.matrix - Requirements for matrix not found: ['Pillow==9.5.0'].
Platform error notify.matrix - Requirements for matrix not found: ['Pillow==9.5.0'].
Platform error notify.matrix - Requirements for matrix not found: ['Pillow==9.5.0'].
Platform error notify.matrix - Requirements for matrix not found: ['Pillow==9.5.0'].
Integration error: matrix - Requirements for matrix not found: ['Pillow==9.5.0'].

Diagnostics dump

No response

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.