I would love to have 4 rules configured from Paperui as .rules file.
They are all the same - open -close -switch on/off
It would be great if somebody could help me with that -.-
1st: when item status changes (xiaomi_kammer_item) to OPEN, then send command ON to item kammer.
xiaomi is the contact sensor and Item kammer is a switch (Intertechno Power Plug)
2nd: when item status changes (xiaomi_kammer_item) to CLOSED, then send command OFF to item kammer.
3rd: when item status changes (xiaomi_balkon) to OPEN, then send command 100 to item hue_brightness (Lamp is on 100% and switched on)
4th: when item status changes (xiaomi_balkon) to CLOSED, then send command 0 to item hue_brightness (Lamp is on 0% and switched off)
018-11-27 23:53:52.568 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'kammerauf.rules'
2018-11-27 23:53:52.590 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'kammerauf.rules' is either empty or cannot be parsed correctly!
2018-11-27 23:53:54.055 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'kammerauf.rules'
Yes there is.
There are already plenty of solutions for this on the forum
You need to search the solutions for yourself.
If we start writing code for you, you’ll never learn.
Follow the rules tutorial first.
Small steps. It’s easy to imagine complicated behaviour but harder to implement.
All the questions you asked are answered in the docs or in the forum.
Search the forum, find samples of code. Copy them. DON’T COPY AND PASTE. I mean copy them. line by line. Best way to learn coding. Understand the code.
Soon you’ll be writing your own.
If you get REALLY stuck then ask. We’ll be happy to help.
Good luck and welcome to openHAB.