After a bit of trying around I found the bigtimer suits the best.
But I couldn't get it running without some function nodes:
[{"id":"b628e0d0.36176","type":"tab","label":"Flurlicht","disabled":false,"info":""},{"id":"da4683b1.3e11c","type":"bigtimer","z":"b628e0d0.36176","outtopic":"","outpayload1":"1","outpayload2":"0","name":"Big Timer","comment":"","lat":"53.85074","lon":"8.68369","starttime":"5004","endtime":"1230","starttime2":"270","endtime2":"5003","startoff":"0","endoff":"0","startoff2":0,"endoff2":0,"offs":0,"outtext1":"","outtext2":"","timeout":1440,"sun":true,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":true,"jul":true,"aug":true,"sep":true,"oct":true,"nov":true,"dec":true,"day1":0,"month1":0,"day2":0,"month2":0,"day3":0,"month3":0,"day4":0,"month4":0,"day5":0,"month5":0,"day6":0,"month6":0,"day7":0,"month7":0,"day8":0,"month8":0,"day9":0,"month9":0,"day10":0,"month10":0,"day11":0,"month11":0,"day12":0,"month12":0,"d1":0,"w1":0,"d2":0,"w2":0,"d3":0,"w3":0,"d4":0,"w4":0,"d5":0,"w5":0,"d6":0,"w6":0,"xday1":0,"xmonth1":0,"xday2":0,"xmonth2":0,"xday3":0,"xmonth3":0,"xday4":0,"xmonth4":0,"xday5":0,"xmonth5":0,"xday6":0,"xmonth6":0,"xd1":0,"xw1":0,"xd2":0,"xw2":0,"xd3":0,"xw3":0,"xd4":0,"xw4":0,"xd5":0,"xw5":0,"xd6":0,"xw6":0,"suspend":false,"random":false,"randon1":false,"randoff1":false,"randon2":false,"randoff2":false,"repeat":true,"atstart":true,"odd":false,"even":false,"x":460,"y":180,"wires":[[],["7eb68d29.fbe0d4"],[]]},{"id":"af4426a2.498a98","type":"wemo out","z":"b628e0d0.36176","name":"Flur","device":"b6b3dd43.ba103","label":"Wemp","x":1070,"y":260,"wires":[]},{"id":"41e4ea76.d79dd4","type":"kasa","z":"b628e0d0.36176","name":"Messdose TV - HS110(EU)","device":"192.168.188.60","interval":60000,"eventInterval":15000,"payload":"getMeterInfo","payloadType":"info","debug":true,"x":400,"y":100,"wires":[["d0354258.de774"]]},{"id":"d0354258.de774","type":"switch","z":"b628e0d0.36176","name":"TV an oder aus","property":"payload.power","propertyType":"msg","rules":[{"t":"gt","v":"30","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":640,"y":100,"wires":[["1185dde6.a92e92"],["a003bb1f.ab85e8"]]},{"id":"dc5865ed.3db3d8","type":"inject","z":"b628e0d0.36176","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"60","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"getMeterInfo","payloadType":"str","x":160,"y":100,"wires":[["41e4ea76.d79dd4","660434e.f8370cc"]]},{"id":"67a14dbf.d88634","type":"change","z":"b628e0d0.36176","name":"Definition VAR TV","rules":[{"t":"set","p":"TV","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1110,"y":100,"wires":[[]]},{"id":"1185dde6.a92e92","type":"change","z":"b628e0d0.36176","name":"An","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":870,"y":80,"wires":[["67a14dbf.d88634"]]},{"id":"a003bb1f.ab85e8","type":"change","z":"b628e0d0.36176","name":"Aus","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":870,"y":120,"wires":[["67a14dbf.d88634"]]},{"id":"660434e.f8370cc","type":"function","z":"b628e0d0.36176","name":"","func":"var A = flow.get(\"TV\");\nvar B = flow.get(\"LP\");\nif (A == 0 && B == 1) {\n msg.payload = 1\n}\nelse if (A == 1 && B == 1) { \n msg.payload = 1\n}\nelse {\n msg.payload = 0\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":460,"y":260,"wires":[["af4426a2.498a98"]]},{"id":"7eb68d29.fbe0d4","type":"change","z":"b628e0d0.36176","name":"Definition VAR LP","rules":[{"t":"set","p":"LP","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1110,"y":180,"wires":[[]]},{"id":"b6b3dd43.ba103","type":"wemo-dev","device":"221609K110011B","name":"Wemp"}]
I almost had it done (well I thought) but then I encountered a logical problem.
In my two conditions there are two (or at least one of them) combinations not unique.
So I have two variables.
A is the tv status (1/0)
B is the status of the scheduler (bigtimer) (1/0)
The possible combinations are:
A1 B0 (tv on; scheduler off) -> 0 (without the scheduler command no light)
A0 B0 -> 0 (both off, no light)
A0 B1 -> 1 (scheduler says on, even if tv is off)
A1 B1 -> 1 (both on)
A1 B0 (tv on; scheduler changes from on to off) -> 1 (so here I want it to be on, unlike in combination 1)
A0 B0 (tv off after schedule has had a full cycle (on and off again)) -> 0 (but with a delay)
I hope you get what I am pointing at. I want a light to be switched according to solar conditions (bigtimer). But when I watch tv I want to prolong the schedule as long as I watch (plus some minutes delay). So that makes two combinations not being unique.
So now I figured that doubling the variables and adding a delay on one string might give the possibility
to differentiate and to tell if a variable had been differently recently.
Like if A=1 and B=0 but B was 1 recently that would give 1 as output instead of 0.
So I need to tell "where variables came from". Not only the current status but also its changing.
Hard to explain - I hope you could get it anyway.
Or maybe there is a much easier solution....