Cheap solution for Alarm Sirens with battery backup

I spoke to soon. I just discovered Sonoff RF bridge looks like my savour bought one off ebay for $16AUD just now. Drzzz does vid on flashing with tasmota too which is bonus.

It can take infinite RF inputs from 433mhz but only send 16 outputs. Joins Wifi network so you can access it from with HA and node red. Perfection :partying_face:

Hey.
I struggled to get my sonoff RF to work with the kerui remote. I actually had a lot of issues with the Sonoff RF with not detecting many of my RF433 devices. Even after I flashed it to tasmota.
I had success with the broadlink RM pro.
Other option, is using an ESP board with the wired transmitter.

Cool thanks for the heads up. I can see ESP stuff is making big hit with HA I have bit gone down that rabbit hole yet as was trying to master the stuff I got without diversifying again, but looks like there is some good stuff happening with ESP.

EDIT 20/6/2019
Got my Sonoff RF and flashed with Tasmota so far so good read all codes of 433mhz devices and made note of the codes for when I need them in the future.

I’m about to move off my RPi to a PC with Hassio running on a VM. So I will also need to look for another solution.
I want my system to be able to run off my UPS too. Which means multiple items plugged into that.
PC, broadlink Rm pro and router to run hassio and alarm. But my cctv is also plugged into it.
Need to check how much more power the PC will consume over the RPi, so I can make sure I have sufficient backup battery time.

I kept putting it off but happy I did it now. I looked at NUCs and other options to run standalone, but as my main PC runs 24/7/365 which I run my IP CCTV cameras (being happily trialling Sighthound.com thumbs up) and Plex. I had Evo 860 SSD and 3Gen i5 14GBRAM the i5 was running quiet high usage with my previous VMS CCTV software and 4 cameras and when I added Oracle VM to it the i5 was able to keep up. I went on ebay bought the fastest i7 that was compatible with my board and the hyperthreading that comes with i7 but not the i5 made a gigantic difference at smashing through the threads nearly doubling the speed of the computer.

As far as UPS goes I tried this a few years ago and you need a pretty big battery to run your PC and modem, router the UPS I bought gave me about 5 minutes. I did think of maybe switching out the battery with a gel battery like they have in golf carts but in essence it hasn’t been up on my priority list.

I have got my Kerui siren working now with HA, NodeRed and Sonoff RF using my Virtual Machine (no RPi) install. Let me show you my setup :partying_face:

To sound and disarm the siren via HA via Sonoff RF you need to bind something with buttons which will transmit the Trigger and Stop codes to the siren which you can then see via the Sonoff RF Tasmosta console. You can only bind 1 transmitting device to the siren the cheapest way is to buy a Kerui 4 button keyfob (see @lolouk44 notes above Feb 12th 2019) .
image

However if you want practical (family friendly) I recommend the Kerui K16 wall mount keypad with RFiD keytags. This will fire RF codes to the siren once you binded it to the siren that you can capture and then use in NodeRed. It has RFiD tags so when you walk in the door you can turn off your HA alarm at the swipe of a tag (it fires RF code when disarmed which you can capture with Sonoff RF and flow into NodeRed through the MQTT input).
KERUI-K16-Wireless-RFID-Touch-Keyboard-Keypad-Home

Once you get your hands on the keyfob or K16 you need to bind it the Siren (search youtube).

Then you need to flash your Sonoff RF with tasmota see drzzz youtube video.

Once flashed you can now start reading 433Mhz RF codes. Hopefully you have already got to the point where using your 4 button keypad or K16 you can sound the siren and disarm it too. Coz if you passed that step in the Sonoff RF Tasmota console you need to press those buttons and make a note of the codes which are you going to use in NodeRed in a minute or two.

Now before we can go to NodeRed you need to get your Sonoff RF seen in HA as an entity to they can communicate with each other.
In HA Configurator > Configuation.yaml or whatever yaml file you want to add the mqtt settings for it are I put it in my switch.yaml file for now (maybe I might move it my alarm folder later. Either way enter this:

  - platform: mqtt
    name: "Outdoor Siren"
    command_topic: cmnd/RF_Bridge/RFCODE
    availability_topic: "tele/RF_Bridge/LWT"
    payload_available: "Online"
    payload_not_available: "Offline"
    payload_on: "#0414025"
    payload_off: "#0414026"
    optimistic: true

I don’t think the payload_on, payload_off are really relevant as I copy and pasted the code from someone else and didn’t even update their RF codes to my own and it hasn’t made a difference. It’s mainly the first 4 lines that will make or break your connection. Restart HASS :grinning: …HA crashed on restart, reinstall from backup :unamused: i recommend hass.io google drive backup will save your but from time to time :crazy_face:
Screenshot_4

Now if you look in the Developer Tools > States you should be able to see the Outdoor Siren has been added and you are ready to head into NodeRed.

I have a seperate Flow for my Alarm and the foundation of it I used from James Mcarthy’s


Using some code from this thread/post I added in an MQTT out and a CHANGE to my Flow. The CHANGE receives whatever payload is coming in and lets you change the output (usually on or off) to your own payload (the RF code) which you can then pass over to the MQTT output to fire through the MQTT broker, into Sonoff RF which fires the code into the Air for the Kerui Siren to read and act upon.


The CHANGE received an ON message from the TRIGGER and sends the RF code that I captured from the Kerui Keypad for sounding the alarm to the MQTT output.


MQTT output (to MQTT broker this sets the topic and the RF code payload comes from the CHANGE).

2 Likes

thanks for sharing your setup - can I just buy the k16 keypad and bind to a siren, or do i need an alarm system too?

You can just buy the K16 pad and bind it to the siren.

1 Like

Awesome work!
I just bought more Kerui gear to set up - Using their Pet immune PIR, solar siren and W193 panel.
I haven’t integrated into HA yet, but do you know when using RFID tags - do different tags send out a different RF signal, or once scanned, does the K16 (or whatever main unit) send out a generic “disarm” RF signal?

I started the forum http://keruizone.boards.net kerui systems are pretty lacking in logic and features the Chinese company doesn’t communicate with any feature requests or support. The RF code that comes out of the keypad is unique for each arm type eg home arm, arm away, disarm, SOS which is what you grab with sonoff RF bridge but I very much doubt it would change based on which RFID keytag you tap.

Yeah I figured as much.

We are moving into our new house in a few weeks, and wanted a basic alarm that I could setup immediately. So I purchased the W193 with PIR and door/window sensors and solar siren. I’ll have the W193 as the brains of the operation initially, as I’ll be able to have it setup and operational within a few hours.

Once we’ve settled into the house, I will utilise the same sensors and sirens, but this time integrate them directly to HA with the sonoff RF, and use HA as the brains.

I may even reuse the W193 as a control panel that communicates directly to HA (via sonoff RF) as well.

Yes coz W193 will transmit RF codes so you can grab them too and use them in HA. You could arm W193 as well if you bind K16 keypad or a keyfob to W193 and copy the arm/disarm codes that they put out to W193.

The Kerui D025 doors sensors only output a single code when moved away from the magnet (door opened) and not when brought to magnet (door closed) which sucks abit coz I would like to know when a window or door is open so I can use in my HA nodered alarm when arming to make sure no windows or doors are open. I have gone down route of Xiaomi door sensors with the Xiaomi gateway and I bought Xiaomi PIR which in hindsight the existing Kerui ones do the same job with exception of no battery level property.

I got the D026 door sensors. Which display on the W193 if one is opened or closed, so I’m hoping it has two RF signals.

I prefer the size a finish of the Xiaomi products, but I needed PIR that were pet immune.

1 Like

If you could let me know if the D026’s does have the two RF outputs when you get around to it. I will pass info onto my Kerui forum for others to see.

Also would be good to know if the pet immune sensors do what they say on the tin. My cat is in the house alot so most of time I can only arm the doors and windows the indoor PIRs don’t get much use, the outdoor ones are super handy for turning on lights.

The Xiaomi sensor are super small almost like toys.

So far the pet immune sensors work well with out small (under 10kg) dog. I don’t know how well they will work with a cat that can jump on tables, and sofas, etc.

SUCCESS! D026 has THREE signals - open/closed/tamper! Very cool.

Badass!! That is big upgrade on the D025.

Now… how do I integrate the “tamper” into the same binary sensor? Or will it need its own binary sensor?

Are you not using Nodered for your alarm? If you not changed over I just finished alot of mine I can share my flow code and then you can alter to suit.

ps I gave you mention keruizone forum

Ahh Awesome man! Thanks for the shout out.
I had been experimenting with Yet Another Take on an Alarm, and it seemed pretty good for me.
For now, I’ve got the sensors into Home Assistant at least, which was priority one.

binary_sensor:
  - platform: mqtt
    state_topic: "tele/rfbridge/RESULT"
    name: 'Kerui Door Sensor'
    value_template: '{{value_json.RfReceived.Data}}'
    payload_on: '9FCF2E'
    payload_off: '9FCF27'
    device_class: door
  - platform: mqtt
    state_topic: "tele/rfbridge/RESULT"
    name: 'Kerui Door Tamper'
    value_template: '{{value_json.RfReceived.Data}}'
    payload_on: '9FCF2B'
    device_class: vibration
    off_delay: 5
  - platform: mqtt
    state_topic: "tele/rfbridge/RESULT"
    name: 'Kerui PIR'
    value_template: '{{value_json.RfReceived.Data}}'
    payload_on: '3135D2'
    device_class: motion
    off_delay: 5