Well i did get my USB to RS232 convertor installed correctly (bough a compatible one from DX)
But now the ‘fun’ part of actually sending codes over the convertor.
Im going to use it to only switch on my TV and when finished switching it off again.
According to the manual of my tv (LG SL8000) the following must be send:
ka 1 00 [CR]
Where [cr] is Carriage Return ASCII code ‘0x0D’
The serail port configuration is all-ready set according to the manual so that shouldn’t be a problem.
I figured out that you must asign the convertor to a (virtual) device but i just dont get it how to implement the code sending.
Well i did take some time today to try make it work. But every time the engine crashes.
Maybe somebody who is more experience in this can point me in the right direction. Basically i stripped the Panasonic plugin but i dont get it why the engine crashes.
Inidicating it couldn’t find the device declaration file (highlighted), but the device filename you’ve attached (D_LGSL8x00TV.xml) has a different name/case)
So Vera couldn’t find the Device file, and hadn’t [yet] gotten as far as attempting to find the implementation. If you fix up the Filename, or change the D_xxxx filename reference in your existing device to match the filename, then it should get a few steps closer.
Well the file names in the virtual devices are corresponding with the ones attached in the latest post.
And what notepad++ didn’t mention and i just found out when is wanted to open the D file in Firefox was that there was no > in the last line of the file. so the was never closed.
Now the funtion on/off work okay.
Attached is the function D file.
Processing the incoming part is something which i will try to find out when its a raining weekend
Just to add something to this thread, I was testing the files with my LG LV5500 and I had to add a carriage return to the beginning of the “ON” command to make it work. I read in another forum that this was required to “wake” it up so it will accept the ON Command. My OFF command works as you have it written. I’ll test out any other available commands when I get a chance.
Since my initial ‘release’ i didn’t pay much attention to the plugin. Think the big reason is that on/off is the only thing i use. But as my home simulation scene is growing bigger and bigger i think im going to use more function of my TV.
My digital receiver is in no way accessible with rs-232 or Ethernet (according to the manufacture) so i have to work around that problem
I still could use some help in processing incoming and creating json for controlling it with the UI. But first I will add some extra fuctions to the plugin.
I just bought an LG7600 smarttv and it is very slick. However I did take a step back in that my previous led tv used IR so I used GlobalCache’s Wifi2IR blaster to power on my tv, turn on receiver, start DVD player, etc.
With new LG TV it uses RF rather than IR so I can’t turn on TV when i select my “Movie Time” scene. Does anyone know how (wirelessly) to turn on a LG smarttv? If the magic remote can do it then I’m sure it can be done…although their Android app does NOT allow turning on of tv either