Start a new topic

Ability to switch APP from API

Hi,


Currently the iOS/Android App allow you to switch between application. In order to integrate Lametric time in my home automation setup, I'd like to be able to switch from an application to another using the API.


For instance, I'd like to show blanc frame (like sleep mode for the screen) when nobody is at home. So this way I can save life time to the display.


What I have found so far:


The device provide the rest API through fastGCI scrip running on localhost, lighthttpd is taking care of the authentication:


  • First the client need to provide a client certificate in order to establish SSL connection (each application Android/iOS is embedding it's own cert)
  • Then a Basic user/password is required to use the internal API.


I'm pretty sure I can achieve to get access to the internal API but this is not the way to go.


Thanks to consider Internal API access :)



4 people like this idea

External API for cloud to cloud integration could also works.

@Cyril Were you ever able to figure this out? I am trying to intercept some calls myself to be able to switch between applications programatically as well but I keep running into the SSL Client Cert error. Any luck in being able to spoof the cert, or even extracting it from the app so we can make REST calls ourselves to switch between applications?

Also waiting for this. Really want to start timers with REST calls.

I'm also waiting for these features, to control at least the built-in apps, like radio, timer, alarms, etc.

For integration in a smart home automation, this is a must. ;-)

Any information from LaMetric on these features?


After the 1.7.3 changelog stated


"Extended local API that allows controlling device programmatically. Documentation on that is coming a little bit later."


I was curious and checked what changed and I found some new API endpoints which probably allow switching between apps and setting timers/countdowns etc. They don't work at the moment, but I guess they will be activated with the next update.

I suppose LaMetric need this API for the announced or already published Alexa Skill to control the LaMetric via Amazon Echo.

I guess it's both. I was told the documentation will be updated this month.

Login or Signup to post a comment