Page 1 of 1

ESPEasy device controller Android app

Posted: 21 Dec 2020, 11:15
by djakov
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 :)

Re: ESPEasy device controller Android app

Posted: 22 Dec 2020, 12:13
by roadxy
Nice!
I'd like to help and expand the app a little. Do you accept PR?

Re: ESPEasy device controller Android app

Posted: 22 Dec 2020, 13:23
by TD-er
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?

Re: ESPEasy device controller Android app

Posted: 22 Dec 2020, 20:37
by djakov
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

Re: ESPEasy device controller Android app

Posted: 23 Dec 2020, 00:47
by TD-er
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?

Re: ESPEasy device controller Android app

Posted: 23 Dec 2020, 09:14
by djakov
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?

Re: ESPEasy device controller Android app

Posted: 23 Dec 2020, 10:24
by TD-er
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 :)

Re: ESPEasy device controller Android app

Posted: 23 Dec 2020, 11:54
by iron
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.

Re: ESPEasy device controller Android app

Posted: 24 Dec 2020, 10:22
by roadxy
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.

Re: ESPEasy device controller Android app

Posted: 24 Dec 2020, 11:31
by djakov
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.

Re: ESPEasy device controller Android app

Posted: 24 Dec 2020, 11:38
by Ath
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.

Re: ESPEasy device controller Android app

Posted: 24 Dec 2020, 13:54
by roadxy
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?

Re: ESPEasy device controller Android app

Posted: 24 Dec 2020, 13:59
by djakov
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 :)

Re: ESPEasy device controller Android app

Posted: 17 Aug 2021, 22:12
by Smotek7
@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.

Re: ESPEasy device controller Android app

Posted: 14 Dec 2021, 13:17
by djakov
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

Re: ESPEasy device controller Android app

Posted: 14 Dec 2021, 18:43
by Smotek7
@djakov I entered http://...
but I didn't use the port ....:100

Re: ESPEasy device controller Android app

Posted: 17 Dec 2021, 16:32
by djakov
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

Re: ESPEasy device controller Android app

Posted: 17 Dec 2021, 17:05
by Smotek7
it doesn't work for me
My settings
set.JPG
set.JPG (18.19 KiB) Viewed 9907 times
and the result
no conn.JPG
no conn.JPG (9.61 KiB) Viewed 9907 times
do I need to allow something on the phone?

Re: ESPEasy device controller Android app

Posted: 18 Dec 2021, 21:48
by maslokm
Hi.
Please add support of getting data from temperature sensors.

Re: ESPEasy device controller Android app

Posted: 07 Jan 2022, 22:36
by djakov
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.

Re: ESPEasy device controller Android app

Posted: 07 Jan 2022, 22:37
by djakov
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.