From c3f8a65d5dd175a6a30566dd7c75d1de3c830b64 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sat, 13 Jan 2024 19:56:02 -0500 Subject: [PATCH] Remove function that was rewritten --- second-floor-lighting/upstairs-bathroom/turn-on.js | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 second-floor-lighting/upstairs-bathroom/turn-on.js diff --git a/second-floor-lighting/upstairs-bathroom/turn-on.js b/second-floor-lighting/upstairs-bathroom/turn-on.js deleted file mode 100644 index 60375b2..0000000 --- a/second-floor-lighting/upstairs-bathroom/turn-on.js +++ /dev/null @@ -1,11 +0,0 @@ -const states = global.get('homeassistant.homeAssistant.states') -const lights = states['light.upstairs_bathroom_lights'].state -const lux = states['sensor.upstairs_bathroom_illuminance'].state -const threshold = states['input_number.upstairs_bathroom_lux_threshold'].state - -if (lux <= threshold || lights === 'on') { - node.status({fill:'green',shape:'dot',text:'LightsOn'}) - node.send(msg) -} else { - node.status({fill:'red',shape:'ring',text:'Too bright'}) -} \ No newline at end of file