Add WiFi to your alarm with esp8266
Posted: Tue Jun 14, 2016 10:23 pm
Wrote a C++ library that can communicate with PowerMax alarms (based on excellent code and articles found here).
First use for this library is to add WiFi capability to PM for less than 5£ using Wemos D1 ESP8266 board.
Here are some highlights:
- ESP8622 can be connected to serial interface of PM alarm, powered from 12V rail, and hidden inside (no wires!)
- No other dependencies, no need for a PC or raspberry Pi
- You have access to ESP8622 sketch source code, and can flash updates to the ESP firmware via WiFi (no need for opening the PM)
ESP8622 can work in two modes:
- stand alone: (where device acts like a powerlink, actively communicating with alarm)
In this mode it exposes a telnet and simple web interface, via telnet you can arm/disarm system etc.
- transparent packet relay: in this mode ESP will not interpret packets, will simply pass all traffic from remote app to the alarm.
This mode is used by Windows command line application - that you can build, modify etc.
Code status:
- ready to play with for DEVELOPERS (people who can read, modify code)
- minimal to no security (anyone on wifi network can talk to alarm, it's up to you to implement something more suitable)
- I will be working on improvements to the code and possibly will implement simple authentication etc
More details and source code:
https://github.com/irekzielinski/PowerMaxAlarm
I'm looking forward for you guys to contribute to the project!
Cheers,
Irek
ps. If you have any issues with the code, it might be faster for your to raise those directly on GitHub:
https://github.com/irekzielinski/PowerMaxAlarm/issues
First use for this library is to add WiFi capability to PM for less than 5£ using Wemos D1 ESP8266 board.
Here are some highlights:
- ESP8622 can be connected to serial interface of PM alarm, powered from 12V rail, and hidden inside (no wires!)
- No other dependencies, no need for a PC or raspberry Pi
- You have access to ESP8622 sketch source code, and can flash updates to the ESP firmware via WiFi (no need for opening the PM)
ESP8622 can work in two modes:
- stand alone: (where device acts like a powerlink, actively communicating with alarm)
In this mode it exposes a telnet and simple web interface, via telnet you can arm/disarm system etc.
- transparent packet relay: in this mode ESP will not interpret packets, will simply pass all traffic from remote app to the alarm.
This mode is used by Windows command line application - that you can build, modify etc.
Code status:
- ready to play with for DEVELOPERS (people who can read, modify code)
- minimal to no security (anyone on wifi network can talk to alarm, it's up to you to implement something more suitable)
- I will be working on improvements to the code and possibly will implement simple authentication etc
More details and source code:
https://github.com/irekzielinski/PowerMaxAlarm
I'm looking forward for you guys to contribute to the project!
Cheers,
Irek
ps. If you have any issues with the code, it might be faster for your to raise those directly on GitHub:
https://github.com/irekzielinski/PowerMaxAlarm/issues