Page 1 of 4
Panasonic TV Support
Posted: Sunday 24 January 2016 20:53
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

Re: Panasonic TV Support
Posted: Sunday 24 January 2016 21:09
by Thomasdc
great! thanks!
Re: Panasonic TV Support
Posted: Tuesday 26 January 2016 20:00
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.
Re: Panasonic TV Support
Posted: Friday 29 January 2016 12:44
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.
Re: Panasonic TV Support
Posted: Friday 29 January 2016 21:30
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!
Re: Panasonic TV Support
Posted: Saturday 30 January 2016 6:22
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
Re: Panasonic TV Support
Posted: Saturday 30 January 2016 12:54
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.
Re: Panasonic TV Support
Posted: Wednesday 03 February 2016 10:42
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.
Re: Panasonic TV Support
Posted: Wednesday 03 February 2016 12:08
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.
Re: Panasonic TV Support
Posted: Wednesday 03 February 2016 15:37
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.
Re: Panasonic TV Support
Posted: Friday 05 February 2016 20:38
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.
Re: Panasonic TV Support
Posted: Friday 05 February 2016 20:42
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...
Re: Panasonic TV Support
Posted: Friday 05 February 2016 20:55
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.
Re: Panasonic TV Support
Posted: Friday 05 February 2016 21:01
by mk1dhg
i am using chrome
Re: Panasonic TV Support
Posted: Friday 05 February 2016 21:14
by sijones
Found and fixed, just got to wait for a merge to be done.
Re: Panasonic TV Support
Posted: Thursday 11 February 2016 20:20
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'.
Re: Panasonic TV Support
Posted: Thursday 11 February 2016 20:49
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
Re: Panasonic TV Support
Posted: Thursday 11 February 2016 21:27
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.'.
Re: Panasonic TV Support
Posted: Thursday 11 February 2016 21:29
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
Re: Panasonic TV Support
Posted: Thursday 11 February 2016 21:31
by deejc
ok thanks, i have tried both chrome and safari (latest) on mac osx and safari on ios, just to be sure
