Komuś udało się odpalić powiadomienia Pushover w OH3 to jak może niech zdradzi sekret jak tego dokonał
- instalujesz Pushover binding
- spisujesz API i User Key ze strony Pushover
- ja konfiguruje ten dodatek w pliku
- wiec dodajesz plik konfiguracyjny: pushover.things w /etc/openhab/things
- w środku w pliku
Thing pushover:pushover-account:dom [ apikey="KLUCZ_API", user="KLUCZ_USER", format="html" ]
Coś jeszcze potrzebujesz?
Pozdrawiam, a.
@adrian to akurat ogarnelem ale co dalej jak ustawic aby np dostaje powiadomienie ze wlaczyla czy wylaczyla sie dana rzecz
@strzelba Ok
Ja zrobiłem sobie dwie takie reguły
Jedna wysyła normalne wiadomości, druga ważne
rule "Pushover: sent normal message"
when
Item pushover_sent_normal_log received update
then
val actions = getActions("pushover", "pushover:pushover-account:dom")
actions.sendPriorityMessage(pushover_sent_normal_log.state.toString, "Informacja z domu", -1)
end
rule "Pushover: sent important message"
when
Item pushover_sent_importnat_log received update
then
valactions = getActions("pushover", "pushover:pushover-account:dom")
actions.sendPriorityMessage(pushover_sent_importnat_log.state.toString, "Uwaga!", 1)
end
String pushover_sent_normal_log String pushover_sent_importnat_log
rule "Electric fence state changed"
when
Item electric_fence_switch changed
then
if (electric_fence_switch.state==OFF) {
pushover_sent_normal_log.postUpdate("Pastuch został wyłączony")
}
if (electric_fence_switch.state==ON) {
pushover_sent_normal_log.postUpdate("Pastuch został włączony")
}
end
Pozdrawiam, A


