From: Vincent Vanwaelscappel Date: Fri, 28 Mar 2025 09:55:16 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=75f3dfdd5ce34838614aa6a24235538b629c23ce;p=tortuga-home.git . --- diff --git a/.idea/dataSources.local.xml b/.idea/dataSources.local.xml index 7d7c6e4..27a78a5 100644 --- a/.idea/dataSources.local.xml +++ b/.idea/dataSources.local.xml @@ -1,6 +1,6 @@ - + " diff --git a/.idea/workspace.xml b/.idea/workspace.xml index b023d9b..2fef348 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,11 +5,9 @@ - - - + diff --git a/scripts/lib/denon.php b/scripts/lib/denon.php index 5e804c7..b6dba97 100644 --- a/scripts/lib/denon.php +++ b/scripts/lib/denon.php @@ -188,10 +188,9 @@ function epson($on = true, $force = false) if (!$force && $currentState === $on) { return; } - $cmd = $on ? 'PowerOn' : 'PowerOff'; - echo 'Epson ' . $cmd . "\n"; - print_r(irsend('salon', 'Epson', $cmd)); - //sshCommand('/usr/local/bin/ir Epson ' . $cmd, 'salon', false, true); + + echo 'Epson ' . $on . "\n"; + print_r(haAction('switch.projecteur_epson_eh_tw6700', $on ? 'turn_on' : 'turn_off')); setState('EpsonPowerState', $on ? '1' : '0'); if ($currentState !== $on && $on) { sleep(30);