olinek2 / LGAC_SmartT

Domoticz plugin for LGAC SmartThing
MIT License
7 stars 8 forks source link

How to use with domoticz docker image #7

Open kipusoep opened 2 years ago

kipusoep commented 2 years ago

Hi!

The apt packages are not all available inside the official domoticz docker image. Following the installation steps will work for the running container, but whenever it gets recreated, it'll be all gone. So how could I use this with the docker image? I'm afraid that I'll have to create my own image based on the official image, or are there other ways?

kipusoep commented 2 years ago

For anyone interested, I couldn't get this plugin to work at all and tried https://github.com/majki09/domoticz_lg_thinq_plugin, which works fine.

heggink commented 2 years ago

That means that you are on v2 of the API. LG uses 2 versions depending on when you registered. The original plugin only used the v1. I am not aware of any wideq library handling both at the same time unfortunately.

Specific to the container stuff, the downside of pythong plugins is that they often require python libraries to be installd (like wideq, pack and so on/forth). That means that any standard image would need a bunch of startup commands reinstalling these libraries every time you update the dockwer image. Either that, or you build your own docker image which is a hassle. I have a bunch of python plugins so for me, the domoticz docker approach isn't much of a simplification :-(

kipusoep commented 2 years ago

I think I'll have a shot at creating my own docker image (I have experience) and also configure automated pipeline trigger based on updates to the original image.