Yes, every entry is still in CM. To change output to Liters change these lines from teh code I posted above:
From: double remainingVolume = (volume - (3.14159 * (diameter/2) * (diameter/2) * (sensorValue-airgap))) / 3785
To: double remainingVolume = (volume - (3.14159 * (diameter/2) * (diameter/2) * (sensorValue-airgap)))
Every now and then one of my many DS18B20 sensors throws out a -196.6 which I believe is the default error value. Is there a way in the PS_DS18B20_Temperature library to disregard and not send if value is < -100. So in other words that polling of the error value would skip sending it and it will try again next poll interval.
Have been lurking here for a few months. I want to first say thank you to everyone in the Smart Things community. I have learned a lot over that past few months and I am slowly starting to automate my home. I have programmed arduino a little bit prior to this but I am definitely not an expert. I have successfully added a ESP8266 to my Smart Things hub and can view the data on the app. The problem I am having is I disconnected the ESP8266 and it is still showing up on the app as if it is there, but the data is not refreshing. Is this a know problem? I disconnected this 2 days ago. I would want to show that it is disconnected like any other device to know if the data displayed is accurate.
Unfortunately, detecting that a device that is no longer sending data to SmartThings is not a feature of ST_Anything. There is a “Last Updated” field on every ST_Anything child device which at least lets you know how old the data is.
The feature you are probably referring to in ST is called HealthCheck. This feature has been more trouble than it is worth for many users, myself included. I simply disabled it in my ST Phone App. Way too many false positives.
There are some SmartApps that do a great job of monitoring your devices and sending you a notification if that device has not updated over a certain time-frame. The one I use is called “Device Monitor” by @erocm1231. You can find details about it below.
Note: In ST_Anything, I believe I call his library simply ‘DHT’. You do not want to have both a ‘DHT’ and ‘DHTStable’ folder in your Arduino\libraries\ folder as they both have the same filenames within, and will confuse the Arduino compiler.
lol, I download the DHTstable before I realized it… Good to have the latest on that one anyway. I have the resistor in place. Look like I’m one version down on the DallasTemperature library. Will use the Arduino Library manager to update to latest 3.8.0 and see if it improves.
What is the best board that offers the easiest install and best reliability (any links to what I need would be much appreciated)!
So this is my plan…I have an outdoor gate (opens/close like a normal door) and I plan to install a electronic strike to control it with SmartThing’s. In addition, I also want a push button (located on the interior side) so someone can push the button to open the gate.
The entire project will be powered by 12V…will either run wire from the inside of the house or put a small weather proof box with everything and use my doorbell power (with a 24 AC to 12V DC converter).
I am new to ST Anything so I am wondering if this would be a better option compared to a MiMote…and since my Wi-Fi is more reliable…I would rather use that (compared to Z-Wave).
With 12v you’re going to run into some issues. You are going to need a step-down converter since most boards require 5v or 3.3v. You also don’t mention how far from your house the gate is, so I’ll assume it’s close and you get a fairly good signal there. You also don’t mention what will be controlling your striker magnet, whether that would have to be powered directly from the board or whether you’d be using a relay. I’m going to assume a relay.
I’ve used several different ESP boards through my projects (ESP-01, ESP-12E/NodeMCU, Wemos and Arduino). I think if you’re only looking for digital input/output and not a bunch of analog inputs/outputs, and size is a factor, I would go with the Wemos D1 mini or Wemos D1 mini lite. The difference is that the mini runs on the ESP8266 chip and the lite runs on the ESP8285 chip. The later is a lot smaller and lighter and was developed originally for wearables. I’ve noticed that it gets a slights lower signal from my wifi but not enough to be significant in my house but if you’re on the edge of your wifi range out there, that might be an issue.
The D1 has a whole host of “shields” as well. One you might want to look at is the relay shield. This cuts down on the amount of wiring you’d have to do and keeps everything more compact. But I’ve had good luck powering both a 5v and 3.3 v relays from 5v and 3.3v pins when powered by usb. If you are going to use a wired power supply, you can supply either 5v power to the 5v pin or 3.3v to the 3v pin. Just make sure you get a decent supply, most of the burn-outs i’ve experienced have been power related.
If you can wait for shipping from Chine, they’re only around $3. You can also find them on Amazon for around $10, which is what i did because I couldn’t wait 45 days for them to get here.
To properly use a 5v relay (which is most common) you will want to use a 5v step down and not a 3.3v as it might not provide enough voltage to power the relay consistently or at all. The Wemos D1 Mini has an onboard 3.3v step-down for the ESP8266 module.
Then you will need a water resistant case and momentary button made for water proof installations. You can wire the button to pretty much any GPIO the relay isn’t using (default is D1) you want and to GND. I would suggest D3 as it has a pull up though not required.
A 12v relay won’t work with the D1 mini. You have to use a 5v or 3.3v. Remember that the relay is most often rated by it’s controlling voltage and the switched voltage. Any of these relays work with the D1.
I’m in a government building and they block aliexpress so I can’t verify for you here.
Based on the URL’s I would say yes.
I use a Wemos D1 Mini for a dual garage door setup with two relays, two door sensors, and threw on a temperature sensor just because I had so much space left. If I wanted I could also implement 2 of the the new car presence sensor that were just developed.
In short yes. The Wemos D1 mini exposes all available GPIO of the ESP8266. 10 of which can be used by the ST_Anything scripts: A0 and D0-D8.
Your gate motor should provide a 2-wire cable that would be wired to a switch. Connect the gate motor wire to the COM (common) and NO (normally open) terminals of the relay. Connect a momentary push button to COM and NO of the relay. Connect a open close sensor to D3 and GND.
Saw your latest post: I would use a waterproof button depending on how exposed this all will be.
Edit: I don’t see a way to setup a button into the door control script so I updated the wiring description.
For the pin defines use this
//Gate Door Pins #define PIN_DOORCONTROL_CONTACT_1 D3 //SmartThings Capability “Door Control” #define PIN_DOORCONTROL_RELAY_1 D1 //SmartThings Capability “Door Control”
Under Interupt Sensors use this
static st::IS_DoorControl sensor15(F(“doorControl1”), PIN_DOORCONTROL_CONTACT_1, LOW, true, PIN_DOORCONTROL_RELAY_1, LOW, true, 1000);