paarthshah / matrix-nio-hacs Goto Github PK
View Code? Open in Web Editor NEWA HACS Integration to replace the core matrix Home Assistant integration.
A HACS Integration to replace the core matrix Home Assistant integration.
no need, known 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.
...
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
no need
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
remove default integration and install hacs version instead
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.
Video upload support for notifications.
Using a different tool
N/A - it's a straightforward request : )
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 |
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 |
logged_in | false |
---|---|
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | ok |
dashboards | 1 |
---|---|
resources | 1 |
views | 4 |
mode | storage |
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 |
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 ...
homeserver: https://mydomain.net
username: !secret matrix_handle
password: !secret matrix_password
rooms:
- "#hassi:mydomain.net"
commands:
- word: report
name: report
matrix: !include matrix.yaml
notify:
- name: matrix_notify
platform: matrix
default_room: "#hassi:mydomain.net"
Call matrix_notify in any Automization
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
No response
I've manually cloned the repository and moved everything in place but that's inconvenient for most and impossible for many potential users.
Since your upstream merge request seems to be going nowhere, please consider creating a HACS repository which is a great solution for everyone.
Short of bribing a Homeassistant dev to review your MR? None.
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 |
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 |
logged_in | false |
---|---|
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | ok |
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 | 1 |
---|---|
resources | 10 |
views | 11 |
mode | storage |
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 |
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.
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'].
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.