Hello, me and my friend tried our best at installing the TP-Link HS100 on OpenHAB 2.
We checked the documentation and copied & configured it. It still doesnt seem to work, could any of you give us a tip or the right source code?
Now we would like to turn them on and off on different days of the week & the time. I know there’s a way to configure that in a .rules file, but the documentation doesn’t help too much with that.
Could you provide me with a guideline/explanation on how to do it?
If you have static requirements on when you want to switch on and off you probably want to use cron-style triggers as described here: https://docs.openhab.org/configuration/rules-dsl.html#time-based-triggers The most complicated part is probably getting the proper cron expression, if you’ve never seen that before. In the end you get something like:
rule "switch on"
when
// turn on every day 7:30
Time cron "0 30 7 * * ?"
then
HS100_a.sendCommand(ON)
end