My Idea for this project was to create a way that I could active a light automatically when I was getting close to my house. I would use my current home automation system that I created in a previous project and a particle proton as the activator switch.
The way it would should work is my home automation project would have a node-red flow initiated with a http node. That node would receive a GET request with http property called status. The status can either be 1 or 0, 1 meaning on and 0 meaning off. The proton would act as the switch, basically once a WiFi connection is made it would request the url with a status=1. This would turn on the light and the node red flow would turn it off in a predetermined time, my case 5 mins. How the automated part works is based on the WiFi connection. Since the proton is powered on when you start your car, it will try to connect to a WiFi connection, once a connection is completed, it will attempt the request. So as you drive closer to your house, the proton will eventually make a WiFi connection and request the light to be turned on. Once the connection is lost, no more request can be made and the timer in the home automation system will turn off the light.
First thing to setup would be the proton, Follow the instruction on the proton site to connect it to your network that the home automation system is running on. Then once you have a connection, upload the code to the proton. That's pretty much it.
As for the home automation section, all I had to do was add the http node to the existing flow. I will read the status and if its a 1 turn the light on if 0 turn it off.
Well my prototype didn't go as planned. For some reason I couldn't get it to call my node-red flow.
I still plan to try to get this to work. I have just run out of time to fully debug what is going on. I can see this working with a couple of extra features added, like auto discovery and override buttons. But for now I want it to do what I expected it to.