Jump to content

James Peterson

Members
  • Posts

    1222
  • Joined

  • Last visited

Everything posted by James Peterson

  1. Did you allow contacts permissions? This is required to enable the trial. Sent from my Nexus 5X using Tapatalk
  2. I have released a new android app for the ISY. You can download it from the android market here: https://play.google.com/store/apps/details?id=com.linuxjet.apps.agave or you can visit my website http://www.agaveha.com for more details.
  3. Got it. Thx.
  4. I am receiving a Server Error when attempting to get ISY info.
  5. I was able to resolve this: My SOAP knowledge is very limited so I don't really know shat I am doing with it. I changed my request to : writer.write("POST /services HTTP/1.1\n"); writer.write("Content-Type: text/xml; charset=utf-8\n"); writer.write("Host: " + isy.getHost()); writer.write("Authorization: " + auth + "\n"); writer.write("Content-Length: " + (subreq.length()) + "\n"); writer.write("\r\n"); writer.write("\r\n"); writer.write(subreq); writer.write("\r\n"); writer.flush(); I guess I was adding some extra information that did not need to be included. The ISY didn't mind, but it appears that the portal did.
  6. I seem to be having an issue with this. I can send commands to the portal easy enough, but I can not seem to get a response from the portal when setting up a subscription to listen for events. This same code works find when subscribing to the ISY directly. private void doSubscribe(String auth) { SSLSocket isySocketSSL; Socket isySocket; try { if (aisy.getSSLEnabled()) { isySocketSSL = ConnectionManager.getSSLSocket(aisy); writer = new OutputStreamWriter(isySocketSSL.getOutputStream()); reader = isySocketSSL.getInputStream(); } else { isySocket = ConnectionManager.getSocket(aisy); writer = new OutputStreamWriter(isySocket.getOutputStream()); reader = isySocket.getInputStream(); } } catch (Exception e) { e.printStackTrace(); return; } String subreq = "<s:Envelope><s:Body>" + "<u:Subscribe"; subreq += " xmlns:u='urn:udi-com:service:X_Insteon_Lighting_Service:1'>"; subreq += "<reportURL>REUSE_SOCKET</reportURL>"; subreq += "<duration>infinite</duration>"; subreq += "</u:Subscribe></s:Body></s:Envelope>"; try { writer.write("POST /services HTTP/1.1\n"); writer.write("Content-Type: text/xml; charset=utf-8\n"); writer.write("Authorization: " + auth + "\n"); writer.write("Content-Length: " + (subreq.length()) + "\n"); writer.write("SOAPAction: urn:udi-com:device:X_Insteon_Lighting_Service:1#Subscribe\r\n"); writer.write("\r\n"); writer.write(subreq); writer.write("\r\n"); writer.flush(); } catch (IOException e) { e.printStackTrace(); setRunning(false); return; } int content_length = 0; StringBuffer headerBuffer = new StringBuffer(); int charValue; do { //Do once and then check for SID - REPEAT IF SID FOUND try { //THIS IS AS FAR AS IT GETS - reader never gets any response data. while ((charValue = reader.read()) != -1) { //CONTINUE READING TILL END OF INPUT //DO STUFF } } catch (Exception e) { e.printStackTrace(); Log.d(TAG,"Network Connection Lost"); hasSID = false; if (listener != null) listener.onConnectionFailure(); } headerBuffer.setLength(0); } while (hasSID); if (listener != null) listener.onConnectionFailure(); }
  7. 994IR with Zwave
  8. Personal for now.
  9. Correct. I'll find a way.
  10. I know about that, but the MS turns that value off during the day. And all that means is that it is now responding to motion events anyway. I want to get that exact data during the day so that I can know that the MS is going be in dusk.dawn mode at night.
  11. OK. I had assumed something like that, but good to know. So what would be the best, Best Guess, solution to my problem? For me, when I put the MS into dusk.dawn mode it is always in that mode, day or night. It just reports it (during shirt to or shift from day and night) and responds to motion at night. I am OK if its just the ISY's assumed state of the MS.
  12. Thank you, but I am not aware of this thread, so if I was a confusion issue fine. but my question has nothing to do with that.
  13. This is not a thread about whether or not it is working. the device it working just fine. This is about getting information from it. period. You have stated time and time again I can't get it from the device since it is asleep. So... I need a way to get it. Best guess will do just fine. I dontt care about the sensitity, I don't care about the other settings. You are providing information I don't need or don't care about. Your answer of I can't get it because its asleep is just fine. You can stop there if you don't have any solutions that allow me to "retrieve dusk.dawn" information from the device. But I still want the information from somewhere and I will come up with something. Again. The device is working properly. I don't care about its sensitivity at this moment. I don't care about the admin console information. All I want is "Is this motion sensor in dusk.dawn mode" during the day, any day. <--- This is all I want without putting it in set mode and pulling up the admin console. Believe me.. I know what mode it is "right now" its in dusk.dawn mode, because I had entire other thread dedicated to problems getting it to set.
  14. I didn't say it doesn't work. that was a different thread. I am just making a question based on a theoretical possibility. During the day. A motion sensor that is in Dusk.dawn mode will not show it is in dusk.dawn mode via /rest/nodes/XX XX XX <- design flaw in my mind. I am just looking for a way to get or assume which mode it is in? This thread is done. this is a simple question. IF it can not be done, fine. Don't make up ways to do it using methods I already stated I don't want to use.
  15. This might work. thx
  16. I can understand that. but what if for some reason the MS was not supposed to be in dusk.dawn mode but it was. I don't know why, but it is... I tried to make up an example above but it confused things... I just want to be able to query the MS and go "oh, its not responding at 3 in the afternoon because its in dusk.dawn mode."
  17. I'm just making an example: I wan to know if my motion sensor is in dusk.dawn mode without using the admin panel.. How do I do this?
  18. Is is possible to query using REST or SOAP the dusk.dawn status of a motion sensor during the day? Since the status will only display true at night I don't see the point of the display status is for. ex: If I do NOT have access to the admin panel, but I do have lets say an app, perl, ruby, etc or what ever program... Maybe someone else in my household put the MS into dusk.dawn mode, but I did not know and I discover that the motion sensor is not responding (keep in mind I have no idea about the other persons doings(wife) and have no access to the admin panel at that time). How can I query the current dusk.dawn status of the motion sensor. side note: If the dusk.dawn display returned true during the day I would know what status it was in. And at night I would not care because it would be responding anyway. but this is not true so I just feel bad design of the MS.
  19. Well using that 7x I seem to been able to get it to work. Whatever it was. eh.... its working. thx
  20. This might be a problem with my MS. I factory reset it and reconnected it. Now it is stuck on Dusk/Dawn mode.
  21. Here is my links table. I have the MS in a box. and under a blanket. It should be dark enough. Yes the MS was in set mode for updating.
  22. I am trying to test the dusk/dawn functionality on my motion sensors and it does not seem to be working. I have set night mode on the motion sensor, but it is not reporting back as in dusk.dawn mode. the MS is in a box right now with no light and it does respond to motion.
  23. Thanks fir posting this. I have been thinking about getting on and was debating the setup. this seems perfect.
  24. thank you.
  25. I was wrong. I cranked up the heat and the "On" displayed. So what does it mean when it is not displayed - vs- "Off" version 4.0.5
×
×
  • Create New...