To those who may be interested, I have successfully ported the Ecobee App to Openluup. It was a hobby on its own and was successful thanks to @Watou generosity in providing the encrypted API file. He originally wrote it for UI5 and I made some touch-ups to it last year to make it work on UI7 but making it work on Openluup was a whole different task. I will run a bit more test before calling it good and posting it here.
@akbooer : Since you are going to ask what I did, here are the major changes:
- I had to install luasec to my lua library to support https calls.
- A developer account needs to be create on the ecobee website in order to get an API key so that everyone’s data remains safe and is seen as an independent app. This only takes a few seconds.
- Merged the encrypted API lua file into the main one, refactored several functions and eliminated need of module calls which made passing variables more cumbersome.
- Use of the ubiquitous dkjson decoder instead of a compressed customized one on the original app. (I don’t really understand what the purpose was and struggled with it for some time). Related was the “Require” declaration of the json library which did not seem to work on the vera either so it has been a mystery as to how the app works on UI7.
- luup.task messages does not appear to show anywhere so I added a message field on the device to get status of the app and mostly debug…
- All the “<” and “>” operators were replaced with lua equivalent in the xml files.
- Localize all the icons since we should not have storage limitations on openluup and icons are small anyway.