I just bought my second Smart Implant to use in another house to measure temperature and humidity. The sensor is a DH22 that should be able to do that but I can’t seem to get anything but the temp.
Anyone have any information about this? Google have been very helpful so far.
When I tried to run the script that you suggested in Develop Apps/Test Lua, it failed, so I manually entered it under device settings.
I only need the binary sensors to work. I don’t care about the temp sensor.
Here are pics of the
Params and Variables tab from the master device of the implant.
BTW. I now dont see the IN1 and IN2 devices for some reason.
It may be that Vera support has touched the configuration, as I opened a ticket.
I’ve unpaired and paired the device again (generic zwave device) and got the devices on the second image (one master, one temp sensor, 2* generic IO, 3 * Get_LANG). I then ran the script from the third post (with corrected master id) using the “Test luup code” option and it failed and then I tried to do it on “edit startup Lua” and it worked.
After running the script I get no child devices, see first figure.
Last two figures show the Advanced device parameter and variable tabs after running the script.
It’s working! Thank you so much!!
I think my mistake was that I left out the last line in the script with the reload.
I added a scenario where upon “motion detection”, the door lock is turned open. There is about 10-15 seconds delay from the moment it identifies my fingerprint, until the door lock is turned open.
Do you know if there is a way to reduce this delay?
Thanks for this script. I now have 6 of these devices around the house reporting back garage door positions, alarm system outputs and heating system temperatures etc… I even have one tied into an Arduino MKR 1400 to use SMS messages to open and close my gates (plan to replace this with a serial interface). I’ve played with the device settings and have the device semi-latching and auto resetting the inputs to limit the number of activations. All seem to be totally reliable.
The only thing that I’d like to change is the device type for the binary inputs IN1 and IN2. I’d like these to be straight forward binary sensors and not the armed sensor type - i.e. more like the OUT1 & OUT2 devices - not least because these do not seem to appear properly on an IOS device (the little running man does not go red). I have played around with the device types but with no success. I think the problem is related to how the system knows to send a tripped status to the IN1/IN2 devices configured as motionsensors but a switchpower status the OUT1/OUT2 devices configured as binarylights.
I’m looking at the BasicSetCapabilities variable “00=Ue1,FF=Te1,2=Ue2,1=Te2” that seems to be tripping/untripping e1 and e2 and have changed this to “00=Oe1,FF=Fe1,2=Ue2,1=Te2” to see whether this helps but no luck. I cannot work out where the info coming in over the zwave network is converted to the right uPnP status to send to the Vera device. I suspect that its buried in all the magic numbers in MultiChannelCapabilities.
Any assistance would be much appreciated. I’ve order a book on zwave from Vesternet but I suspect the problem is in the specific zwave to uPnP interface on the Vera.
Not clear on exactly what the BASIC_SET is - hopefully the zwave book will help. I saw the info on basic-set_capabilities you posted and this suggested I could change this from trip/untrip (e.g. Ue1/Te1) to On/Off (Oe1/Fe1). Thought this must be it and I had a go but I could not see anything different in the log file or on the device variables. Should it have worked (or done something?). When it says On/Off, how does the system know what uPnP action should be sent to the device?
I assume that the system works by the Vera receiving a zwave “packet” saying endpoint 1 on/off (or a number) and the vera then converts this into a uPnP command based on the type of device. I assumed that you would be able to change how this conversion happened (light, motion sensor etc.). I just can’t work out how this is configured. It’s not the case that the Smart Implant is sending a “trip” type command for e1 from the start and it must be connected to a trip type uPnP service is it?
Sorry for the vague terms. Hopefully I will be able to frame my questions better after reading the book! Are there any other sources that would help me understand the basics? I have the lua stuff and uPnP stuff understood well enough to write a plugin from scratch but I’m finding this part of the system completely opaque.
You’ll probably need to develop a custom device if you want to follow this route. That why a security sensor has more sense. Just change the category and subcategory (search for the wiki) and you’re done.
Clearly you spent some time putting this great info together.
I purchased my implant solely for opening and closing my garage door via the Vera controller. Nothing more.
I understand to get it to open/close, I need to change some parameters, however the ones I need to change are not visible or perhaps I need to create new variables, either way I’m stumped.
Can you please.
I need to delete or hide the unwanted children and for a dummy like me, it’s wasn’t clear how to.