Hi @jpalo and @nemer .
First, great job @nemer , your contribution is amazing and helped me a lot. I have 5 LG air conditioners, so now I can have the temperature of all my rooms in my dashboard thanks to you.
Regarding the file based configurations, I also have a preference to that, all my other devices are configured this way. So I did a fork your work in my github account and did some changes to make it possible:
I also made few other improvements, I would like to share them with you, But I don’t have much time lately to review and discuss and open a PR, but I can try to give more priority on that if you think it worth.
About the changes to enable file configuration, basically I published all properties. That’s not the ideal, but it is working. The problem is I couldn’t find a way to identify the LG devices from the Thinq APP, so I had to add the devices using the OH UI to grab the properties and then remove them after adding the values to the things file.
Here is how the things file would look like:
Bridge lgthinq:bridge:LGAccount "LG ThinQ Account"
[ username="*****@gmail.com", password="*******", language="pt-BR", country="BR", discoveryPollingIntervalSec=-1, pollingIntervalSec=60 ] {
401 ACEscritorio "Ar Codicionado Escritório" [
device_id="ee3e7f23-dbe3-1111111111-5555555555",
model_name="RAC_123123123_WW",
model_url_info="https://objectcontent.lgthinq.com/123123wersdfg-c977-4599-aab8-888888888888?hdnts=exp=1231235281~hmac=qweasdfc106c11111111111195c16b9385c3e4d87267088888888888888888888888",
platform_type="thinq2",
device_alias="Escritório"
]
}
The only required property for the devices should be device_id
, the remaining properties could be retrieved based on that. This would be my next step to improve.
See that I also added a property to configure (and disable: -1) the discovery polling interval (discoveryPollingIntervalSec), once I don’t need have the discovery running constantly as I did the configuration manually.