Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rule "RF"
- when
- Item RFButton_ changed
- then
- if (RFButton_.state == NULL) {
- logInfo("rfbutton.rules", "Item is null, cancelling...")
- return;
- }
- var rfData = transform("JSONPATH", "$.RfReceived.Data", RFButton_.state.toString)
- logInfo("rfbutton.rules", "Received IT Codes: " + rfData)
- switch (rfData) {
- case "28E3F2": {
- if (Shelly1500291f0483f192168070Buero_Relay_Betrieb.state == ON)
- Shelly1500291f0483f192168070Buero_Relay_Betrieb.sendCommand(OFF)
- else
- Shelly1500291f0483f192168070Buero_Relay_Betrieb.sendCommand(ON)
- }
- }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement