How to configure the Domoticz Lite app on your smartphone

Moderator: leecollings

Post Reply
OldPensionado
Posts: 28
Joined: Wednesday 01 March 2017 9:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

How to configure the Domoticz Lite app on your smartphone

Post by OldPensionado »

Hi my fellow Domoticzans!

I have been struggling a lot to determine the correct values for the connection settings in the app. For instance it took me several hours to discover that Domoticz on the Raspberry Pi has to be restarted after changing the username/password combination. Horryfing but true! (@Gizmocus: are you listening?)

Ok, let's start. Please note that the first setting is for gsm (4G), the next for your local (wifi) network.
When launching the app for the first time it will ask you to grant access to location data. I consider this not neccessary since I don't use geofencing and I don't like the app to go scanning for wifi networks.
Gsm settings:
  • 'Server address': enter the external ip address of your internet router.
  • Select HTTPS. Do not enter the default port number 443. This introduces possible serious security issues. Instead pick a port outside the well-known ports and registered ports. There are plenty! See also note 1.
  • Enter the username/password you have defined in the Domoticz webgui (Setup > Settings > Website Protection).
  • 'Directory': leave this empty.
Wifi settings:
  • Mark 'Different server address'
  • 'Local wifi SSID's': click 'Add' and enter your own wifi SSID. (Note: this seems to be absolutely neccessary in this app version.)
  • 'Local server address': enter the (private) ip address of your Raspberry Pi.
  • Select HTTPS and use port 443.
  • Enter the same username/password as above unless you have defined on the same page in the Domoticz webgui a private ip address range from where no username/password is needed.
  • 'Local directory': leave this empty.
Notes:
  1. You have to set in your router the port forwarding rules related to the HTTPS port you have chosen.
  2. Domoticz on RPi - a change in the Domoticz settings must be confirmed by clicking 'Apply Settings'. See also note 3.
  3. Domoticz on RPi - weird but true: after changing in the Domoticz webgui the username/password combination and clicking 'Apply Settings' you must restart the Domoticz application on your Raspberry Pi. Otherwise nothing will be changed.
    At the same page set 'Authentication' on Basic-Auth.
  4. Domoticz Lite app - I strongly recommend to use a really unique password (not used for any account) as it can easily be read by clicking 'Show password'.
  5. Domoticz Lite app - after making a change in 'Server connection settings' select always right below 'Fetch server configuration'. Apparently the app will log in anew. If you don't the same error will appear: 'Failed to fetch server config' or 'Oops! Something went wrong Check your settings'.
  6. Domoticz Lite app - be smart and clear always the cache prior to changing anything in 'Server connection settings'. On Android > Settings > Apps > Domoticz Lite > Storage > Clear cache.
Well, I hope some users will benefit of my findings. And if I have overlooked an already existing thread in this forum: please let me know.

Android: Domoticz Lite V 0.2.202 (7072)
Raspberry Pi: Domoticz 2020.1
RPi 1, model B, Rev. 2; RPi 3B+; RPi Zero; RPi 4B
Raspbian 11 (Bullseye)
Domoticz V2024.7

Well, such is life. And it's getting sucher and sucher...
Anonymouse0104
Posts: 5
Joined: Sunday 19 March 2023 12:53
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to configure the Domoticz Lite app on your smartphone

Post by Anonymouse0104 »

Hi! For a couple of years I run the domoticz app in my iPhone. However, I try to install domoticz for a friend of mine (webUI is installed and working) but when I test the connection in the app after filling in all the server settings it keeps saying "unautherized". Any idea how to solve this?
OldPensionado
Posts: 28
Joined: Wednesday 01 March 2017 9:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Re: How to configure the Domoticz Lite app on your smartphone

Post by OldPensionado »

  • Maybe an odd question but did you really took all the steps as described in my post above?
  • On what system the WebGui is running?
RPi 1, model B, Rev. 2; RPi 3B+; RPi Zero; RPi 4B
Raspbian 11 (Bullseye)
Domoticz V2024.7

Well, such is life. And it's getting sucher and sucher...
Anonymouse0104
Posts: 5
Joined: Sunday 19 March 2023 12:53
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to configure the Domoticz Lite app on your smartphone

Post by Anonymouse0104 »

OldPensionado wrote: Sunday 19 March 2023 16:10
  • Maybe an odd question but did you really took all the steps as described in my post above?
  • On what system the WebGui is running?
Yea I did all the steps, the connection works but even on my phone it is saying unauthorized..

Webgui is running on the PI or do you mean the OS?
Arun1
Posts: 2
Joined: Thursday 26 October 2023 8:40
Target OS: -
Domoticz version:
Contact:

Re: How to configure the Domoticz Lite app on your smartphone

Post by Arun1 »

Anonymouse0104 wrote: Sunday 19 March 2023 12:57 Hi! For a couple of years I run the domoticz app in my iPhone. However, I try to install domoticz for a friend of mine (webUI is installed and working) but when I test the connection in the app after filling in all the server settings it keeps saying "unautherized". Any idea how to solve this?
For the "unauthorized" issue while setting up Domoticz on your friend's app, ensure correct server settings are entered. Verify credentials, recheck the app's connection protocol (HTTP/HTTPS), and update the app if needed. Also, confirm that remote access is allowed in Domoticz settings for a successful connection
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests