From 4206df0a6f0ea9471d2df7d5a0a6650f87633eaa Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 22 May 2024 16:54:06 +0200 Subject: [PATCH] . --- .idea/dataSources.local.xml | 2 +- .idea/workspace.xml | 23 ++++++++--------------- config/dnsmasq.conf | 4 +--- scripts/lib/scenes.php | 11 +++++------ 4 files changed, 15 insertions(+), 25 deletions(-) diff --git a/.idea/dataSources.local.xml b/.idea/dataSources.local.xml index 8eb37db..7f9ba08 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 99c8e25..0b499dd 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,19 +5,10 @@ + - - - - - - - - - + - - diff --git a/config/dnsmasq.conf b/config/dnsmasq.conf index e5ec709..36ce5bb 100644 --- a/config/dnsmasq.conf +++ b/config/dnsmasq.conf @@ -1,8 +1,6 @@ +server=141.94.68.154 server=1.1.1.1 server=8.8.8.8 -server=95.217.229.211 -server=151.80.222.79 -server=192.168.13.1 server=8.8.4.4 server=1.0.0.1 # Freebox diff --git a/scripts/lib/scenes.php b/scripts/lib/scenes.php index 89cbeb0..b1ca4b6 100644 --- a/scripts/lib/scenes.php +++ b/scripts/lib/scenes.php @@ -620,12 +620,11 @@ $scenes = [ ['type' => 'ha', 'device' => HA_OFFICE_SCREEN, 'command' => 'open_cover'], ], 'bureau/rideaux/close' => [ - ['type' => 'function', 'function' => 'bureauRideau', 'args' => ['close_cover']], + ['type' => 'function', 'function' => 'bureauRideau', 'args' => ['turn_off']], ], 'bureau/rideaux/open' => [ - ['type' => 'function', 'function' => 'bureauRideau', 'args' => ['open_cover']], - + ['type' => 'function', 'function' => 'bureauRideau', 'args' => ['turn_on']], ], 'bureau/rideaux/toggle' => [ ['type' => 'function', 'function' => 'bureauRideau', 'args' => ['toggle']], @@ -873,9 +872,9 @@ function welcomeEco() function bureauRideau($cmd) { - if (haGetState('binary_sensor.0x00124b002933744d_contact') == 'on') { - return; - } +// if (haGetState('binary_sensor.0x00124b002933744d_contact') == 'on') { +// return; +// } haAction(HA_OFFICE_CURTAIN, $cmd); } -- 2.39.5