piccap: Piccap autstart does not work

Hi, first of all: thanks everyone who contributed to this project. 😃

I have an issues with autostart on my TV:

    "board_type": "O18_DVB",
    "hardware_id": "HE_DTV_W18O_AFABABAA",
    "product_id": "OLED65C8LLA",
    "core_os_release": "4.4.0-9",
    "webos_manufacturing_version": "05.40.09",

using piccap version 2.3

When I turn on the TV, background lit up, but stays on white color. I need to go into Piccap and stop & start service to have connection to the hyperion server. then it works fine. Any Idea why it does not work automatically?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 28 (5 by maintainers)

Most upvoted comments

I investigated a workaround to autostart the capture service without rebooting the tv or disabling the quick start. I used home assistant to turn off and on the capture service once the tv turned on. If someone is interested in it … Don’t know if this is the right place for this.

yes i am interested in can you post it ?

  1. Enable SSH access on your tv.
  2. Place your public key on your tv for connecting via ssh without password
  3. Create the following script in /home/root on your tv:
root@LGwebOSTV:~# cat my-piccap-service.sh
#!/bin/bash

set -e
luna-send -d -n 1 "luna://org.webosbrew.piccap.service/$1" "{ \"method\": \"$1\"}" &
  1. Create a shell command in home assistant (configuration.yaml). You have to change the path to your private key (im using docker and had to mount my key in the home assistant container):
shell_command:
  piccap_capture_service: 'ssh -i "/config/.ssh/id_rsa" -o "StrictHostKeyChecking=no" root@<your-tv-ip> "bash my-piccap-service.sh {{ command }}"'
  1. Create an automation which triggers when your tv turns on:
- service: shell_command.piccap_capture_service
  data:
    command: stop
- delay:
    hours: 0
    minutes: 0
    seconds: 5
    milliseconds: 0
- service: shell_command.piccap_capture_service
  data:
    command: start

I don’t know if its necessary to stop the service first. But it works. And I dont know why the luna command has to be launched as a background service (&). But without the command gets not executed.

I investigated a workaround to autostart the capture service without rebooting the tv or disabling the quick start. I used home assistant to turn off and on the capture service once the tv turned on. If someone is interested in it … Don’t know if this is the right place for this.

@TBSniller thank you. issues opened here -> #https://github.com/webosbrew/hyperion-webos/issues/95

for everyone who has the same issue. I know that there are at least 2 ppl with the same issue