Skip to content

Turning TV off with source level #16

@rldn21

Description

@rldn21

Hello, how can i get the tv turned off with the source selector input via Domoticz, all the other levels work fine but when i have the "0" level configured with the "self.run("off")" command it does nothing:

In the plugin.py

if Unit == 3: # TV source
if Command == 'Set Level':
if Level == 0:
self.run("off")

if Level == 10:
#_tv.send_req_ircc("AAAAAQAAAAEAAAAAAw==") #TV Num1
self.run("app", "com.webos.app.livetv")
self.GetTVInfo()
if Level == 20:
#_tv.send_req_ircc("AAAAAgAAABoAAABaAw==") #Denon
self.run("app", "com.webos.app.hdmi2")
self.tvPlaying = "HDMI 2"
if Level == 30:
#_tv.send_req_ircc("AAAAAgAAABoAAABbAw==") #Netflix
self.run("app", "netflix")
self.tvPlaying = "Netflix"
if Level == 40:
#_tv.send_req_ircc("AAAAAgAAABoAAABcAw==") #PleX
self.run("app", "cdp-30")
self.tvPlaying = "PleX"
if Level == 50:
#_tv.send_req_ircc("AAAAAgAAABoAAABdAw==") #YouTube
self.run("app", "youtube.leanback.v4")
self.tvPlaying = "YouTube"
if Level == 60:
#_tv.send_req_ircc("AAAAAgAAABoAAAB8Aw==") #Elden Home
self.run("app", "com.itkey.plexclient")
self.tvPlaying = "XPlay"

                self.tvSource = Level
                self.SyncDevices()

Anyone?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions