'Dromotica' app for controlling Domoticz from Android

Post Reply
sebas
Posts: 171
Joined: Tuesday 17 September 2013 7:46
Target OS: Linux
Domoticz version:
Location: Deventer, The Netherlands
Contact:

'Dromotica' app for controlling Domoticz from Android

Post by sebas » Wednesday 18 September 2013 11:23

Hi,

I've installed Domoticz on Monday and have a Youless monitor and two switches with an RFXCOM up and running now so I'm a new user of Domoticz and new to domotica in general. I really like to have an open source domotica server that can run on a Raspberry Pi instead of the closed source and expensive systems. That Domoticz is controlled using a website is really useful as that can run on any device with a web browser. I did find it "slow" to work with, especially on my phone and tablet. Loading the pages takes a couple of settings and it's quicker to get of the coach and get the old remote of the switches I use. I had the idea that a native app would be quicker to work with and as that website talks to the server using a JSON API it would be possible to develop such an app.

So I got to work and decided that the first app I was going to develop would be a Domoticz app. I've got an early version ready and I want to share that with you. Maybe you'll find it useful as well. Currently the only thing it does is display the current and daily use on the utility screen but I’m planning on supporting the switches, scenes etc. First focus will be on display and switches. The graphs and maybe setup will come later. Also for the design and layout I’ve focused on smartphones first. It will work on tablets but the layout will be a bit messy. The overall design will need a upgrade anyway :-).

The app can be found in the Play Store and is available for download for free.

Image

You’ll need Android 4.0 or later installed on your device.

Below are some screenshots of the app.

Image
Image
Image
Image
Image

Dou you think this would be useful to develop? What features would you like to see supported in the app.

Update 18-9-2013 | 15:26
- Added support for on/off switches.

Update 12-10-2013
- New navigation menu
- Improved error handling
- Settings menu
- Start screen selection

Update 13-10-2013
- Support for scenes added

Update 14-10-2013
- Added support for all switch types
- Fixed a bug causing switches to by shown double and some not at all

Download
Image
Last edited by ThinkPad on Wednesday 18 March 2015 20:35, edited 9 times in total.
Reason: Changed the title to make more clear what the topic is about

oopee
Posts: 112
Joined: Monday 12 August 2013 11:15
Target OS: Raspberry Pi
Domoticz version: 3.x
Location: Finland
Contact:

Re: Android app

Post by oopee » Wednesday 18 September 2013 12:03

There is atleast one Android app already - Andromoticz.

sebas
Posts: 171
Joined: Tuesday 17 September 2013 7:46
Target OS: Linux
Domoticz version:
Location: Deventer, The Netherlands
Contact:

Re: Android app

Post by sebas » Wednesday 18 September 2013 12:10

oopee wrote:There is atleast one Android app already - Andromoticz.
Haha, ok. I did find that in the Play store when searching for domotica but didn't see it was for Domoticz. Did notice that the interface wasn't in English, that put me off as well but could be a setting in the app.
Didn't find any apps while searching this forum.

I'll keep developing this app. It's also a nice way for me to develop my Android programming skills :-)

I've put the file online for download and updated the opening post.
The app is available for downloade here.

oopee
Posts: 112
Joined: Monday 12 August 2013 11:15
Target OS: Raspberry Pi
Domoticz version: 3.x
Location: Finland
Contact:

Re: Android app

Post by oopee » Wednesday 18 September 2013 12:25

Cool. Don't get me wrong - more the merrier. I'll try both when I get my Nexus 7. Please make it look nice on tablets and horizontal too.

User avatar
remb0
Posts: 1002
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Android app

Post by remb0 » Wednesday 18 September 2013 12:35

nice work.

most important things for me:
-android notification bar notifications,
-widget to control switches very fast.

User avatar
remb0
Posts: 1002
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Android app

Post by remb0 » Wednesday 18 September 2013 13:20

I move this topic... to third party.

Skippiemanz
Posts: 300
Joined: Sunday 14 July 2013 20:21
Target OS: Raspberry Pi
Domoticz version: 3.5859
Location: Alkmaar, The Netherlands
Contact:

Re: Android app

Post by Skippiemanz » Wednesday 18 September 2013 13:34

Looks prommissing!

User avatar
BigDog
Posts: 300
Joined: Tuesday 17 September 2013 13:59
Target OS: Raspberry Pi
Domoticz version: V3.9269
Location: The Netherlands
Contact:

Re: Android app

Post by BigDog » Wednesday 18 September 2013 14:11

looks very nice

i try the andromoticz but it dasnt work At all.. try alot of different things but i cant get the app to work
hope to see more of this app

Good luck! :)
1X Raspberry1B : Domoticz V3.8153 [Linux ver. 4.14.34+ #1110]
1X RFXtrx433 USB Firmware:183
1X Mysensors Gateway 1.5 -3 Mysensors
3X Cresta Thermo-hygro sensor
6X ESP8266: easy firmware(Testing)
1X 8 Channel Relay Web Control Ethernet interface(Testing)

sebas
Posts: 171
Joined: Tuesday 17 September 2013 7:46
Target OS: Linux
Domoticz version:
Location: Deventer, The Netherlands
Contact:

Re: Android app

Post by sebas » Wednesday 18 September 2013 15:39

oopee wrote:Cool. Don't get me wrong - more the merrier. I'll try both when I get my Nexus 7. Please make it look nice on tablets and horizontal too.
Tablet support is on the to do list. I've got an old Motorola Xoom that I want to use as a remote and to test with. :-)
remb0 wrote:nice work.

most important things for me:
-android notification bar notifications,
-widget to control switches very fast.
Thanks. Widgets is a nice idea.

Domoticz supports NMA for notifications. I can connect my app to NMA but that requires the NMA client app to be installed as well to pass the notification from NMA to the app as far as I saw.
If Domoticz could connect to Google Cloud Messaging we could bypass the need for the NMA client app.

I just updated the app with support for on/off switches. To update just download the app from the link above and install. You'll keep your settings.

gertjuhh

Re: Android app

Post by gertjuhh » Wednesday 18 September 2013 16:45

Would love it if this app would not need a selection screen (screenshot 3), but rather switch between screens using swipe actions (swipe left / right).
Also a setting to determine which screen to open with by default would be a nice addition.

geho
Posts: 40
Joined: Thursday 08 August 2013 22:30
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: Android app

Post by geho » Wednesday 18 September 2013 18:02

Cool app, please keep it simple and fast.

When do expect do implement dimmers?

/Gerard

SweetPants
Posts: 2349
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.10196
Location: The Netherlands
Contact:

Re: Android app

Post by SweetPants » Wednesday 18 September 2013 18:16

Just installed it on a Nexus 7 32Gb, but keeps crashing as soon as i hit 'switches or Utility".
Other buttons don't do anything.

Harry
Ubuntu 16.04.5 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (from source)

sebas
Posts: 171
Joined: Tuesday 17 September 2013 7:46
Target OS: Linux
Domoticz version:
Location: Deventer, The Netherlands
Contact:

Re: Android app

Post by sebas » Wednesday 18 September 2013 21:30

SweetPants wrote:Just installed it on a Nexus 7 32Gb, but keeps crashing as soon as i hit 'switches or Utility".
Other buttons don't do anything.

Harry
Bummer. I'll see if I can figure out why it's crashing and I'll add more feedback if something produces an error.
The other buttons haven't been build yet, that's why they don't do anything. :-)

I'm working on the settings screen at the moment so it's possible to change the username, host etc. Only way to do that now is by removing the app and reinstalling it. Next is scenes and then I'll start with all the other types of switches including dimmers.

Scoobydoo
Posts: 59
Joined: Tuesday 16 July 2013 12:20
Target OS: -
Domoticz version:
Contact:

Re: Android app

Post by Scoobydoo » Friday 20 September 2013 23:54

Looking forward to seeing the development of this app. The swipe left and right to select different options instead of having to choose it on one screen is a good idea. Clean and simple look is the main thing, looking forward to seeing the dimmers implemented. Keep up the good work :)

gibbiem
Posts: 6
Joined: Saturday 13 July 2013 3:36
Target OS: -
Domoticz version:
Contact:

Re: Android app

Post by gibbiem » Tuesday 24 September 2013 17:10

This looks spot on. Visually pleasing. I use the HTC One running Android 4.3 and get 'Unfortunately, Domoticz has stopped' when selecting 'switches' and 'utilities'.

D3LTA
Posts: 34
Joined: Monday 15 July 2013 2:37
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Twente
Contact:

Re: Android app

Post by D3LTA » Friday 04 October 2013 12:33

Great work this!! really! with all due respect the andromoticz app works, but i all but nice.

I hope you keep developing this app!

thanks alot!

sebas
Posts: 171
Joined: Tuesday 17 September 2013 7:46
Target OS: Linux
Domoticz version:
Location: Deventer, The Netherlands
Contact:

Re: Android app

Post by sebas » Saturday 12 October 2013 16:16

Update :!:

I've just uploaded a new version of the app. Download is available here or with the link in the start post or scanning this QR code.
Image

New and improved
Navigation
The dashboard screen with the buttons has been removed and replaced with a menu that is accesable from all screens. This brings the Domoticz app in line with standard navigation standard in Android apps and makes switching screens easier.
The menu is access by swiping from the left side of the screen to the right or by clicking the Domoticz logo at the top of the screen. Only available screens are shown in the menu. The dashboard also had buttons for screens not yet implemented.
Image

Settings
Previous versions didn't have some way to change the settings for the server without re-installing the app. This version now supports a settings screen on which server settings and app preferences can be changed.
The settings menu is available trough the new menu.
Image

Start screen setting
As the dashboard screen has been removed there is no default starting screen. It is now possible to select one of the screens to be the default screen that is opened on starting the app. This setting is available trough the new settings menu.
When no start screen is set the settings menu will be displayed upon start to select one.
Image

Error handling
When the previous versions of the app could not connect to the Domoticz server the app would crash. It will now display an error message instead of crashing.
Image

I had to move the server settings to a new way of storing them in the app to make them available in the settings screen. Because of this after installing this update you will need to re-enter the server settings.
The update can be installed by opening the download link on your Android phone. No need to uninstall first.

alfred_j_kwak
Posts: 253
Joined: Friday 20 September 2013 18:49
Target OS: Raspberry Pi
Domoticz version: 2.3530
Location: Finland
Contact:

Re: Android app

Post by alfred_j_kwak » Saturday 12 October 2013 17:53

"There is problem when parsing the package" Or something like that when I try to install apk.

-Jussi-

sebas
Posts: 171
Joined: Tuesday 17 September 2013 7:46
Target OS: Linux
Domoticz version:
Location: Deventer, The Netherlands
Contact:

Re: Android app

Post by sebas » Saturday 12 October 2013 18:05

alfred_j_kwak wrote:"There is problem when parsing the package" Or something like that when I try to install apk.

-Jussi-
Please try again. Maybe the download failed somehow. Just to be sure I've made a new package and uploaded that.
Tested downloading with my own phone and installs without any errors.

Skippiemanz
Posts: 300
Joined: Sunday 14 July 2013 20:21
Target OS: Raspberry Pi
Domoticz version: 3.5859
Location: Alkmaar, The Netherlands
Contact:

Re: Android app

Post by Skippiemanz » Saturday 12 October 2013 20:12

Hmmm, It looks prommising but keeps saying cannot connect. All my settings where right. Any ideas?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest