Open rldn21 opened 5 years ago
Does it work when you turn it off with the "Status" device?
Does it work when you turn it off with the "Status" device?
Yes that works fine, but i want to turn the tv off with the selector level...
Have you tried adding "Off" as the last item in the list, as value 70? I'm not sure if 0 works as a value. "Off doesn't even show up in my selector, even though it's specified in the list.
Have you tried adding "Off" as the last item in the list, as value 70? I'm not sure if 0 works as a value. "Off doesn't even show up in my selector, even though it's specified in the list.
When debugging via Domoticz log, the selector sends a parameter "Off" when selecting Level 0/Off.
So i added a level 70 to the selector within Domoticz and within plugin.py added to the level selectors:
if Level == 70: self.run("off")#_tv.turn_off() self.tvPlaying = "Turned off TV"
When selecting the new Level 70 ("Off"), it sends correctly a parameter "Select Level" - 70 instead of parameter "Off" and it works perfectly like this (see Domoticz Log).
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
Anyone?