Jump to content

glacket

Members
  • Posts

    86
  • Joined

  • Last visited

Recent Profile Visitors

552 profile views

glacket's Achievements

New

New (2/6)

1

Reputation

  1. Hi, how would you add manual on and off function to this? for example if i were to manually turn the light on, i would want it to stay on indefinitely until i turn the switch off manually.
  2. Ill try adding some debug code and parethesis. I am not very good at python. I cobbled this together with alot of help. Thanks for the help!
  3. It should only send changes to the isy when a recognized Bluetooth device is detected for the first time or no longer detected. I don't see any verbose on the isy nor do I see anything on the pi. I have script running at startup via cron.
  4. I am at a loss. I created the following proximity script in python that runs on raspbian jesse on an rpi. After a couple of hours it always just kind of fizzles out and stops working. From what I can see everything checks out. I am just not sure how to proceed. Any ideas on what I am missing. It is driving me crazy. The only thing I can think of is maybe the keep alive command is wrong. #!/usr/bin/python import bluetooth import time import httplib2 username='' password='' host="http://x.x.x.x" firstRun = True resultHolduser1 = None resultHolduser2 = None resultHolduser3 = None def ISY(mhost,murl,muser,mpass): h = httplib2.Http(".cache") h.add_credentials(username, password) h.request(mhost + murl, "GET", headers={'content-type':'text/plain', 'Connection': 'keep-alive'} ) while True: result = bluetooth.lookup_name('AC:37:43:B6:E0:D2', timeout=3) if resultHolduser1 != result or firstRun == True: resultHolduser1 = result if (result != None): ISY(host,"/rest/vars/set/2/2/1",username,password) else: ISY(host,"/rest/vars/set/2/2/0",username,password) result = bluetooth.lookup_name('A4:84:31:ED:3D:BF', timeout=3) if resultHolduser2 != result or firstRun == True: resultHolduser2 = result if (result != None): ISY(host,"/rest/vars/set/2/1/1",username,password) else: ISY(host,"/rest/vars/set/2/1/0",username,password) result = bluetooth.lookup_name('A4:84:31:ED:3D:81', timeout=3) if resultHolduser3 != result or firstRun == True: resultHolduser3 = result if (result != None): ISY(host,"/rest/vars/set/2/8/1",username,password) else: ISY(host,"/rest/vars/set/2/8/0",username,password) firstRun = False time.sleep(3)
  5. I forgot that some of the commands in these wifi proximity scripts are specific to the chipset. I found another version of the wifi proximity script above, on another thread that had been converted to unbuntu. That does not return any errors when launching, however there is not logging and the isy state variables do not change so something still does not appear to be working right.
  6. Hi Steven, I am trying to run the router based shell script that does proximity checking on my ubiquiti. I just found out yesterday that the pi at some point no longer see my phones arp when its asleep. my edgemax router does, so now I am trying to run the script on my ubiquiti edgemax pro, it runs on Linux. I would need to add it to cron.d to make it run at startup continuously, not sure if I have to change anything else.
  7. well i figured out some things. i loaded a pi with raspbian jessie, install mysql, php and arp-scan to pull arp data into a db. I got most of that done except i am having trouble getting the data from arp scan to populate in the db. aside from that what would i need to change in the script provided in this thread to pull from the db when running locally on the pi? anyone?
  8. Hi, I would like to run this script on a raspberry pi and I am not clear on what prerequisites are needed to run it. I want to use raspbian. Do I need to install and setup a mysql db on the pi for the script to call from? if so are there more detailed instructions on how to do that. I am not sure where to start.
  9. Ok. I am confused. What is the difference between amazon echo ha bridge 0.4.0 and HA-bridge 3.2.0? I currently control my isy with amazon echo ha bridge 0.2.1 and would like to control the harmony hub as well. I dont think i need ha bridge to do that. I modified the rc.local file on my pi, configured the hub ip address but i am not sure how what to do after that.
  10. not to keep going off topic, but what do you use for presence detection? I currently use jon00 Bluetooth. that has been the best for me but reliability is about 85-90%. I've found it really tough to get accurate reliable presence detection(I arrive home, door unlocks, lights turn on, house greets me). I really want to go with beacons but it doesn't seem like there is enough integration currently.
  11. i use the iss94i as well to control insteon devices. my zwave devices are directory controlled through homeseer. I also use homeseer as the main frontend to control everything mainly because of its functionality and because it appears to have the best built in front end(hstouch which is easy to modify). My annoucements are all made through homeseer. I was thinking about opening the echo and connecting an output to which would go to a mixer then to the speakers for the particular room it is in, then along with homeseer i would hear the alexa over the audio system. I also have in ceiling speakers in almost every room along with a main console on each floor using hstouch and squeezeplayer and server. I thought you mentioned you use a home built front end on all your tablet consoles?
  12. Hey Barrygordon, I have moved away from the aws_config as well just generate the urls needed manually. I May move to the udi gateway when i get the money but for now i was testing the capabilities of the bridge. May I ask why you have started going away from homeseer? How Do you control Zigbee, insteon or zwave with the rpi without homeseer? Also, have you tried rerouting alexa’s responses to a separate speaker like zoned audio, without having to hardwiring it? It ruins the experience when alexa responds to commands as well as and then homeseer responds through the zoned audio.
  13. Thanks jratliff! i'll keep looking into it. it still happens, only when talking to the bridge. could be bridge to isy or echo to bridge. I need to bring a laptop to the echo, issue a command and watch the hue bridge for the post and record the delay.
  14. ok, had another question. probably doesnt matter that much since this topic seems...................desloate and no one answered my last questions. Anyways, the hue bridge is running ok, commands are accept by the echo, yada, yada, yada, except, if i have not issued a voice command for awhile the echo just has a spinning ring for about 30 seconds then the voice request gets processed. this only happens for requests that use the hue bridge installed on my rpi. is there some kind of sleep mode in Raspbian jesse lite that could be causing this?
  15. Ok, I manually added the devices and urls via the built in hue bridge configuration page and all the devices are working. The aws_configurator worked the first time I configured it and ran it. now no matter what pc i install it on on my network, i get a run time '424' error "object required" the amazon hue bridge appears to work fine, but if i get that error on every pc i would guess that the problem is on the bridge but i have no idea whats wrong. the logs do not appear to show any errors.
×
×
  • Create New...