Domoticz for Android TV (Leanback)

Moderator: leecollings

User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Dromoticz for Android TV (Leanback)

Post 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..
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Dromoticz for Android TV (Leanback)

Post 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...
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Dromoticz for Android TV (Leanback)

Post by galadril »

Working on nice overlay popups..
That i could also use for notifications... :lol:

Image
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Dromoticz for Android TV (Leanback)

Post 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

:D
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
dhanjel
Posts: 102
Joined: Tuesday 05 August 2014 22:16
Target OS: Linux
Domoticz version: 3.5146
Location: Sweden
Contact:

Re: RE: Re: Dromoticz for Android TV (Leanback)

Post by dhanjel »

galadril wrote:Working on nice overlay popups..
That i could also use for notifications... Image

Image
Impressive work!

Sent from my Nexus 6P using Tapatalk
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Dromoticz for Android TV (Leanback)

Post by galadril »

Now working on adding the selector functions:

Image

ps, removed the backgrounds for now.. because of some crash reports..
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
cogliostrio
Posts: 77
Joined: Sunday 06 September 2015 11:58
Target OS: Linux
Domoticz version:
Contact:

Re: Dromoticz for Android TV (Leanback)

Post 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
sharif
Posts: 17
Joined: Sunday 28 August 2016 17:48
Target OS: NAS (Synology & others)
Domoticz version: 3.5574
Location: Sweden
Contact:

Re: Dromoticz for Android TV (Leanback)

Post 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?
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Dromoticz for Android TV (Leanback)

Post 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?
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Dromoticz for Android TV (Leanback)

Post 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)
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
sharif
Posts: 17
Joined: Sunday 28 August 2016 17:48
Target OS: NAS (Synology & others)
Domoticz version: 3.5574
Location: Sweden
Contact:

Re: Dromoticz for Android TV (Leanback)

Post 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!
sharif
Posts: 17
Joined: Sunday 28 August 2016 17:48
Target OS: NAS (Synology & others)
Domoticz version: 3.5574
Location: Sweden
Contact:

Re: Dromoticz for Android TV (Leanback)

Post 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?
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Dromoticz for Android TV (Leanback)

Post 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)
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
sharif
Posts: 17
Joined: Sunday 28 August 2016 17:48
Target OS: NAS (Synology & others)
Domoticz version: 3.5574
Location: Sweden
Contact:

Re: Dromoticz for Android TV (Leanback)

Post 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
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Dromoticz for Android TV (Leanback)

Post 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 :-)
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
sharif
Posts: 17
Joined: Sunday 28 August 2016 17:48
Target OS: NAS (Synology & others)
Domoticz version: 3.5574
Location: Sweden
Contact:

Re: Dromoticz for Android TV (Leanback)

Post 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.
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Dromoticz for Android TV (Leanback)

Post 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
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
sharif
Posts: 17
Joined: Sunday 28 August 2016 17:48
Target OS: NAS (Synology & others)
Domoticz version: 3.5574
Location: Sweden
Contact:

Re: Dromoticz for Android TV (Leanback)

Post 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
User avatar
galadril
Posts: 828
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Dromoticz for Android TV (Leanback)

Post 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 :)
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
sharif
Posts: 17
Joined: Sunday 28 August 2016 17:48
Target OS: NAS (Synology & others)
Domoticz version: 3.5574
Location: Sweden
Contact:

Re: Dromoticz for Android TV (Leanback)

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests