I used a USB mains Adapter removed the mains pins and solders the a cable to Live and Neutral terminals on the board, where the red cables are on the pic and then put back in the plastic housing and put it in the hole where the light switch was.
For the USB connector, I couldn’t find any connectors, i brought from Ebay a wireless phone charger coil that you would stick to the back of the phone to charge, i hacked that apart and soldered it to the power cable out of the main adapter
So I’m guessing for the light switches you sacrified your using smart bulbs permanently powered hence making the switch redundant? I’ve considered doing the same at our front door using something like this:
I saw them when i was thinking about it doing it, but my idea, had the case and protection already included and didnt have to worry about it.
I am trying to remove all light switches from the house, as the family have a habit of using the switch and that break my automation…
I am very impressed with the Xiaomi products too, had loads of stuff arrived yesterday, including the temp sensors… have an idea on an outside alarm siren too… and I am working on another secret project lol
This project is awesome, but I am unable to get it to work and would be very appreciative of any help you guys can provide.
I am having the same problem as @elRadix. I do notice an error in chrome of “failed to load resource date.format.js”. Not sure where to get that resource, I don’t see it in the github repo.
Thank you @elRadix, that worked for me as well. Just to be clear if anyone else stumbles upon this problem - I changed the “alarmid” in my configuration.yaml to match “name:” in my alarm.yaml file. like so:
name: alarm
sidebar_title: Alarm
sidebar_icon: mdi:security-home
url_path: alarm
config:
alarmid: alarm_control_panel.house <—bold text is what was changed
in alarm.yaml
platform: bwalarm
name: house
code: 1234
pending_time: 25 #Grace time in seconds to allow for exit and entry using Away mode
trigger_time: 600
alarm: automation.alarm_triggered
warning: automation.alarm_warning
clock: True
I dont understand 1 thing. I would like to have doorsensor frontdoor to trigger the alarm directly when the alarm is in “House Mode”, but in “Away Mode” it should have the 40 sec for disarm. Is this possible?
I am thinking about putting the main set of sensors on a Gateway connected to a UPS, but then I would need to have the BT HUB6 Router, Home Assistant Server, Zone Minder Server on the UPS, and then realized I would need quite a big one, to keep it up for say 30 mins.
So i have gone down another route and I am using a free account from Pingdom, that checks the UI is available over HTTPS, so if it goes down, I will be notified, plus the Server is set to auto restart, so I could log back in and reset when its all come back.
What we need is the alarm state to be saved so when the Home Assistant services come back up, the alarm state is automatically reinstated…