Open TexAcoon opened 4 years ago
You need to activate SinricPro skill and link it to your SinricPro account
I did that when I did the fireplace setup On Sunday, November 10, 2019, 12:31:55 PM CST, Boris Jäger notifications@github.com wrote:
You need to activate SinricPro skill and link it to your SinricPro account
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Please try to add another device, like a switch or doorbell. Right after adding you should see a pop up on your smartphone from alexa app, indicating a new device has been found.
@TexAcoon was curious would you mind sharing your whole code? are you using a simple relay setup?
Please try to add another device, like a switch or doorbell. Right after adding you should see a pop up on your smartphone from alexa app, indicating a new device has been found.
Code is Great! and working as expected! All I need to do is hook up the mechanics on my garage door and I'll be set...
Great Job sivar2311! I'm really impressed with this ... This could be another one for kakopappa libraries on Sinric Pro....
clox-coder You should see the code above it in our comments section by sivar2311 - He really did a great job tying the Arduino code in with Sinric Pro.
@TexAcoon I was just asking to make sure there was not a minor mistake. But also just in case this might help. I would take one 8266 at a time plug into pc with power. pull up serial monitor and identify ip address assigned to device. unless you know how to identify through router. then ping the 8266 device just to verify it's on the network. if so you know your getting this far. also reset your alexa etc. it could be this simple of a problem as well.
Good Advice! .. Thanks! .. I use checking IP addresses Angry Scanner when I have to check IP addresses ... . You do bring up a good point in order to pinpoint the or localize the ESP8266. On Sunday, November 10, 2019, 01:06:52 PM CST, clox-coder notifications@github.com wrote:
@TexAcoon I was just asking to make sure there was not a minor mistake. But also just in case this might help. I would take one 8266 at a time plug into pc with power. pull up serial monitor and identify ip address assigned to device. unless you know how to identify through router. then ping the 8266 device just to verify it's on the network. if so you know your getting this far. also reset your alexa etc. it could be this simple of a problem as well.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
@TexAcoon sorry your post was delayed! lol
clox-coder You should see the code above it in our comments section by sivar2311 - He really did a great job tying the Arduino code in with Sinric Pro.
I am the guy who is writing the library. It is very flexible... you can use any device which SinricPro offers. For detailed infos about the library, how to use it and which devices are available please see readme in git repo. If you encounter any issues, please use the correct git repo and check for existing issues or open a new one.
I sure wish I had the expertise you have ... I am really pleased with the code you wrote ... It is working great ... Leaving it running as a demo for the next couple of days. Still have the mechanics to do on my end.
I would be pleased about some pictures or a video of the final result.
Will pass those on to you ... I know others would enjoy doing the same type setup to their garage doors..
Hey Boris, Here is a pic of the setup I have at the moment - when I'm finished it I'll have a video and a section with parts. However, I ended having to setup the LEDs to #define LED_GREEN D1#define LED_RED D1 But I believe I need the D1 needs to be momentary switch pushing a button and releasing it. Just like the remote on the garage door that normally ties into switch box. Not sure at this time since I have not hooked it up yet but getting there. Will hook it up as soon as possible - waiting for my 3D printer to finish printing the cover plate for the box. Future idea would be hooking up a magnetic switch to the code. (not sure how to do this since I'm not a code writer) This would then give you the indication (door position) and acknowledgement that the garage door is unlocked or locked.
On Tuesday, November 12, 2019, 12:22:56 PM CST, Doug Crawford <rocknbarc@yahoo.com> wrote:
Hey Boris, Here is a pic of the setup I have at the moment - when I'm finished it I'll have a video and a section with parts. However, I ended having to setup the LEDs to #define LED_GREEN D1#define LED_RED D1 But I believe I need the D1 needs to be momentary switch pushing a button and releasing it. Just like the remote on the garage door that normally ties into switch box. Not sure at this time since I have not hooked it up yet but getting there. Will hook it up as soon as possible - waiting for my 3D printer to finish printing the cover plate for the box. Future idea would be hooking up a magnetic switch to the code. (not sure how to do this since I'm not a code writer) This would then give you the indication (door position) and acknowledgement that the garage door is unlocked or locked.
Boris,I have some starter pics for you ... What I would like to do is to do a write up and send to you. Hopefully this could be useful for others.Doug On Tuesday, November 12, 2019, 05:17:42 PM CST, Doug Crawford rocknbarc@yahoo.com wrote:
Hey Boris, Here is a pic of the setup I have at the moment - when I'm finished it I'll have a video and a section with parts. However, I ended having to setup the LEDs to #define LED_GREEN D1#define LED_RED D1 But I believe I need the D1 needs to be momentary switch pushing a button and releasing it. Just like the remote on the garage door that normally ties into switch box. Not sure at this time since I have not hooked it up yet but getting there. Will hook it up as soon as possible - waiting for my 3D printer to finish printing the cover plate for the box. Future idea would be hooking up a magnetic switch to the code. (not sure how to do this since I'm not a code writer) This would then give you the indication (door position) and acknowledgement that the garage door is unlocked or locked.
On Tuesday, November 12, 2019, 12:22:56 PM CST, Doug Crawford <rocknbarc@yahoo.com> wrote:
Hey Boris, Here is a pic of the setup I have at the moment - when I'm finished it I'll have a video and a section with parts. However, I ended having to setup the LEDs to #define LED_GREEN D1#define LED_RED D1 But I believe I need the D1 needs to be momentary switch pushing a button and releasing it. Just like the remote on the garage door that normally ties into switch box. Not sure at this time since I have not hooked it up yet but getting there. Will hook it up as soon as possible - waiting for my 3D printer to finish printing the cover plate for the box. Future idea would be hooking up a magnetic switch to the code. (not sure how to do this since I'm not a code writer) This would then give you the indication (door position) and acknowledgement that the garage door is unlocked or locked.
Boris, Take a look at this code I found on instructables: https://www.instructables.com/id/Garage-Door-Opener-With-Feedback-Using-Esp8266/ It has the use of a magnetic relay installed for identifying your garage door position which I would have to believe most end users would like to have in the code. If you have time, please take a look and see if there is a way to modify it for Sinric Pro. I tired adding the api but would not work like it should. By itself it worked fine but have to log into another site iot site like Sinric Pro.
// Close switch must be connected to D2// D1 is the output for the garage door motor. Hi-low-Hi //On line 18 you must enter your ssid//On line 19 you must enter your router password//For now the password is Passw0rd. This password must be in you internet shortcut. If you want to change this, hit ctrl-f enter Passw0rd, your new password and hit replace all.
const int statusPin = 4; //pin for the magnetic contact switch/ Open/Close D2const int activatePin = 5; //pin for the relay module D1
WiFiServer server(54195); //This is the port to listen. Need to be in your router to open the door remotely. If you need only local. Put 80 instead and forget the router partWiFiClient client; const char SSID = "enter your ssid here";const char PASS = "router passord here";
void setup() { Serial.begin(115200); pinMode(statusPin, INPUT_PULLUP); pinMode(activatePin, OUTPUT); digitalWrite(activatePin, HIGH); delay(50); Serial.println(); Serial.println(); Serial.print("Connecting to "); Serial.println(SSID); WiFi.begin(SSID, PASS); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println(); Serial.println("WiFi connected"); //Start the server server.begin(); Serial.println("Server started"); //Print the IP Address Serial.print("IP Address: "); Serial.println(WiFi.localIP()); delay(500);} void loop() { client = server.available(); if (client) // if you get a client { char getLine[128]; int i = 0; bool getLineFound = false; bool currentLineIsBlank = true; Serial.println(""); Serial.println("new client"); while (client.connected()) // loop while the client's connected { if (client.available()) // if there's bytes to read from the client { char c = client.read(); // read 1 byte from client Serial.print(c); if (!getLineFound && i < sizeof(getLine)) { //save the char to getLine getLine[i] = c; i++; } // Request end: Now responds to it if (c == '\n' && currentLineIsBlank) // respond to client only after last line is received, last line is blank and ends with \n { ProcessRequest(getLine); break; } if (c == '\n') // end of the line, next char read will be a new line { if (!getLineFound) //the GET line is the first line from the client, save it for later { getLineFound = true; //strip off the HTTP/1.1 from the end of the getLine const char *ptr = strstr(getLine, "HTTP/1.1"); if (ptr) getLine[ptr - getLine - 1] = '\0'; } currentLineIsBlank = true; } else if (c != '\r') //text char received { currentLineIsBlank = false; } } //end if (client.available()) } //end while (client.connected())
// close the connection delay(100); //allow client to receive the data client.stop(); Serial.println("Client disconnected"); } }
void mainPage(WiFiClient& client){ client.println("HTTP/1.1 200 OK"); client.println("Content-Type: text/html"); client.println("Connection: keep-alive\r\n"); client.println("<!DOCTYPE HTML>"); client.println(""); client.println("
"); client.println("
kakopappa - I have used this script for over a year and worked so well I was planning on adding more devices to my home automation. Not sure what has gone wrong when asking Alexa to turn on the appliance it "states there is a malfunction" OR "cant find the appliance" (depending on what day it is and how good she feels.
I have not made any chances to the software and still can not get Alexa do discover any of my WeMos ESP8266s ... tried looking in "Serial Monitor" and do not see anything working. Has something changed in the Amazon Alexa for the system not to recognize the WeMos ESP8266 any longer?