Question on Alexa status
Jamesb4uk opened this issue · 6 comments
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
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
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
ok i think i understand, will give it a try.
Appreciate your help in this
James