How to get db from Motion Sensors, mini remotes, leak sensors

70 views
Skip to first unread message

William Barnes

unread,
Sep 2, 2020, 10:25:05 AM9/2/20
to insteon-terminal
Like others, I am so very happy with Insteon Terminal.  You saved the day by giving me a way to configure the software only settings on my hidden door sensors.  Thank you.

Is there a way to get the link db from Motion Sensors, mini remotes and leak sensors?  I tried the getdb() command on a couple of motion sensors, one of my mini remote 8s and a leak sensor, but I only get back "did not get full database, giving up!"

example:
>>> drivewaymo.getdb()
getting db, be patient!
sent db query msg, incoming records:  did not get full database, giving up!

I have linked the motion sensor to my hub
0000 Motion_Driveway                XX.XX.XX  RESP  10100010 group: 01 data: 00 00 00
0000 Motion_Driveway                XX.XX.XX  CTRL  11100011 group: 01 data: 01 01 44 

item in init.py:
drivewaymo  = MotionSensor("Motion_Driveway", "XX.XX.XX")
 
The motion sensors, mini keypads and leak sensors are the only things that I am having issues with retrieving the db.  I did have the same problem with the Hidden Door Sensor before I manually linked it with the hub (hold hub set switch till it blinks, then hold the sensor set switch till it blinks, they both beep and indicator lights turn off).  I did try manually linking the other sensors to the hub, but still have problems retrieving the link db. 

Bernd Pfrommer

unread,
Sep 3, 2020, 7:54:01 AM9/3/20
to insteon-terminal
Is the problem with the motion and leak sensors that they go to sleep when they are not being triggered? I would imagine they do that to preserve battery life. If that is so you may want to try setting them off (wave your hand in front of them) and immediately afterwards run the database query. I'm not sure if you can get the mini remote's database at all, I certainly never tried.

railfan

unread,
Sep 4, 2020, 9:26:59 AM9/4/20
to insteon-terminal
Thank you so much!!  You are right on with waking up the device.  
Leak Detector - I pushed the button on top of the detector, led blinked, I then issued the getdb() and it worked.
Motion Detector - I opened up the cover, pushed the button, led blinked, I then issued the getdb() and it worked.
keypad - I pushed one of the buttons, led blinked, I then issued the getdb() and it worked.

Success all around.  Thank you.

This actually opens my eyes to a change I want to make to a utility that I'm writing.  I am creating a way to graph the links, but if I have to wake up the devices to get the db, then I need to create a way to optionally, read from a file, so that someone can do all their getdb()s ahead of time and then use that as an option for graphing.

Thanks again for the help, and the rapid response.

da...@dalesheehan.com

unread,
Sep 4, 2020, 11:56:17 PM9/4/20
to insteon-terminal
Hi Railfan,
Glad you got what you needed.
A tidbit I learned for future reference:
If you need more time with the device 'awake', you can put your battery operated devices in linking mode. as usual, hold the link button until it starts blinking and it will stay awake until that times out. I have found this to be necessary with my motion sensors because sometimes they go back to sleep before the full db is received.
Cheers,
Dale
Reply all
Reply to author
Forward
0 new messages