Luligu / matterbridge

Matterbridge plugin manager for Matter
https://github.com/Luligu/matterbridge/blob/main/README.md
Apache License 2.0
250 stars 25 forks source link

[Feature Request] Remote API #77

Open Dischi opened 4 months ago

Dischi commented 4 months ago

It would be nice to have an API to extend the matter bridge without having to write a plugin in javascript. Maybe because bindings to whatever you want to add only exist in other languages or (in my case) for people who do not know Javascript.

Similar to the home assistant matter server there could be a JSON websocket API to add/remove devices, change their state and receive notifications from a matter controller. Or an MQTT plugin independent of zigbee2mqtt to add external devices.

Apollon77 commented 4 months ago

I'm not sure if it makes sense to enhance matterbridge for something like this. I would more see this (and already planned mid-term) as a feature of matter.js.

Luligu commented 4 months ago

It would be nice to have an API to extend the matter bridge without having to write a plugin in javascript. Maybe because bindings to whatever you want to add only exist in other languages or (in my case) for people who do not know Javascript.

Similar to the home assistant matter server there could be a JSON websocket API to add/remove devices, change their state and receive notifications from a matter controller. Or an MQTT plugin independent of zigbee2mqtt to add external devices.

Hi, it would be interesting. A friend already asked for a similar solution to expose to matter his DIY devices. Right now is not planned but a pure MQTT plugin with simple API is certainly a manageable thing. It would allow to connect from different systems and languages. Now I'm really occupied to migrate Matterbridge to a new version of matter.js. In the future is possible,

Dischi commented 4 months ago

Sounds good. There could be a simple matterbridge/device/add and matterbridge/device/remove interface as well as one topic to report the current status and to set values (similar to zigbee2mqtt). The content could be a simple json with the same attribute names and values as the matter standard. If you find the time, I can be the beta tester :)

Luligu commented 4 months ago

You know what? Is interesting cause you are asking me the same features as my friend.