Why isn't this working? Between 23:00 and 5:45 the house should be in "night modus". When there is movement in the bathroom, the light should be switched on during this hours. Outside these hours, the light should not react to any movement.
Is it because I had to define the variable "NACHTMODE = AUS"? I had to do so because otherwise eibpc wouldn't compile.
Second (basic and probably stupid) question. Is it correct that I have to write all my code in 1 user program? I cannot write a different user program to handle the web server and a different program to handle other logic. Is it correct that eibPC can only handle 1 user program?
Tx for your support
Ivan
Is it because I had to define the variable "NACHTMODE = AUS"? I had to do so because otherwise eibpc wouldn't compile.
Code:
NACHTMODE = AUS if chtime(23,0,0) and !chtime(5,45,0) then { NACHTMODE = EIN } else { NACHTMODE = AUS } endif if (NACHTMODE==EIN) AND ("Melding_BadkamerBeweging-3/1/10"==EIN) then { write("Switch_Douche-0/2/11",EIN) } endif
Tx for your support
Ivan
Kommentar