[RELEASE] ST_Anything - Arduino/ESP8266/ESP32

I read the don’t as do…haha

Sorry for some of these repetitive questions…I just have a lot of time to research various products (as I am waiting for the D1 Mini to arrive from China).

So just to confirm…a key locked (like this) can be used with an electric door strike? So when the door lock is locked I can unlock it with the electric deadbolt & with the key? I would assume the electric strike you linked should work with the lockset I linked?

I would love to use a connected Z-Wave/ZigBee lock. But the interior portion of the lock isn’t weatherproof and someone can simply put their hands through the gates to unlock it…I haven’t seen a Z-Wave/ZigBee enabled double-cylinder deadbolt.

Just curious…What is the Gate protecting that the House Door Lock isn’t? Is this an ‘Outside Room’ with furniture, grill, TV, etc…? I really am just curious why the need for double security?

Locks are really only a deterrent for mostly-honest people (e.g teenagers looking to take a dip in your pool, or drink some cool beverages from the outdoor fridge.) A true thief will easily break into your house, bypassing the locks. Unless you have steel bars on every window, a real thief will have no trouble getting in and out of a house before anyone can show up to stop them.

2 Likes

Yes. It would. But that means you would still need a key as a backup.

1 Like

Check out these two vids captured on my camera:

  1. https://www.dropbox.com/s/7fephui9tqdstzb/WT.mp4?dl=0
  2. https://www.dropbox.com/s/ug10avcwfkh1kcs/IT.mp4?dl=0

That is why I need the gate…if the gate wasn’t locked I would have had some problems. And if it weren’t for the cameras…I wouldn’t have known this even happened.

Let me know once you see the vids…so I can take them off. Don’t want to keep these public for too long.

Understood! Thanks for sharing.

1 Like

BETA Release - Child Contact Sensor Enhanced with Runtime

This is a Child Contact Sensor that has been modified to allow you to select what you want displayed (On/Off, Open/Closed, Alarm/Normal, etc), to be able to invert the normal colors (Blue/Orange), and to track runtime or status of a device. It can replace the existing “Child-Contact-Sensor” DTH directly and will work the same other then adding features. As a example I’m using a contact input for a heater in my garage. So I want the display to say “Heating” for closed and “Off” for open so I select those as my display names. I also want to show open as the blue background so I invert the colors. Here is the main screen for my garage heater:

And the options:

Since this is a drop in replacement for the existing ST_Anything Child Contact Sensor I’m pushing it from my GitHub so as to not confuse stuff. If @ogiewon wants I will add these to the official repo but consider this a beta for now. I’ve gone through and tested it decently but it still needs more people then just me to test. My GitHub:

Owner: vseven
Name: SmartThings_VSeven
Branch: master

If you cannot integrate it directly (I’m having trouble installing new devices from GitHub right now…) you can install it manually by clicking here: https://raw.githubusercontent.com/vseven/SmartThings_VSeven/master/devicetypes/vseven/child-contact-sensor-enhanced-with-runtime.src/child-contact-sensor-enhanced-with-runtime.groovy and copy/paste it into My Device Handlers -> Create New Device Handler -> From Code. Once you do that go to My Devices, find the device you want to switch, click it, click Edit, and select the new “Child Contact Device Enhanced with Runtime”.

2 Likes

I purchased these buzzers on Amazon: http://amzn.to/2HHFEpo

Just want to make sure this works with ST Anything/ D1 Mini Wemos? It can operate from 3V-24V and from my understanding the Wemos delivers 3V??

And just to confirm…the D1 Mini Wemos can only be powered with 5V? Not 12?

They should work, but be sure to check the spec sheet to make sure they don’t draw too much current from the ESP8266’s GPIO pins.

They pull 12mA. Is that too much?

https://bbs.espressif.com/viewtopic.php?t=139

Per the link above, 12ma per pin is the maximum.

Hi,

I have followed the steps in the original post but must have made a mistake. I have added the device but no child is being created.

i get this error messages:

[name:temperature1, value:-196.60, isStateChange:false, displayed:false, linkText:Test Arduino, descriptionText:Test Arduino temperature1 is -196.60]
62ee7308-a087-4031-83fe-73ee4553772d 11:48:37 PM: debug isChild = true, but no child found - Auto Add it!

i also get a message on the app, st_anything parent device has not fully configured. …

can anyone suggest a way forward?

thanks

dale

Double check that you installed and published all of the Child dth’s.

Just received my D1 Mini Wemos and installed the ST Anything Sketch for Relay + Button and got it to work!

Can someone help me write the following sketch files. I will order two more boards.

Board 1:

  • This Relay

  • A Push Button (like a doorbell)

  • This beeper

  • An open/close sensor.

Board 2:

Board 3:

Thanks!

Hi,

First of all i would like to say how great this project is. I was able to get everything setup with a NODEMCU and a few sensors, but i ran into a problem. It seems to disconnect after about 1-1.5 hours. I noticed in the arduino serial monitor the “Free Ram” keeps counting down and it seems to coincide with when is disconnects. Is there something that would be using up all the ram? This is what the serial monitor shows. It started at 40000 about 45 mins ago.

Everything: Sending: humidity1 35.00
Everything: Sending: temperature1 74.12
Everything: Sending: humidity1 34.00
Everything: Sending: temperature1 73.94
Everything: Sending: humidity1 34.90
Everything: Sending: temperature1 73.94
Everything: Sending: humidity1 34.90
Everything: Free Ram = 17368
Everything: Sending: temperature1 73.94
Everything: Sending: humidity1 34.90
Everything: Sending: contact1 closed
Everything: Sending: temperature1 74.12
Everything: Sending: humidity1 34.70
Everything: Sending: temperature1 73.94
Everything: Sending: humidity1 34.60
Everything: Sending: temperature1 73.94
Everything: Sending: humidity1 34.30
Everything: Sending: temperature1 73.94
Everything: Sending: humidity1 34.10
Everything: Free Ram = 16640
Everything: Sending: temperature1 74.12
Everything: Sending: humidity1 34.30
Everything: Sending: temperature1 74.12
Everything: Sending: humidity1 33.90
Everything: Sending: temperature1 74.12
Everything: Sending: humidity1 33.70
Everything: Free Ram = 16248
Everything: Sending: temperature1 74.12
Everything: Sending: humidity1 33.70
Everything: Sending: temperature1 74.12
Everything: Sending: humidity1 33.70
Everything: Sending: temperature1 74.12
Everything: Sending: humidity1 33.70
Everything: Sending: temperature1 74.12
Everything: Sending: humidity1 33.80

What type of board are you using and how are you powering your sensors? The USB port on your PC will not give a full 5v 1 amp that the NodeMCU likes. I would recommend plugging into a 5v 1amp usb “wall wart” and see if the problem persists. Also, if you only have polling sensors, a reboot really isn’t a problem, is it? Or do you also have interrupt sensors or executors on the same board?

I’m powering it from the PC as well as 2.4A usb power supply and it does the same thing. I just have it on a breadboard right now with a contact sensor and DHT22 sensor. I would be fine if it actually rebooted every 1.5 hours, but it disconnects from the network and needs a reset to connect again.

What are you having problems with? It’s not quite as simple as just knowing what the device is. There are several options for each device. For example, a relay can be standard or reverse logic (power to power on or lack of power to power on). If you are looking for how to define each of your devices in the sketch, you can look in the library. Within the class’s “h” file will be an example to put in your sketch. Wouldn’t you rather learn to create your own sketches (or learn how to modify the existing one)? Teach a man to fish…

If you’re looking for the library files they are most likely located in:
My Documents\Arduino\libraries\ST_Anything

Then you’ll see two files for each class. At the top of each one is an example of how to define the device and what the different options for the device are.

1 Like

Wait…so, how are you powering from a 2.4amp power supply and from the PC at the same time?

Can you post a copy of your sketch? And you didn’t say what type of board you’re using.

I have it plugged into the PC right now for debugging. Before it was plugged into the USB power supply. It is doing the same thing regardless how i power it.
Is there a good way to upload my sketch to here? Maybe i did something in the sketch that is causing it to run out of ram.

You can paste it, then highlight it and click the “</>” icon just about where you enter text. That will make it “code”.