Is it possible to use this with my custom python code (not HA type stuff)? #523
-
I have been looking at the fantastic code/documentation on the meross_lan github and wiki. So first of all thanks very much for that. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @chrisaccount, I remember I've made some experiments in the past due to a specific request but I cannot find the thread where this was discussed. |
Beta Was this translation helpful? Give feedback.
Hello @chrisaccount,
Thank you for your appreciation.
Not sure if it would be easy since it was designed from the beginning as an HA component but I've tried to isolate 'library' code in the
merossclient
folder which does not depend at all on homeassistant code.Digging into that module it should be easy to setup an HTTP client (even an MQTT one if that matters).
I remember I've made some experiments in the past due to a specific request but I cannot find the thread where this was discussed.
In the end, I remember it was just a matter of properly 'loading' the folder as a python module into your code and use it.