- Platform information:
- Hardware:RPi4
- OS: ArchLinux
- Java Runtime Environment: OpenJDK Runtime Environment (build 11.0.11+9)
- openHAB version: 3.1
- Issue of the topic: only get notified from one of the servers
I have RPi4 in two houses. I created two accounts in myopenhab one for each server. I included both references to myopenhab servers in the Android application.
For the first house I am using .rules scripts and it is working fine. This is the rule:
rule "Notify alarm"
when
Item madrid_puerta_principal_isOpen changed from CLOSED to OPEN
then
if (sw_alarm.state == ON) {
sendNotification("myemail@gmail.com",
"Door open")
sendNotification("mywife's@gmail.com",
"Door open")
}
end
When the door opens, we receive a pop-up notification in the mobile.
For the second house I am using the UI in order to define the rules but they are similar. I have tried notifying to both my android’s email and to the second email account to which I registered myopenhab. In any case, I don’ get a pop up notification.
If I check the “notifications” area in the Android App, I get the notifications there for both houses, but I only get the pop-up for the first house.
What could be the reason?