Panasonic TV Support

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

sijones
Posts: 70
Joined: Wednesday 15 October 2014 14:16
Target OS: Linux
Domoticz version: Git
Location: UK
Contact:

Panasonic TV Support

Post by sijones »

Hi all,

In the latest beta v2.4299 you'll find support for Panasonic Viera TV's.

How to use is in the wiki: http://www.domoticz.com/wiki/Panasonic_TV

The fix for turning off is currently in the queue for merging, so please note this won't work until after the latest merge. Merged :D
Last edited by sijones on Monday 25 January 2016 9:40, edited 2 times in total.
Thomasdc
Posts: 133
Joined: Wednesday 11 March 2015 19:13
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Panasonic TV Support

Post by Thomasdc »

great! thanks!
User avatar
C4rtm4N
Posts: 49
Joined: Saturday 07 February 2015 21:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: UK
Contact:

Re: Panasonic TV Support

Post by C4rtm4N »

This is great!

I had previously been using a script to turn my TV off but native support & the extra functions are really appreciated. Clearly many Vieras don't have wake on LAN but there is a way that this can be achieved for some of us if someone is clever enough to be able to code things.

My TV has a Sky HD box connected via HDMI & if the Sky box is turned on it will send the wake command to the TV (& connected soundbar) hence a great substitute for wake on LAN :) The problem is that Sky are terrible about letting people into the secrets of controlling their equipment over IP. There was a discussion here http://www.domoticz.com/forum/viewtopic ... +hd#p62783 a few months ago but Lee gave up & I never managed to get the script mentioned running on my pi.

Someone with a bit more knowledge could hopefully do something similar to the Panasonic thing & get some native support sorted out in Domoticz. In the UK there are literally millions of Sky boxes so support could enable many people to turn their TVs on remotely even if there is no IP control.
sijones
Posts: 70
Joined: Wednesday 15 October 2014 14:16
Target OS: Linux
Domoticz version: Git
Location: UK
Contact:

Re: Panasonic TV Support

Post by sijones »

C4rtm4N wrote:This is great!
Thank you
C4rtm4N wrote:I had previously been using a script to turn my TV off but native support & the extra functions are really appreciated. Clearly many Vieras don't have wake on LAN but there is a way that this can be achieved for some of us if someone is clever enough to be able to code things.
Sorry am not clever enough to code things, the 1700 lines of code for the Panasonic support was written by fairies and they told me it was really easy.
C4rtm4N wrote:Someone with a bit more knowledge could hopefully do something similar to the Panasonic thing & get some native support sorted out in Domoticz. In the UK there are literally millions of Sky boxes so support could enable many people to turn their TVs on remotely even if there is no IP control.
And how many of the millions of sky users will actually be using Domoticz in their home? What does this have to do with the price of cheese? I don't have a sky box so I have no interest in writing support for it.

Thanks for making me feel insulted for not completely doing everything for you.
sijones
Posts: 70
Joined: Wednesday 15 October 2014 14:16
Target OS: Linux
Domoticz version: Git
Location: UK
Contact:

Re: Panasonic TV Support

Post by sijones »

C4rtm4N wrote:Someone with a bit more knowledge could hopefully do something similar to the Panasonic thing & get some native support sorted out in Domoticz. In the UK there are literally millions of Sky boxes so support could enable many people to turn their TVs on remotely even if there is no IP control.
I've checked the Sky API, and in actual fact my Panasonic code would work quite well and there isn't a lot to change, all you need to do is alter the commands sent, and the functions BuildXMLStringNetCtl and BuildXMLStringRendCtl that build the xml data to be sent, then alter the UI and all the usual domoticz stuff to create the plugin and you're good to go.

Good luck!
User avatar
leecollings
Posts: 167
Joined: Tuesday 30 June 2015 18:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: United Kingdom
Contact:

Re: Panasonic TV Support

Post by leecollings »

Can you post some details of the Sky API you mentioned? Is this provided by Sky themselves?


Sent from my iPhone using Tapatalk
sijones
Posts: 70
Joined: Wednesday 15 October 2014 14:16
Target OS: Linux
Domoticz version: Git
Location: UK
Contact:

Re: Panasonic TV Support

Post by sijones »

leecollings wrote:Can you post some details of the Sky API you mentioned? Is this provided by Sky themselves?
Nope, it's research on the web looking at how other projects have implemented it.
User avatar
C4rtm4N
Posts: 49
Joined: Saturday 07 February 2015 21:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: UK
Contact:

Re: Panasonic TV Support

Post by C4rtm4N »

sijones wrote:Thanks for making me feel insulted for not completely doing everything for you.
My reply was in no way meant to insult you. I should have added my thoughts regarding Sky to a different thread as it wasn't directly related to the Panasonic development, I just thought that there could be interest from others as many TVs lack WOL functionality & IP controllable set top boxes are a different way to achieve this. I wasn't meaning that you should have done it or indeed even looked at it but your subsequent comments about similarities are interesting.

The code to fully integrate with Domoticz is beyond my level of expertise I'm afraid - I may have another go in a month or so when I have some spare time but my last efforts did not end well & I chose to keep my various scripts running on timers instead.
sijones
Posts: 70
Joined: Wednesday 15 October 2014 14:16
Target OS: Linux
Domoticz version: Git
Location: UK
Contact:

Re: Panasonic TV Support

Post by sijones »

Thank you for your apology.

Are you using a script to turn the sky box on? if you are send it to me and when i have some time i'll look at it.
User avatar
C4rtm4N
Posts: 49
Joined: Saturday 07 February 2015 21:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: UK
Contact:

Re: Panasonic TV Support

Post by C4rtm4N »

Thanks but I couldn't even get the Sky control from https://github.com/dalhundal/sky-plus-hd working as I couldn't get node.js to install properly on my pi despite hours of trying :(

Lee had some help & got so far but it was never finished & would have required a separate daemon to constantly run anyway. He dumped it here https://drive.google.com/folderview?id= ... sp=sharing). I believe that previously he had a basic python script that he managed to get some functionality out of but had been advised to go down the route of using dalhundal's work.

My attempt at full integration with Domoticz was to link things up to my alarm system but I realised that the python scripts I had written to do proof of concept were actually far easier hence me sticking with them.
mk1dhg
Posts: 2
Joined: Tuesday 08 September 2015 22:41
Target OS: Linux
Domoticz version:
Contact:

Re: Panasonic TV Support

Post by mk1dhg »

It seems that the remote control will not display.
Nothing happens when I click on the remote icon. I'm running Domoticz build 2.4426 on debian jessie.
sijones
Posts: 70
Joined: Wednesday 15 October 2014 14:16
Target OS: Linux
Domoticz version: Git
Location: UK
Contact:

Re: Panasonic TV Support

Post by sijones »

mk1dhg wrote:It seems that the remote control will not display.
Nothing happens when I click on the remote icon. I'm running Domoticz build 2.4426 on debian jessie.
Which browser are you using?

I just noticed this evening that in Chrome it's not working but does on Firefox...
sijones
Posts: 70
Joined: Wednesday 15 October 2014 14:16
Target OS: Linux
Domoticz version: Git
Location: UK
Contact:

Re: Panasonic TV Support

Post by sijones »

Found the problem, my changes to domoticz.js file have been lost, think an old version has been checked in when it was lost.
mk1dhg
Posts: 2
Joined: Tuesday 08 September 2015 22:41
Target OS: Linux
Domoticz version:
Contact:

Re: Panasonic TV Support

Post by mk1dhg »

i am using chrome
sijones
Posts: 70
Joined: Wednesday 15 October 2014 14:16
Target OS: Linux
Domoticz version: Git
Location: UK
Contact:

Re: Panasonic TV Support

Post by sijones »

Found and fixed, just got to wait for a merge to be done.
User avatar
deejc
Posts: 168
Joined: Tuesday 22 September 2015 18:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5641
Location: UK
Contact:

Re: Panasonic TV Support

Post by deejc »

Hello
I have a TX-48AX630B that I can control with curl etc and I can use your plugin to get it to switch off but all the other functions do not work.
Is there any trouble shooting I can do ?

i get this in the log on an Off command, but nothing else on any button press.

2016-02-11 19:10:57.379 User: Admin initiated a switch command
2016-02-11 19:10:57.396 (TV) Lighting 2 (TV)
2016-02-11 19:10:58.825 Panasonic: (TV) Event: 'Off'.
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
sijones
Posts: 70
Joined: Wednesday 15 October 2014 14:16
Target OS: Linux
Domoticz version: Git
Location: UK
Contact:

Re: Panasonic TV Support

Post by sijones »

Try putting a - before the port number, this will enable debugging mode and see what you get when you press a remote button.

Sent from my E6553 using Tapatalk
User avatar
deejc
Posts: 168
Joined: Tuesday 22 September 2015 18:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5641
Location: UK
Contact:

Re: Panasonic TV Support

Post by deejc »

thanks, this is what i get after i press up and down

Code: Select all

'.
2016-02-11 20:25:54.866 Panasonic Plugin: (TV) Connected to '172.16.30.13:55000'.
2016-02-11 20:25:54.867 Panasonic Plugin: (TV) Connected.'.
2016-02-11 20:25:54.867 Panasonic Plugin: (TV) Attemping write.'.
2016-02-11 20:25:54.867 Panasonic Plugin: (TV) Attemping read.'.
2016-02-11 20:25:55.268 (Youless) YouLess Meter (Youless)
2016-02-11 20:25:59.875 Panasonic Plugin: (TV) Handling message: 'POST /dmr/control_0 HTTP/1.1 
Host: 172.16.30.13:-55000 
SOAPACTION: "urn:schemas-upnp-org:service:RenderingControl:1#GetVolume" 
Content-Type: text/xml; charset="utf-8" 
Content-Length: 379 





0 
Master 




'.
2016-02-11 20:25:59.882 Panasonic Plugin: (TV) Connected to '172.16.30.13:55000'.
2016-02-11 20:25:59.882 Panasonic Plugin: (TV) Connected.'.
2016-02-11 20:25:59.882 Panasonic Plugin: (TV) Attemping write.'.
2016-02-11 20:25:59.883 Panasonic Plugin: (TV) Attemping read.'.
2016-02-11 20:26:04.894 Panasonic Plugin: (TV) Handling message: 'POST /dmr/control_0 HTTP/1.1 
Host: 172.16.30.13:-55000 
SOAPACTION: "urn:schemas-upnp-org:service:RenderingControl:1#GetVolume" 
Content-Type: text/xml; charset="utf-8" 
Content-Length: 379 





0 
Master 




'.
2016-02-11 20:26:04.902 Panasonic Plugin: (TV) Connected to '172.16.30.13:55000'.
2016-02-11 20:26:04.902 Panasonic Plugin: (TV) Connected.'.
2016-02-11 20:26:04.902 Panasonic Plugin: (TV) Attemping write.'.
2016-02-11 20:26:04.903 Panasonic Plugin: (TV) Attemping read.'.
2016-02-11 20:26:05.292 (Youless) YouLess Meter (Youless)
2016-02-11 20:26:07.980 Hardware Monitor: Fetching data (System sensors)
2016-02-11 20:26:09.915 Panasonic Plugin: (TV) Handling message: 'POST /dmr/control_0 HTTP/1.1 
Host: 172.16.30.13:-55000 
SOAPACTION: "urn:schemas-upnp-org:service:RenderingControl:1#GetVolume" 
Content-Type: text/xml; charset="utf-8" 
Content-Length: 379 





0 
Master 




'.
2016-02-11 20:26:09.922 Panasonic Plugin: (TV) Connected to '172.16.30.13:55000'.
2016-02-11 20:26:09.922 Panasonic Plugin: (TV) Connected.'.
2016-02-11 20:26:09.922 Panasonic Plugin: (TV) Attemping write.'.
2016-02-11 20:26:09.922 Panasonic Plugin: (TV) Attemping read.'.
2016-02-11 20:26:14.929 Panasonic Plugin: (TV) Handling message: 'POST /dmr/control_0 HTTP/1.1 
Host: 172.16.30.13:-55000 
SOAPACTION: "urn:schemas-upnp-org:service:RenderingControl:1#GetVolume" 
Content-Type: text/xml; charset="utf-8" 
Content-Length: 379 





0 
Master 




'.
2016-02-11 20:26:14.936 Panasonic Plugin: (TV) Connected to '172.16.30.13:55000'.
2016-02-11 20:26:14.937 Panasonic Plugin: (TV) Connected.'.
2016-02-11 20:26:14.937 Panasonic Plugin: (TV) Attemping write.'.
2016-02-11 20:26:14.937 Panasonic Plugin: (TV) Attemping read.'.
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
sijones
Posts: 70
Joined: Wednesday 15 October 2014 14:16
Target OS: Linux
Domoticz version: Git
Location: UK
Contact:

Re: Panasonic TV Support

Post by sijones »

Doesn't look like commands are being received by the plugin from the ui, I'll take a look when am back home, currently am away.


Sent from my E6553 using Tapatalk
User avatar
deejc
Posts: 168
Joined: Tuesday 22 September 2015 18:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5641
Location: UK
Contact:

Re: Panasonic TV Support

Post by deejc »

ok thanks, i have tried both chrome and safari (latest) on mac osx and safari on ios, just to be sure ;)
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests