sinricpro / esp8266-esp32-sdk

Library for https://sinric.pro - simple way to connect your device to Alexa, Google Home, SmartThings and cloud
https://sinric.pro
227 stars 121 forks source link

Relay status at startup #370

Closed Yillnet closed 3 months ago

Yillnet commented 3 months ago

What has to be modified in the code so that the relay starts in a low state when it is energized and the internet is connected

kakopappa commented 3 months ago

You can do it in the setup()

define RELAY_PIN 16

….

void setup() { pinMode(RELAY_PIN, OUTPUT);

// connect to WiFi

// setup sinric pro

// set the pin to low digitalWrite(RELAY_PIN, LOW); }

loop() { …. }

On Sat, 9 Mar 2024 at 6:03 PM Yillmer @.***> wrote:

What has to be modified in the code so that the relay starts in a low state when it is energized and the internet is connected

— Reply to this email directly, view it on GitHub https://github.com/sinricpro/esp8266-esp32-sdk/issues/370, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZAZZTCIJBLQ2GL2SWDXMLYXLT7NAVCNFSM6AAAAABEOATZS6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGE3TOMJYGE3TGOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Yillnet commented 3 months ago

You can do it in the setup() #define RELAY_PIN 16 …. void setup() { pinMode(RELAY_PIN, OUTPUT); // connect to WiFi // setup sinric pro // set the pin to low digitalWrite(RELAY_PIN, LOW); } loop() { …. } On Sat, 9 Mar 2024 at 6:03 PM Yillmer @.> wrote: What has to be modified in the code so that the relay starts in a low state when it is energized and the internet is connected — Reply to this email directly, view it on GitHub <#370>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZAZZTCIJBLQ2GL2SWDXMLYXLT7NAVCNFSM6AAAAABEOATZS6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGE3TOMJYGE3TGOA . You are receiving this because you are subscribed to this thread.Message ID: @.>

I already did it and it's still the same, the problem is that GPIO 0 is activated and remains at HIGH until it connects to the internet. I am using an ESP01

github-actions[bot] commented 3 months ago

This issue has gone quiet. Spooky quiet. We currently close issues after 14 days of inactivity. It’s been at least 7 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder, the best way to fix this or any other problem is to provide a detailed error description including a serial log. Thanks for being a part of the SinricPro community!

Yillnet commented 3 months ago

Solved, thank you

kakopappa commented 3 months ago

How did you solve it?

github-actions[bot] commented 3 months ago

This issue has gone quiet. Spooky quiet. We currently close issues after 14 days of inactivity. It’s been at least 7 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder, the best way to fix this or any other problem is to provide a detailed error description including a serial log. Thanks for being a part of the SinricPro community!

github-actions[bot] commented 3 months ago

Hey again! It’s been 14 days since anything happened on this issue, so our friendly robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to comment on this issue or create a new one if you need anything else. As a friendly reminder, the best way to fix this or any other problem is to provide a detailed error description including a serial log. Thanks again for being a part of the SinricPro community!