Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on Alexa status #79

Open
Jamesb4uk opened this issue Nov 4, 2023 · 6 comments
Open

Question on Alexa status #79

Jamesb4uk opened this issue Nov 4, 2023 · 6 comments

Comments

@Jamesb4uk
Copy link

Bit of a long shot, how does this control the way Alexa sees the relay is on?

I'm using this fine with a relay which pulses a 12v diesel heater switch.

The relay is connected on the back of the on/off switch. To power on it activates the relay for 1 second then turns off the relay & the heater starts up, then turning off it activates the relay for 5 seconds to begin the shutdown sequence of the heater & turns the relay off. the Alexa switch status only stays on when the relays on.

Is it possible to keep the status as on (even when the relays off) so i can see when the heaters running?

Kind Regards
James

@Ynot1
Copy link

Ynot1 commented Nov 4, 2023 via email

@Jamesb4uk
Copy link
Author

Thanks Ynot1

I started reading some of the other comments on how this interacts with Alexa & just built a 2nd test device to play with.

Hooking up the serial monitor is proving useful as i can see the comms to the D1 Mini

Got UDP Belkin Request..

Sending response to
Port : 60562
Response sent !
Got UDP Belkin Request..

Sending response to
Port : 42294
Response sent !
########## Responding to /upnp/control/basicevent1 ... ##########
request:<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:SetBinaryState xmlns:u="urn:Belkin:service:basicevent:1">1</u:SetBinaryState></s:Body></s:Envelope>
Got Turn on request
Relay On
Relay On
Relay On
Sending :<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body>
<u:GetBinaryStateResponse xmlns:u="urn:Belkin:service:basicevent:1">
1
</u:GetBinaryStateResponse>
</s:Body> </s:Envelope>

########## Responding to /upnp/control/basicevent1 ... ##########
request:<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetBinaryState xmlns:u="urn:Belkin:service:basicevent:1">1</u:GetBinaryState></s:Body></s:Envelope>
Got binary state request
Sending :<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body>
<u:GetBinaryStateResponse xmlns:u="urn:Belkin:service:basicevent:1">
1
</u:GetBinaryStateResponse>
</s:Body> </s:Envelope>

Got UDP Belkin Request..

Sending response to
Port : 45728
Response sent !
########## Responding to /upnp/control/basicevent1 ... ##########

I think the Binarystate is what I'm going to work on figuring out as when it turns of it switches to 0

I'll post back if i work it out

Kind Regards
James

@Ynot1
Copy link

Ynot1 commented Nov 5, 2023 via email

@Jamesb4uk
Copy link
Author

Thanks again.

I was actually looking at switch.cpp & going down the road that you have done last night its a on/off switch so no issues for me.

Interesting, you did a not operation on GarageDoorState, maybe its Monday brain shock how does that work with switchstatus?

James

@Ynot1
Copy link

Ynot1 commented Nov 6, 2023 via email

@Jamesb4uk
Copy link
Author

ok i think i understand, will give it a try.

Appreciate your help in this

James

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants