# LS2 API com.service.cec - HDMI cec control

**URL:** <https://forum.webostv.developer.lge.com/t/ls2-api-com-service-cec-hdmi-cec-control/26491>\
**Category:** Web App Development\
**Created:** [June 13, 2025, 4:37am UTC](https://forum.webostv.developer.lge.com/t/ls2-api-com-service-cec-hdmi-cec-control/26491 "2025-06-13T04:37:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![user1895](https://avatars.discourse-cdn.com/v4/letter/u/ed8c4c/32.png) [@user1895](https://forum.webostv.developer.lge.com/u/user1895)\
**Post date:** [June 13, 2025, 4:37am UTC](https://forum.webostv.developer.lge.com/t/ls2-api-com-service-cec-hdmi-cec-control/26491/1 "2025-06-13T04:37:00Z")

</div>

Hi,

My TV is:

modelName : OLED77C3PSA  
sdkVersion : 9.2.1  
firmwareVersion : 23.20.69  
boardType : O22N\_ATSC\_BR  
otaId : HE\_DTV\_W23O\_AFABATAA

I need to select specific device connected in HDMI2 (playstation 5, Nintendo Switch and ps3 are connected in a receiver and the receiver is connected to TV via hdmi2). In tv screen input all of then appears on hdmi2 (but separeted with each name).

Searching the internet I found this webos API that i think will do what I want.  
But when i call it with

service.call(“luna://com.service.cec/listAdapters”, {},…

the response says it does not exist.

The api is:  
com.service.cec and is documented here:

> **[com.webos.service.cec](https://www.webosose.org/docs/reference/ls2-api/com-webos-service-cec/)**
>
> Note This API has been available since API level 17. API Summary The CEC (Consumer Electronic Control) service allows webOS to control connected HDMI CEC devices.
> Overview of the API HDMI-CEC is a feature of HDMI which allows to command and...

How can I access it?

---

<div class="post-metadata">

**Author:** ![narae0.kim](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@narae0.kim](https://forum.webostv.developer.lge.com/u/narae0.kim)\
**Post date:** [June 13, 2025, 4:46am UTC](https://forum.webostv.developer.lge.com/t/ls2-api-com-service-cec-hdmi-cec-control/26491/2 "2025-06-13T04:46:44Z")

</div>

We do not guarantee the compatibility of webOS TV apps with webOS OSE resources. For webOS TV apps, please use webOS TV resources in this website only. Thank you.

---

<div class="post-metadata">

**Author:** ![user1895](https://avatars.discourse-cdn.com/v4/letter/u/ed8c4c/32.png) [@user1895](https://forum.webostv.developer.lge.com/u/user1895)\
**Post date:** [June 16, 2025, 7:26am UTC](https://forum.webostv.developer.lge.com/t/ls2-api-com-service-cec-hdmi-cec-control/26491/3 "2025-06-16T07:26:04Z")

</div>

Thanks narae.  
I now understand that in my tv runs another set of API.

Now I am confused about the purpose of the WebOS OSE. What are the products it run? Newer LG Tvs?

---

<div class="post-metadata">

**Author:** ![narae0.kim](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@narae0.kim](https://forum.webostv.developer.lge.com/u/narae0.kim)\
**Post date:** [June 16, 2025, 7:28am UTC](https://forum.webostv.developer.lge.com/t/ls2-api-com-service-cec-hdmi-cec-control/26491/4 "2025-06-16T07:28:41Z")

</div>

webOS OSE is the open source project of webOS. Thank you.
