Logic Machine Forum
Chromecast controls the TV - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Chromecast controls the TV (/showthread.php?tid=1655)



Chromecast controls the TV - Kai-Roger - 16.10.2018

Hi.

Is i possible to use the LM to turn on and of the TV via Chromecast?

It is possible to talk to the Google Home, and  to turn on and of the TV that way, but i want to control this by triggering a group adress on the KNX bus.

BR
Kai-Roger


RE: Chromecast controls the TV - edgars - 16.10.2018

there is Erwin's script available following this link:
https://forum.logicmachine.net/showthread.php?tid=344&pid=1729#pid1729


RE: Chromecast controls the TV - Kai-Roger - 16.10.2018

Is this supposted to be copy paste to event-based scripting and a group address with 1 byte unsigned integer?

I have changed to the right ip adress for my chromecast in the script, but when i send a 1 or 2 or 3 to the script, nothing happens.

Is there somthing else i have to do to make this respond?


RE: Chromecast controls the TV - Daniel - 16.10.2018

Yes it should be event script but don't wait for your TV to switch on only check what is changing on it. CEC is very badly implemented standard and it won't work on every devices.


Chromecast controls the TV - Kai-Roger - 16.10.2018

When i send
1 YouTube should start
2 YouTube should stop
3 Chromecast should go to startscreen

No one og these numbers work. I can't see why it is not working, sine i have not changed anything om the script else than the IP adress of the Chromecast.

BR
Kai-Roger


RE: Chromecast controls the TV - Daniel - 16.10.2018

I just tried it and command 1 plays nice SE YT video, 2 deletes it but 3 doesn't work. Chromecast says URL not found. Maybe you don't use correct IP ? I have 2 chromecasts and had to find the correct one.


RE: Chromecast controls the TV - Kai-Roger - 16.10.2018

This is quite embarrassing. I did only change the last number in the scrips default IP address, and the second last number had an ekstra zero that i did not see.

192.168.10.xx default
192.168.1.xx mine

Big Grin

Now the number 1 and number 2 works, and the number 3 reports an error url like you said.
Cool  Cool


RE: Chromecast controls the TV - DGrandes - 02.11.2018

Hi,

Is there any way to turn of the tv?

Values 1, 2 and 3 work perfectly, and turn on the Tv. But I want to turn of with my sleep scene. It is posible?

Thanks