This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

LM Home app (Andrоid/iOS starter)
HI
I would like to install LM on an Android that doesn't connect to the play store, is it possible to have the apk? Thank you

Antonio
Reply
Which android version?
------------------------------
Ctrl+F5
Reply
android 10
Reply
https://www.transfernow.net/dl/20241211ayd2WeZj
------------------------------
Ctrl+F5
Reply
Thank you
Reply
Hi. I have problems with the push notifications in Iphone.
I manage to activate push notoificatuions, but after a while (12-48 hours) the push notifications stop working.
In LM i have the app Push notification.
On the phone i use the app "Logic machine".

I tried deleting the phone ID and after a while a "new" phone with a new ID showed up.
This makes the use for alarms and stuff like that a bit uncertiain. Feels like I am doing something wrong.
any ideas?

I attach a picture of how it looks when i turned of push notifications on the phone "Logic machine" app and then turned on again. A "new" ID turns up.

[Image: phone.png]
Reply
As you posted it under LM Home app then maybe try using it instead of the old LogicMachine app
https://kb.logicmachine.net/notification...fications/
PS. When sending notifications you can log the errors ans see what it says.
------------------------------
Ctrl+F5
Reply
(12.02.2025, 09:30)Daniel Wrote: As you posted it under LM Home app then maybe try using it instead of the old LogicMachine app
https://kb.logicmachine.net/notification...fications/
PS. When sending notifications you can log the errors ans see what it says.

I haven't understood how to make the LM home app stay logged in or to make it work both home and with cloud.
Is there a good way?
In the Logichmachine app you store your credentials and can chose between home and cloud. 

So in the step by step guide I feel kind of dumb since.

Any ideas?
Reply
LM Home meant to be the simpler one Smile
You just need to create yourself a user (never use admin account as it will not be remembered) and in this user account add your cloud email. Set permissions and sync LM Cloud app.
Later just open LM Home app and when on local netowrk with LM it will connect to the local LM. When not on local network it will go to cloud. You can force cloud connection by long press on LM home app icon, there are more options there.
The idea behind is simply to not need to select, it will do it automatically.
PS. The credentials are saved in phone cache and the saving procedure is managed by your mobile. Sometimes you must let the app open for a minute or two for the system to save credentials. If you kill the app straight on credentials might not be saved.
------------------------------
Ctrl+F5
Reply
(12.02.2025, 10:30)Daniel Wrote: LM Home meant to be the simpler one Smile
You just need to create yourself a user (never use admin account as it will not be remembered) and in this user account add your cloud email. Set permissions and sync LM Cloud app.
Later just open LM Home app and when on local netowrk with LM it will connect to the local LM. When not on local network it will  go to cloud.  You can force cloud connection by long press on LM home app icon, there are more options there.
The idea behind is simply to not need to select, it will do it automatically.
PS. The credentials are saved in phone cache and the saving procedure is managed by your mobile. Sometimes you must let the app open for a minute or two for the system to save credentials. If you kill the app straight on credentials might not be saved.

Great explanation. I'm getting the hang of it. 
I now see the push token when i log into cloud. 
However I do not see the token or name in the LM push notification app in logic machine. 
Should it show up?
Reply
You don't need the Push notification app at all. It was only needed in combination with LogicMachine app.
For the LM Home app the LM cloud app does everything. Just use this example to send notifications.
https://kb.logicmachine.net/notification...fications/
------------------------------
Ctrl+F5
Reply
(12.02.2025, 10:57)Daniel Wrote: You don't need the Push notification app at all. It was only needed in combination with LogicMachine app.
For the LM Home app the LM cloud app does everything. Just use this example to send notifications.
https://kb.logicmachine.net/notification...fications/

Ok. Great. I go that way then. 
Was just simple to not need long tokens. But then i know. thanks again.
Reply
(12.02.2025, 10:57)Daniel Wrote: You don't need the Push notification app at all. It was only needed in combination with LogicMachine app.
For the LM Home app the LM cloud app does everything. Just use this example to send notifications.
https://kb.logicmachine.net/notification...fications/

Strange.
I now pasted the whole token.
this is the log:

* arg: 1
  * bool: true
* arg: 2
  * nil
And this is the full script:
push = require('applibs.lmcloud.push')

token = 'ios:dFzA75RNwEAjso1nxxxxxx[very long]'
title = 'Doorbell'
body = 'Go to the door'

res, err = push(token, title, body)
log(res, err)
Reply
This means all was sent correctly
------------------------------
Ctrl+F5
Reply
(12.02.2025, 13:36)Daniel Wrote: This means all was sent correctly

Aha. However, no push notifications are sent.
Reply
They are sent only not received. Did you allow permissions for LM Home app to receive notifications?
------------------------------
Ctrl+F5
Reply
(12.02.2025, 13:41)Daniel Wrote: They are sent only not received. Did you allow permissions for LM Home app to receive notifications?

Seems to work now.
But still two questions:
1) In local network, credentials seems to be unsaved (however password stored in iphone, but need to put user name + password every time)
2) Any way to use simpler names instead of full token? Also any way to make groups of phones or to push to all phones? 

Thanks a lot for your helplfulness.
Reply
(30.01.2024, 10:58)admin Wrote: LM Home Android app can be downloaded from the Play store. Search for LM Home, click New if the app does not show up in search results.

iOS version will be published in the App store later.



LM firmware 2024.01 or newer is required.

Basic information

Do not use admin user to access your local LM. Use a normal user instead because admin user credentials are not saved for security reasons. You can change the default homepage for your user  in User access settings.

For initial discovery your phone/tablet must be connected to the same network as your LM.

Run the app and it will connect to the discovered LM automatically. If multiple LMs are present on the network you will be able to select which one to connect to. Selected LM is saved and will be used automatically when the app is run again.

The application is meant for single LM usage only. Switching between multiple LMs is not supported yet.

If the SSL certificate LM app is installed and configured the application will connect to local LM over HTTPS, otherwise plain HTTP mode is used. It is recommended to use the SSL certificate for improved security.

Switching between local LM and LM Cloud is performed automatically based on current connection mode (Wi-Fi or mobile) and whether the local LM can be reached.



Quick actions menu

Long press on the application icon to show the quick actions menu:
- Clear cache removes internal browser cache and cookies. You will have to login into local LM and LM Cloud again.
- Clear saved LM removes saved LM IP / MAC address and restarts the discovery procedure.





Push notifications

To use push notifications you must login into LM Cloud via the LM Home app once.

Push tokens for your devices can be found in LM Cloud settings.

1. Log into your LM Cloud account.

2. Click close (x) in Mosaic or go to the LM Cloud apps main page.


3. Click the cog icon in the LM Cloud apps main page.


4. Click the copy icon to copy the relevant push token, then paste it into the notification script in your LM.


Script example:
Code:
push = require('applibs.lmcloud.push')

token = 'PUT_YOUR_TOKEN_HERE'
title = 'Push title'
body = 'Push message body'

res, err = push(token, title, body)
log(res, err)

Hello everybody. Sorry for my ignorance, but I am new with this type of programming.
I managed to connect my phone and test push notifications from LM Push Notifications app.
Still, I can not do it through a script.
If I understand well, the device ID goes to  token?
Reply
If you using Push notifications app then you are not using LM Home app. The script above is for LM home app not LogicMachine app which is the older version.
https://kb.logicmachine.net/notification...fications/
------------------------------
Ctrl+F5
Reply
(13.02.2025, 16:27)Daniel Wrote: If you using Push notifications app then you are not using LM Home app.  The script above is for LM home app not LogicMachine app which is the older version.
https://kb.logicmachine.net/notification...fications/

I installed the LM Home app also, but when I open it, the gear icon is not there.
Check the attached picture

Attached Files Thumbnail(s)
   
Reply


Forum Jump: