Skip to content

Smart plug for Amazon Echo working with 433MHz plug working with ha-bridge

License

Notifications You must be signed in to change notification settings

LionelJouin/Alexa-Raspberry-Smart-Plug-433MHz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Alexa-Raspberry-Smart-Plug-433MHz

Smart plug for Amazon Echo working with 433MHz plug working with ha-bridge

Requirements

codes

Etekcity ZAP 2L

pulse 175 (between 175 and 180) 
0:
on: 1054003
off: 1054012

1:
on: 1054147
off: 1054156

2:
on: 1054467
off: 1054476

Installation

cd /root/
apt-get install git
apt-get install python3-pip
apt-get install openjdk-8-jre-headless

# wiringPi
git clone git://git.drogon.net/wiringPi
cd wiringPi
./build

# 433Utils
git clone --recursive git://github.com/ninjablocks/433Utils.git
cd 433Utils/RPi_utils
make

# download ha-bridge
wget https://github.com/bwssytems/ha-bridge/releases/download/v5.2.1/ha-bridge-5.2.1.jar

# flask
pip3 install Flask

git clone https://github.com/LionelJouin/Alexa-Raspberry-Smart-Plug-433MHz.git

Services

ha-bridge (ha-bridge.service)

[Unit]
Description=HA Bridge
Wants=network.target
After=network.target

[Service]
Type=simple

WorkingDirectory=/root/ha-bridge
ExecStart=/usr/bin/java -jar -Dconfig.file=/root/ha-bridge/data/habridge.config /root/ha-bridge/ha-bridge-5.2.1.jar

[Install]
WantedBy=multi-user.target

433MHz (server-433.service)

[Unit]
Description=433MHz Flask
Wants=network.target
After=network.target

[Service]
Type=simple

WorkingDirectory=/root/
ExecStart=/usr/bin/python3 /root/Alexa-Raspberry-Smart-Plug-433MHz/server.py

[Install]
WantedBy=multi-user.target

start/enable services

# /etc/systemd/system
systemctl daemon-reload
systemctl start ha-bridge.service
systemctl enable ha-bridge.service
systemctl start server-433.service
systemctl enable server-433.service

Links

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Smart plug for Amazon Echo working with 433MHz plug working with ha-bridge

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages