LUA script for Sony Bravia TV

Moderator: leecollings

Aandegrens
Posts: 23
Joined: Saturday 08 April 2017 19:36
Target OS: Windows
Domoticz version: 2020.2
Location: Netherlands
Contact:

Re: LUA script for Sony Bravia TV

Post by Aandegrens »

Hi,

it almost works. The only thing I can't get working is the etherwake.
Turning the TV of works.
The status of the TV works.

Anyone any ideas?

Gr.
maomanna
Posts: 94
Joined: Monday 30 November 2015 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: LUA script for Sony Bravia TV

Post by maomanna »

Aandegrens wrote:Hi,

it almost works. The only thing I can't get working is the etherwake.
Turning the TV of works.
The status of the TV works.

Anyone any ideas?

Gr.
why don't you use the python plugin?
much easier to setup.
rickwilleme
Posts: 53
Joined: Wednesday 16 December 2015 15:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.6792
Location: Landgraaf, The Netherlands
Contact:

Re: LUA script for Sony Bravia TV

Post by rickwilleme »

For those who would like to control more than just power, here's a big list of other commands you can use:
https://aydbe.com/assets/uploads/2014/11/json.txt

Though, please be aware that not all commands will work on your TV.
For example, I was trying to adjust the volume of the TV, but as I have a AVR connected to it, it doesn't forward the command :roll:

Cheers,
Rick
Raspberry Pi ~ Fibaro Dimmer (Z-Wave) ~ Several KAKU switches and dimmers (433 MHz) ~ Amazon Echo ~ Somfy RTS ~ Sony TV ~ Kodi/XBMC ~ Essent E-Thermostaat (ICY) ~ Cresta thermostat ~ Wundermap Weather ~ Smoke detectors
vgr2
Posts: 71
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: LUA script for Sony Bravia TV

Post by vgr2 »

Did anyone know if there is a command for my integrated Cam in Sony Bravia?
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: LUA script for Sony Bravia TV

Post by G3rard »

rickwilleme wrote:For those who would like to control more than just power, here's a big list of other commands you can use:
https://aydbe.com/assets/uploads/2014/11/json.txt

Though, please be aware that not all commands will work on your TV.
For example, I was trying to adjust the volume of the TV, but as I have a AVR connected to it, it doesn't forward the command :roll:

Cheers,
Rick
I am using the following commands in my Python plugin for volume up and down and that also works with the AVR connected.

Code: Select all

{"name":"VolumeUp","value":"AAAAAQAAAAEAAAASAw=="},{"name":"VolumeDown","value":"AAAAAQAAAAEAAAATAw=="}
Not using Domoticz anymore
Sergio
Posts: 39
Joined: Friday 12 December 2014 13:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9639
Location: Spain
Contact:

Re: LUA script for Sony Bravia TV

Post by Sergio »

Seems that since the last AndroidTV update the TV access is broken.
Does someone has the same problem?

Edit: Well, seems that network autentication configuration changed and I had to re-set the parameters.
All is still working.
timop
Posts: 57
Joined: Sunday 03 January 2016 17:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: LUA script for Sony Bravia TV

Post by timop »

Why these messages from tv lua scripts goes to error log ? I try to comment all print lines but there came strange problem, maybe nothing to do with comments

Code: Select all

2018-03-04 10:25:10.347 Error: EventSystem: Warning!, lua script /home/pi/domoticz/scripts/lua/script_time_tvstatus.lua has been running for more than 10 seconds
2018-03-04 10:28:10.167 Error: EventSystem: Warning!, lua script /home/pi/domoticz/scripts/lua/script_time_tvstatus.lua has been running for more than 10 seconds
2018-03-04 10:45:10.156 Error: EventSystem: Warning!, lua script /home/pi/domoticz/scripts/lua/script_time_tvstatus.lua has been running for more than 10 seconds

Logs quite much I wonder that sd card havent broke yet

Code: Select all

2018-03-04 11:14:00.487 LUA: TV ping success
2018-03-04 11:14:00.588 LUA: TV says it is active
2018-03-04 11:14:00.588 LUA: TV active, status is ON, so do nothing.
2018-03-04 11:15:00.141 LUA: TV ping success
2018-03-04 11:15:00.240 LUA: TV says it is active
2018-03-04 11:15:00.240 LUA: TV active, status is ON, so do nothing.
2018-03-04 11:16:00.290 LUA: TV ping success
2018-03-04 11:16:00.390 LUA: TV says it is active
2018-03-04 11:16:00.391 LUA: TV active, status is ON, so do nothing.
2018-03-04 11:17:00.441 LUA: TV ping success
2018-03-04 11:17:00.544 LUA: TV says it is active
2018-03-04 11:17:00.545 LUA: TV active, status is ON, so do nothing.
2018-03-04 11:18:00.092 LUA: TV ping success
2018-03-04 11:18:00.195 LUA: TV says it is active
2018-03-04 11:18:00.195 LUA: TV active, status is ON, so do nothing.
2018-03-04 11:19:00.240 LUA: TV ping success
2018-03-04 11:19:00.342 LUA: TV says it is active
2018-03-04 11:19:00.342 LUA: TV active, status is ON, so do nothing.
2018-03-04 11:20:00.387 LUA: TV ping success
2018-03-04 11:20:00.485 LUA: TV says it is active
2018-03-04 11:20:00.486 LUA: TV active, status is ON, so do nothing.
2018-03-04 11:21:00.031 LUA: TV ping success
2018-03-04 11:21:00.131 LUA: TV says it is active
2018-03-04 11:21:00.131 LUA: TV active, status is ON, so do nothing.
2018-03-04 11:22:00.175 LUA: TV ping success
2018-03-04 11:22:00.273 LUA: TV says it is active
2018-03-04 11:22:00.273 LUA: TV active, status is ON, so do nothing.
2018-03-04 11:23:00.319 LUA: TV ping success
2018-03-04 11:23:00.417 LUA: TV says it is active
2018-03-04 11:23:00.417 LUA: TV active, status is ON, so do nothing.
2018-03-04 11:24:00.471 LUA: TV ping success
2018-03-04 11:24:00.572 LUA: TV says it is active
2018-03-04 11:24:00.572 LUA: TV active, status is ON, so do nothing.
2018-03-04 11:25:00.245 LUA: TV ping success
2018-03-04 11:25:00.348 LUA: TV says it is active
2018-03-04 11:25:00.348 LUA: TV active, status is ON, so do nothing.
2018-03-04 11:26:00.393 LUA: TV ping success
2018-03-04 11:26:00.500 LUA: TV says it is active
2018-03-04 11:26:00.500 LUA: TV active, status is ON, so do nothing.
vorchikhin
Posts: 1
Joined: Sunday 20 May 2018 21:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: LUA script for Sony Bravia TV

Post by vorchikhin »

Hello! I have difficulties how to Create a user variable (integer) named "TVOnlyStatusUpdate", with value 0
I created a Dummy switch but can't find user variable.
Mayby someone can explain how?
My switch turn off the TV but did'nt turn on looks like the script works on my TV but unfortunately I still stupid to find how to create a user variable (integer) named "TVOnlyStatusUpdate", with value 0((
GiovanniG
Posts: 5
Joined: Sunday 24 February 2019 0:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: LUA script for Sony Bravia TV

Post by GiovanniG »

Hi! Someone knows how to open Youtube app and visualize a Youtube video?
To open just Youtube is useless..
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests