Search found 3 matches
- Thursday 02 March 2017 0:32
- Forum: Blockly
- Topic: Switching Lights on/off with PIR if already on
- Replies: 6
- Views: 2663
Re: Switching Lights on/off with PIR if already on
Ahhh, that was the problem! I now have the below, which I think is right? Not had a chance to test it yet. The idea was that when I walked into the room, the light would turn on and when I walked out, if it was already on it would turn off. What I didn't take into account though, is if someone else ...
- Wednesday 22 February 2017 23:42
- Forum: Blockly
- Topic: Switching Lights on/off with PIR if already on
- Replies: 6
- Views: 2663
Re: Switching Lights on/off with PIR if already on
Thanks for the reply! I've tried popping that in but I get the error 2017-02-22 22:40:39.646 Error: EventSystem: in ce: [string "If [pir = On] and [ceiling = Off] and [var ce..."]:1: ']' expected near '=' Do I need to be defining local variables or something else? I've looked at other examples and ...
- Tuesday 21 February 2017 1:30
- Forum: Blockly
- Topic: Switching Lights on/off with PIR if already on
- Replies: 6
- Views: 2663
Switching Lights on/off with PIR if already on
Hi all, This sensor is my first foray into the IoT world using Mysensors & arduino! I may be being completely dim, but essentially I would like the following to happen: When I walk past the PIR the ceiling light should switch on. If the ceiling light is already on and I walk past, it should switch ...