rule "Reczna zmiana wartosci sonoff_salon" when Item sonoff_salon_status changed then if (sonoff_salon_status.state!=sonoff_salon.state) { if (sonoff_salon_status.state==ON) { sendCommand(sonoff_salon,ON) } else { sendCommand(sonoff_salon,OFF) } } end rule "Reczna zmiana wartosci sonoff_akwarium" when Item sonoff_akwarium_status changed then if (sonoff_akwarium_status.state!=sonoff_akwarium.state) { if (sonoff_akwarium_status.state==ON) { sendCommand(sonoff_akwarium,ON) } else { sendCommand(sonoff_akwarium,OFF) } } end rule "Switch sonoff_akwarium_ip" when Item sonoff_akwarium_ip changed then if (sonoff_akwarium_ip.state==ON) { sendTelegram("bot1", "sonoff_akwarium change online to ON") } else { sendTelegram("bot1", "sonoff_akwarium change online to OFF") } end rule "Switch sonoff_cuw_ip" when Item sonoff_cuw_ip changed then if (sonoff_cuw_ip.state==ON) { sendTelegram("bot1", "sonoff_cuw change online to ON") } else { sendTelegram("bot1", "sonoff_cuw change online to OFF") } end rule "Switch sonoff_salon_ip" when Item sonoff_salon_ip changed then if (sonoff_salon_ip.state==ON) { sendTelegram("bot1", "sonoff_salon change online to ON") } else { sendTelegram("bot1", "sonoff_salon change online to OFF") } end