Open harikrishnan51688 opened 3 years ago
GH has a different command format from Alexa. You have to hanlde it properly https://github.com/kakopappa/sinric/blob/master/arduino_examples/google_home_switch_example.ino
You should consider moving to Sinric Pro https://sinric.pro. You just need to handle the SDK callbacks correctly once and it works.
I
GH has a different command format from Alexa. You have to hanlde it properly https://github.com/kakopappa/sinric/blob/master/arduino_examples/google_home_switch_example.ino
You should consider moving to Sinric Pro https://sinric.pro. You just need to handle the SDK callbacks correctly once and it works.
Iam using sinric pro. I use code in example switch-advanced but I press turn on in sinric dashboard the relay turn off. Also the same thing when I use alexa. Why?
Depends on how your relay is connected (NO / NC). You can invert the logic in sketch or change your wiring. Do you have a circuit diagram you can share?
Depends on how your relay is connected (NO / NC). You can invert the logic in sketch or change your wiring. Do you have a circuit diagram you can share?
I am using this circuit diagram. How I can invert the logic in sketch?
Well... that's the diagram from example... and is not helpful here. How are your devices connecte to the relays?? Do you use NO or NC wiring? The example sketch is made for NO wiring!
Well... that's the diagram from example... and is not helpful here. How are your devices connecte to the relays?? Do you use NO or NC wiring? The example sketch is made for NO wiring!
Iam using NC wiring. But I can use it perfectly before some days. What I can do?
Iam using NC wiring
Any reason for this? N/O is the usual wiring. Except you have a special reason for using N/C wiring.
But I can use it perfectly before some days
This is strange, because we didn't change anything.
What I can do?
1.) Change the wiring matching the sketch. 2.) Change the sketch matching the wiring.
For No. 2 you have to understand how the sketch is working. Do you?
Iam using NC wiring
Any reason for this? N/O is the usual wiring. Except you have a special reason for using N/C wiring.
But I can use it perfectly before some days
This is strange, because we didn't change anything.
What I can do?
1.) Change the wiring matching the sketch. 2.) Change the sketch matching the wiring.
For No. 2 you have to understand how the sketch is working. Do you?
No. Can you give the code?
Can you answer my questions?
Ok, if you don't understand the code...change the wiring...
Can you answer my questions?
Yes
Ok, if you don't understand the code...change the wiring...
Iam using 4 channel relay board. Nodemcu D1 to relay D1 and so on. What can i change further?
If you want to invert the relay output you have to invert the digitalWrite's
If you want to invert the relay output you have to invert the digitalWrite's
I don't know how the code works. Can you please give a sample code to invert the digitalWrite 's
digitalWrite(PIN, !state);
I write digitalWrite(D1, HIGH); In void setup but it doesn't works
To answer this question finally: Change line
to
digitalWrite(relayPIN, !state);
To answer this question finally: Change line
to
digitalWrite(relayPIN, !state);
Thanks for the great support. Its works!!
First thanks for your great work I have successfully connected to Google home and Alexa. But the problem is when I say turn on the bulb the bulb "turn off". And vise versa. I use the code - switch - advanced you provide. Help me out of this.