Page 3 of 4
Re: Dromoticz for Android TV (Leanback)
Posted: Thursday 25 August 2016 8:15
by galadril
G3rard wrote:Just installed this on my Nvidia shield, looking great.
I can confirm fergalom's issue that the Dashboard is showing all devices in stead of the favorites.
Also when I add a device to the favorites using this app and then remove it, it is still showing on the Dashboard.
Thanks, ill look into this..
Re: Dromoticz for Android TV (Leanback)
Posted: Thursday 25 August 2016 8:33
by galadril
Thanks, found the issue.
Your domoticz is outdated.. they added an extra json call for dashboard/favorites in version #5276 .
Which i'm using...
Re: Dromoticz for Android TV (Leanback)
Posted: Thursday 25 August 2016 10:15
by galadril
Working on nice overlay popups..
That i could also use for notifications...

Re: Dromoticz for Android TV (Leanback)
Posted: Thursday 25 August 2016 11:31
by galadril
DutchHans wrote:Would be great if it works with a Raspberry pi 1, count me in if you need a tester..
It looks like somebody got Android TV installed on a RPi
https://www.youtube.com/watch?v=GjrouKD ... e=youtu.be

Re: RE: Re: Dromoticz for Android TV (Leanback)
Posted: Thursday 25 August 2016 17:06
by dhanjel
galadril wrote:Working on nice overlay popups..
That i could also use for notifications...

Impressive work!
Sent from my Nexus 6P using Tapatalk
Re: Dromoticz for Android TV (Leanback)
Posted: Friday 26 August 2016 14:21
by galadril
Now working on adding the selector functions:
ps, removed the backgrounds for now.. because of some crash reports..
Re: Dromoticz for Android TV (Leanback)
Posted: Saturday 27 August 2016 16:16
by cogliostrio
Ive finally got to try it out, but havent had much luck yet.
At first start I go through the initial setup, and put in my server info. Next screen the tells me my
domoticz server version, and number of devices. I have reinstalled the app as well, and now it reboots
my shield TV when running the app.
domoticz server version is 3.5557, and shield tv is running 6.0
Re: Dromoticz for Android TV (Leanback)
Posted: Sunday 28 August 2016 19:25
by sharif
Hi,
Registered for beta an hour or so ago and was about to install the application from Google Play on my Sony Android TV, however there is a cost associated with it? It this correct, approximately 5 euro?
Re: Dromoticz for Android TV (Leanback)
Posted: Monday 29 August 2016 8:59
by galadril
cogliostrio wrote:At first start I go through the initial setup, and put in my server info. Next screen the tells me my
domoticz server version, and number of devices. I have reinstalled the app as well, and now it reboots
my shield TV when running the app
What's the issue?
Re: Dromoticz for Android TV (Leanback)
Posted: Monday 29 August 2016 9:00
by galadril
sharif wrote:Registered for beta an hour or so ago and was about to install the application from Google Play on my Sony Android TV, however there is a cost associated with it? It this correct, approximately 5 euro?
It's a paid app. I can't make it free during beta and change it later (not allowed in Google Play Store)
Re: Dromoticz for Android TV (Leanback)
Posted: Monday 29 August 2016 9:29
by sharif
galadril wrote:sharif wrote:Registered for beta an hour or so ago and was about to install the application from Google Play on my Sony Android TV, however there is a cost associated with it? It this correct, approximately 5 euro?
It's a paid app. I can't make it free during beta and change it later (not allowed in Google Play Store)
Ok, no worries, just wanted to have it clarified. Thanks for the answer!
Re: Dromoticz for Android TV (Leanback)
Posted: Monday 29 August 2016 15:26
by sharif
Ok just installed it.
My domoticz version in the profile
TV Sony KD-55X8505C
Android TV version 5.1.1 (latest available from Sony)
Domoticz TV version, 0.1.9 (684)
Initial setup goes well and the last message received was that it connected to my domoticz.
It shows the domoticz version and said it found 18 sensors.
After that, it load initially for maybe 1 second (I can see left side of screen blue where "menu" is supposed to be).
Straight after that screen is just black. In upper right corner it says "Domoticz TV" and ocassionally blue loading circle will appear and disappear.
No other content seen on the screen.
Killing the application didn't help, neither did the restarting the TV
Also when you press "back" on the TV remote its suposed to put the active application into "sleep", but this one seems to suddenly re-take focus (while I am at TV start menu)
Basically it feels like a "loop" of some kind and application will finally give up after maybe a minute or so.
tcpdump confirms that TV actually is talking to the domo. I can see Json requests and 200 reply from domo
GET /json.htm?type=devices&filter=all&used=true&favorite=1 HTTP/1.1
Authorization: Basic Og==
User-Agent: Dalvik/2.1.0 (Linux; U; Android 5.1.1; BRAVIA 4K 2015 Build/LMY48E.S243)
Host: 192.168.1.200:8084
Connection: Keep-Alive
Accept-Encoding: gzip
HTTP/1.1 200 OK
Content-Length: 976
Content-Type: application/json;charset=UTF-8
Cache-Control: no-cache
Pragma: no-cache
Access-Control-Allow-Origin: *
Content-Encoding: gzip
Connection: Keep-Alive
Keep-Alive: max=20, timeout=20
Following "GET" requests can be seen from TV to Domo
Code: Select all
=========================================================================================================================================================================
HTTP/Requests:
Topic / Item Count Average Min val Max val Rate (ms) Percent Burst rate Burst start
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
HTTP Requests by HTTP Host 171 0.0060 100% 0.0200 1.249
192.168.1.200:8084 171 0.0060 100.00% 0.0200 1.249
/json.htm?type=scenes 83 0.0029 48.54% 0.0100 0.499
/json.htm?type=devices&filter=all&used=true&favorite=1 88 0.0031 51.46% 0.0100 0.000
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Domo webserver did not return any HTTP "error" codes, 200's all the way
Code: Select all
=======================================================================================================================================
HTTP/Packet Counter:
Topic / Item Count Average Min val Max val Rate (ms) Percent Burst rate Burst start
---------------------------------------------------------------------------------------------------------------------------------------
Total HTTP Packets 342 0.0119 100% 0.0400 1.249
Other HTTP Packets 0 0.0000 0.00% - -
HTTP Response Packets 171 0.0060 50.00% 0.0200 1.259
???: broken 0 0.0000 0.00% - -
5xx: Server Error 0 0.0000 0.00% - -
4xx: Client Error 0 0.0000 0.00% - -
3xx: Redirection 0 0.0000 0.00% - -
2xx: Success 171 0.0060 100.00% 0.0200 1.259
200 OK 171 0.0060 100.00% 0.0200 1.259
1xx: Informational 0 0.0000 0.00% - -
HTTP Request Packets 171 0.0060 50.00% 0.0200 1.249
GET 171 0.0060 100.00% 0.0200 1.249
---------------------------------------------------------------------------------------------------------------------------------------
edit: forgot to add
I can see domo replying back to the TV with some json Object Member Key and in one of those responses I can see it has sent information back about my hardware (controller etc) and also my z-wave sensors, like wallplugs. So at least response back is not empty
Any clues / ideas?
Re: Dromoticz for Android TV (Leanback)
Posted: Monday 29 August 2016 17:32
by galadril
sharif wrote:Ok just installed it.
...
Any clues / ideas?
Is it possible that i get a view-only account for your system? (PM)
Re: Dromoticz for Android TV (Leanback)
Posted: Monday 29 August 2016 19:21
by sharif
ok short update...
The screen was not actually pitch black. As I run with very low brightness due to room conditions, it looked black but it wasn't. It's just the domo tv app that "dimmed". Either way, the result is same, menu is empty.
Just for the kick of it , as I saw that your app is doing json request for Scenes as well (and I don't have any atm), I created a dummy Scene which doesn't do anything. The result was somewhat different. Started the app, circle spinning, same result but on top of this it just hangs my TV completely. Hitting the home button on remote (to take you to android tv dashboard) works, but as soon as I touch any button on remote (like scroll down) all content of the dashboard disappears and only visible thing is google now microphone on top.
Reproduced this 3 times and after that I deleted the Scene from Domo and re-installed the app and now its back to square one. Zero output, but at least I don't need to hard reset the TV every time :p
ps. Is it domoticz installation you need access to? As I have it on shared system and closed off from any internet access I am kind of reluctant opening it up, however we could arrange skype or teamviewer session if you want to take a look
Re: Dromoticz for Android TV (Leanback)
Posted: Tuesday 30 August 2016 7:52
by galadril
sharif wrote:ps. Is it domoticz installation you need access to? As I have it on shared system and closed off from any internet access I am kind of reluctant opening it up, however we could arrange skype or teamviewer session if you want to take a look
Maybe if somebody else has an more open system?
I can debug the program while running against someone else his domoticz system.. than i can step through the code instead of looking at screens

Re: Dromoticz for Android TV (Leanback)
Posted: Tuesday 30 August 2016 9:00
by sharif
galadril wrote:sharif wrote:ps. Is it domoticz installation you need access to? As I have it on shared system and closed off from any internet access I am kind of reluctant opening it up, however we could arrange skype or teamviewer session if you want to take a look
Maybe if somebody else has an more open system?
I can debug the program while running against someone else his domoticz system.. than i can step through the code instead of looking at screens

Ok, so you want to debug your application (at your side) towards my domoticz installation?
If so, just PM me your public IP address you are coming from and I can open up in the firewall specifically for it.
Re: Dromoticz for Android TV (Leanback)
Posted: Tuesday 30 August 2016 10:16
by galadril
sharif wrote:Ok, so you want to debug your application (at your side) towards my domoticz installation?
If so, just PM me your public IP address you are coming from and I can open up in the firewall specifically for it.
I've uploaded a new beta last night also, that will be available within 3 hours...
Please first check if the issue still remains
Re: Dromoticz for Android TV (Leanback)
Posted: Tuesday 30 August 2016 12:49
by sharif
ok new version installed, 0.1.10 (745)
It feels much more civilized (it doesn't hang the TV and if I jump back to home screen it doesn't try to steal the focus)
This time when I start the app, after about 10 seconds it shows the "sad cloud" and message that error has occurred along with the Dismiss button.
ps. I got developer mode activated on TV and ES file explorer...in case you have a logfile that you write to or something like that. In that case let me know the path.
I checked internal storage and there is a folder called domoticz containing 4-5 files Scenes, Dashboard etc
Re: Dromoticz for Android TV (Leanback)
Posted: Wednesday 31 August 2016 8:26
by galadril
sharif wrote:I checked internal storage and there is a folder called domoticz containing 4-5 files Scenes, Dashboard etc
I write cache files, to improve speed

Re: Dromoticz for Android TV (Leanback)
Posted: Wednesday 31 August 2016 10:19
by sharif
That makes sense
Anyway, let me know if you would like to do the remote debug part against my domoticz installation. Just PM me your IP-address and I'll open up at my end
Have a great day