ESPEasy device controller Android app

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
djakov
Normal user
Posts: 16
Joined: 03 Nov 2020, 21:25

ESPEasy device controller Android app

#1 Post by djakov » 21 Dec 2020, 11:15

Hi, i created a simple ESPEasy device controller Android app for my own purpose and also i have uploaded it to PlayStore so maybe someone will find it useful. The app has few commands: GPIO, Pulse, LongPulse, LongPulse_ms for each device. You can add devices dynamically and add command and GPIO port to each device.
You can find the app here: https://play.google.com/store/apps/deta ... .smarthome

Also, the app's code is open for anyone on GitHub, it follows android best practices(Kotlin, MVVM, Room, Retrofit, Dagger Hilt), if anyone is interested, feel free to contact me :)

roadxy
New user
Posts: 3
Joined: 21 Dec 2020, 16:53

Re: ESPEasy device controller Android app

#2 Post by roadxy » 22 Dec 2020, 12:13

Nice!
I'd like to help and expand the app a little. Do you accept PR?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESPEasy device controller Android app

#3 Post by TD-er » 22 Dec 2020, 13:23

Nice!
I never developed an Android app myself, so having it open source would also be very helpful for others (me :) ) to how it's done.

Do you have a link to the Github repo?

djakov
Normal user
Posts: 16
Joined: 03 Nov 2020, 21:25

Re: ESPEasy device controller Android app

#4 Post by djakov » 22 Dec 2020, 20:37

roadxy wrote: 22 Dec 2020, 12:13 Nice!
I'd like to help and expand the app a little. Do you accept PR?
Yes, of course.
TD-er wrote: 22 Dec 2020, 13:23 Nice!
I never developed an Android app myself, so having it open source would also be very helpful for others (me :) ) to how it's done.

Do you have a link to the Github repo?

Here is a link to the repo: https://github.com/antoniodjakov/smart-home

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESPEasy device controller Android app

#5 Post by TD-er » 23 Dec 2020, 00:47

Hmm you're referring to the "R120 build" on your readme.
Could you perhaps link to a more recent build as that one is rather ancient?

djakov
Normal user
Posts: 16
Joined: 03 Nov 2020, 21:25

Re: ESPEasy device controller Android app

#6 Post by djakov » 23 Dec 2020, 09:14

TD-er wrote: 23 Dec 2020, 00:47 Hmm you're referring to the "R120 build" on your readme.
Could you perhaps link to a more recent build as that one is rather ancient?
Yes, at first i had build R120 installed on my devices, but there was no problem after updating to mega-20201009.

Do you need any help or instructions to install a newer build?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESPEasy device controller Android app

#7 Post by TD-er » 23 Dec 2020, 10:24

I still need to test the app, but I browsed through your github page and noticed the readme referred to an ancient build of ESPEasy. That's all.
Every now and then I do see those old builds pop up in new issues and forum topics, so I want to get rid of as many external references to the old builds as possible as there have been quite a few changes and fixes since then :)

User avatar
iron
Normal user
Posts: 221
Joined: 24 Sep 2016, 08:37
Location: Greece
Contact:

Re: ESPEasy device controller Android app

#8 Post by iron » 23 Dec 2020, 11:54

TD-er wrote: 23 Dec 2020, 10:24 I still need to test the app, but I browsed through your github page and noticed the readme referred to an ancient build of ESPEasy. That's all.
Every now and then I do see those old builds pop up in new issues and forum topics, so I want to get rid of as many external references to the old builds as possible as there have been quite a few changes and fixes since then :)
Here is a good start :

https://www.letscontrolit.com/wiki/inde ... le=ESPEasy

Under: loading Firmware

Removing the links to the old versions and making the link to the newer version more obvious, will be a great boost.
-D

roadxy
New user
Posts: 3
Joined: 21 Dec 2020, 16:53

Re: ESPEasy device controller Android app

#9 Post by roadxy » 24 Dec 2020, 10:22

djakov wrote: 22 Dec 2020, 20:37
roadxy wrote: 22 Dec 2020, 12:13 Nice!
I'd like to help and expand the app a little. Do you accept PR?
Yes, of course.
TD-er wrote: 22 Dec 2020, 13:23 Nice!
I never developed an Android app myself, so having it open source would also be very helpful for others (me :) ) to how it's done.

Do you have a link to the Github repo?

Here is a link to the repo: https://github.com/antoniodjakov/smart-home
I can't get Gradle to sync.
Are you using a beta version of Android Studio?
This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 4.2 or newer.

djakov
Normal user
Posts: 16
Joined: 03 Nov 2020, 21:25

Re: ESPEasy device controller Android app

#10 Post by djakov » 24 Dec 2020, 11:31

roadxy wrote: 24 Dec 2020, 10:22
djakov wrote: 22 Dec 2020, 20:37
roadxy wrote: 22 Dec 2020, 12:13 Nice!
I'd like to help and expand the app a little. Do you accept PR?
Yes, of course.
TD-er wrote: 22 Dec 2020, 13:23 Nice!
I never developed an Android app myself, so having it open source would also be very helpful for others (me :) ) to how it's done.

Do you have a link to the Github repo?

Here is a link to the repo: https://github.com/antoniodjakov/smart-home
I can't get Gradle to sync.
Are you using a beta version of Android Studio?
This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 4.2 or newer.
Yes, i am using Android Studio 4.2 Beta 2 (Canaray). Sorry i haven't mentioned it anywhere.

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ESPEasy device controller Android app

#11 Post by Ath » 24 Dec 2020, 11:38

djakov wrote: 24 Dec 2020, 11:31 Yes, i am using Android Studio 4.2 Beta 2 (Canaray). Sorry i haven't mentioned it anywhere.
It would be helpful to add a CONTRIBUTING.MD file to the repo, describing the expectations and requirements for anyone that wants to help with development.

For other suggestions, this Github documentation is quite helpful.
/Ton (PayPal.me)

roadxy
New user
Posts: 3
Joined: 21 Dec 2020, 16:53

Re: ESPEasy device controller Android app

#12 Post by roadxy » 24 Dec 2020, 13:54

djakov wrote: 24 Dec 2020, 11:31
roadxy wrote: 24 Dec 2020, 10:22 I can't get Gradle to sync.
Are you using a beta version of Android Studio?
This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 4.2 or newer.
Yes, i am using Android Studio 4.2 Beta 2 (Canaray). Sorry i haven't mentioned it anywhere.
No problem, downloaded that version of Android Studio and now it synced alright.
Any specific reason as to why you used the Beta version?

djakov
Normal user
Posts: 16
Joined: 03 Nov 2020, 21:25

Re: ESPEasy device controller Android app

#13 Post by djakov » 24 Dec 2020, 13:59

roadxy wrote: 24 Dec 2020, 13:54
djakov wrote: 24 Dec 2020, 11:31
roadxy wrote: 24 Dec 2020, 10:22 I can't get Gradle to sync.
Are you using a beta version of Android Studio?
Yes, i am using Android Studio 4.2 Beta 2 (Canaray). Sorry i haven't mentioned it anywhere.
No problem, downloaded that version of Android Studio and now it synced alright.
Any specific reason as to why you used the Beta version?
Funny story, in a middle of work on my Android Studio (not Beta), an update popup showed up(on the right bottom corner) and i clicked it. After the update was installed, i could not start the Android Studio,it constantly crashed, but i had to continue with my work, and i had no time to uninstall and install again and i remembered that i have the Beta version installed on my PC and switched to Beta. Since then i am using Android Studio Canary :)

Smotek7
Normal user
Posts: 142
Joined: 01 Aug 2020, 16:18
Location: SK

Re: ESPEasy device controller Android app

#14 Post by Smotek7 » 17 Aug 2021, 22:12

@djakov
Hello,
I want to try your application but it doesn't work.
When you press the button, it writes a message
there is no internet connection.
It's so simple that I don't understand where the mistake is.

djakov
Normal user
Posts: 16
Joined: 03 Nov 2020, 21:25

Re: ESPEasy device controller Android app

#15 Post by djakov » 14 Dec 2021, 13:17

Smotek7 wrote: 17 Aug 2021, 22:12 @djakov
Hello,
I want to try your application but it doesn't work.
When you press the button, it writes a message
there is no internet connection.
It's so simple that I don't understand where the mistake is.
Sorry for the late response, did you add http:// or https:// before the IP address of the device? It should look something like this: http://192.168.0.123:100

Smotek7
Normal user
Posts: 142
Joined: 01 Aug 2020, 16:18
Location: SK

Re: ESPEasy device controller Android app

#16 Post by Smotek7 » 14 Dec 2021, 18:43

@djakov I entered http://...
but I didn't use the port ....:100

djakov
Normal user
Posts: 16
Joined: 03 Nov 2020, 21:25

Re: ESPEasy device controller Android app

#17 Post by djakov » 17 Dec 2021, 16:32

Smotek7 wrote: 14 Dec 2021, 18:43 @djakov I entered http://...
but I didn't use the port ....:100
No need to use a port, it was just an example. You could just use:
http://192.168.0.123 and choose the correct GPIO pin

Smotek7
Normal user
Posts: 142
Joined: 01 Aug 2020, 16:18
Location: SK

Re: ESPEasy device controller Android app

#18 Post by Smotek7 » 17 Dec 2021, 17:05

it doesn't work for me
My settings
set.JPG
set.JPG (18.19 KiB) Viewed 9708 times
and the result
no conn.JPG
no conn.JPG (9.61 KiB) Viewed 9708 times
do I need to allow something on the phone?

maslokm
New user
Posts: 1
Joined: 18 Dec 2021, 21:47

Re: ESPEasy device controller Android app

#19 Post by maslokm » 18 Dec 2021, 21:48

Hi.
Please add support of getting data from temperature sensors.

djakov
Normal user
Posts: 16
Joined: 03 Nov 2020, 21:25

Re: ESPEasy device controller Android app

#20 Post by djakov » 07 Jan 2022, 22:36

Smotek7 wrote: 17 Dec 2021, 17:05 it doesn't work for me
My settings
set.JPG

and the result

no conn.JPG

do I need to allow something on the phone?
Please make sure:
In Config in ESP you need to change Client IP filtering to Allow All. The default is Allow Subnet.

djakov
Normal user
Posts: 16
Joined: 03 Nov 2020, 21:25

Re: ESPEasy device controller Android app

#21 Post by djakov » 07 Jan 2022, 22:37

maslokm wrote: 18 Dec 2021, 21:48 Hi.
Please add support of getting data from temperature sensors.
Next update will be rules, and after that will be showing sensor values.

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests