Step by step guide: switch on and off tv via cec

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.

Moderator: leecollings

QSKONE
Posts: 38
Joined: Monday 12 February 2018 12:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Step by step guide: switch on and off tv via cec

Post by QSKONE »

Can you help me? Need more details to point 7. I don't know how add switch to System Alive Checker without ip address.
Holland
Posts: 179
Joined: Friday 12 July 2013 13:53
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta Ch
Location: The Netherlands
Contact:

Re: Step by step guide: switch on and off tv via cec

Post by Holland »

I do not understand your question. You can't have a System Alive Checker without an IP address. See below
Capture.JPG
Capture.JPG (69.65 KiB) Viewed 3561 times
QSKONE
Posts: 38
Joined: Monday 12 February 2018 12:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Step by step guide: switch on and off tv via cec

Post by QSKONE »

Sorry,lost in translation .
7. Make the system alive checker sub/slave device (wk.tv.local system alive) of the TV Woonkamer switch.
Holland
Posts: 179
Joined: Friday 12 July 2013 13:53
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta Ch
Location: The Netherlands
Contact:

Re: Step by step guide: switch on and off tv via cec

Post by Holland »

Regarding stap 7

See attached, add the alive checker device in the properties screen of the main TV switch, created in step 4
Knipsel.JPG
Knipsel.JPG (209.68 KiB) Viewed 3541 times
QSKONE
Posts: 38
Joined: Monday 12 February 2018 12:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Step by step guide: switch on and off tv via cec

Post by QSKONE »

Thanks mate. Works but bad, my Philips 7er is ...
vulbas
Posts: 37
Joined: Tuesday 20 February 2018 17:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Step by step guide: switch on and off tv via cec

Post by vulbas »

thx holland,
that work very well on my tv LG 65SJ850V.
nono212
Posts: 39
Joined: Sunday 18 December 2016 13:47
Target OS: Linux
Domoticz version: 3.6179
Contact:

Re: Step by step guide: switch on and off tv via cec

Post by nono212 »

Hello
Can we do only on off on cec ... or we can change channel ?
Holland
Posts: 179
Joined: Friday 12 July 2013 13:53
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta Ch
Location: The Netherlands
Contact:

Re: Step by step guide: switch on and off tv via cec

Post by Holland »

Updated the guide as the cec-client wouldn't compile anymore.

Now based on Stretch and libcec 4.04.

Enjoy
gromar
Posts: 1
Joined: Wednesday 20 March 2019 19:43
Target OS: -
Domoticz version:
Contact:

Re: Step by step guide: switch on and off tv via cec

Post by gromar »

I'm almost there ... I guess :P

I made everything from the tutorial mentioned in first post but I wonder about IP example addresses on the pics:

one is the TV ip adress and what's the second one in the dummy switches?

Thanks in advance for any info! :)
nigels0
Posts: 221
Joined: Thursday 23 January 2014 12:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Re: Step by step guide: switch on and off tv via cec

Post by nigels0 »

I do this by using a HDMI CEC injector from Pulese Eight.

https://www.pulse-eight.com/p/104/usb-hdmi-cec-adapter

It is connected via usb, so simplifies the whole issue. You can issue the on/off commands from the raspberry without additional devices.
Holland
Posts: 179
Joined: Friday 12 July 2013 13:53
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta Ch
Location: The Netherlands
Contact:

Re: Step by step guide: switch on and off tv via cec

Post by Holland »

@gromar

First ip is the ip of the raspberry where the cec deamon is running

Second ip, is for the raspberry which runs the main domoticz installation, so it points to itself.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests