[DEPRECATED] ST_Anything - Arduino/ESP8266/ESP32

ogiewon,

ST_Anything is working on new ST app for me.
It turns out my github integration had broken and I had lost access to your ST_Anything repository.
I had to disconnect from github and re-add ST_Anything repository.
I deleted my ST_Anything DTHs and started from scratch, configuring parent anew.
Once child devices were recreated with latest DTHs, they worked in both classic and new ST app!
At least until Groovy goes away. I also bought a Hubitat as a backup.

Thanks for your help debugging ST_Anything on the new ST app!

1 Like

Congratulations! So happy to hear you figured it out.

I am still having issues with my ST Anything device and the NEW ST App.
My device has two child temperature sensor devices that work fine in the new app.
However, it also has two child pressure measurement devices which only display “CONNECTED”
and one child water sensor device which displays the cloud with a slash.
All 5 child devices work and display properly in the OLD app.
All 5 child devices work and display information in the ST IDE.
In the APPs, I have a smart app notification set up with the child water sensor device that works in both apps.
The latest device handle is published and in use for all 5 devices.

I have tried deleting the child devices and letting the be recreated several times, but nothing changes.

In the live logger, the pressure and water sensor devices are parsing correctly and no errors are reported.

Can anyone offer any suggests of what the problem may be and possible solutions or will these devices just not work with the new app?

Thanks for any help or suggestions.

The Water sensor works fine in the new app. I have no idea why it doesn’t work for you. Are you using iOS or Android? I am using iOS.

As for your Pressure sensor, since it is not a standard capability of ST, it will not work as-is.

You could try simply switching the name of your pressure sensor in the Arduino sketch

From

F(“pressure1”)

To

F(“voltage1”)

As this will cause a ‘Child Voltage Measurement’ device to be created instead of the Child Pressure device.

At least this way, the numeric value will be displayed when you click on the tile in the new app. Unfortunately, the voltage device does not display its value in the tile, as I cannot determine any way to do so without creating a custom capability for the new app (which I am not going to even try to wrestle with.)

I know this is not 100% smartthings anything 
but once I can get it to work I intend to use the PulseCounter code to implement the final solution
 anyways I can’t get interrupts to work correctly and hoping someone smart had an idea so I could move forward

Trying to use interrupts on ESP8266 NodeMCU ESP-12E
Here is waveform https://www.youtube.com/watch?v=sGJrUbsZiQ4
and here is code

[code]volatile uint32_t pulseCount = 0;

#if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32)
#define IRQ_HANDLER_ATTR ICACHE_RAM_ATTR
#else
#define IRQ_HANDLER_ATTR
#endif

void IRQ_HANDLER_ATTR onPulse()
{
pulseCount++;
Serial.println(pulseCount);
}

void setup() {
#define DIGITAL_INPUT_SENSOR D2
// initialize our digital pins internal pullup resistor so one pulse switches from high to low (less distortion)
pinMode(DIGITAL_INPUT_SENSOR, INPUT);

attachInterrupt(digitalPinToInterrupt(DIGITAL_INPUT_SENSOR), onPulse, RISING);

Serial.begin(9600);
pulseCount = 0;
}

void loop() {
}[/code]

I should be getting a positive pulse around 1/sec but the interrupt counter is going up 10-15 or more a sec.
I have the hall effect/amp/schmitt trigger circuit and nodemcu on the same 5v supply.
Any ideas why this isn’t working ?

Hi Dan,

I wanted to ask about adding new devices in the “new app” environment. Since using the Classic App is out of the question, what’s the option to add new devices? thanks,

Alex

You should still be able to fill in the settings using the New ST App. However, as you have found, it is often much simpler to use the ST IDE to configure the user settings via the web browser.

Hi Dan,
Im the one who had emailed the newbish question (Ended up being a Ethernet Shield Hardware issue).
So I got your example sketch (Mega Multiples) working, and i modified it for my needs so far. All of what i am looking at works amazingly well, and i can not wait to deploy for my generator and household system control, except for one small issue: When you add multiple buttons to a LAN connected(shouldn’t matter) Mega running the ST_Anything library, i cant seem to get the buttons to populate as being seen as individual buttons, it combines their functionality and indicated status on the one button in the primary device created. So regardless if i press button 2 there is no button 2 created, but still shows up in the device. I checked the logs on the IDE side, and its seeing the button1,2,3,4 respectfully.


What i see on the appside.

ST_Anything Button devices are not created as Child Devices. The Parent Device simply generates the various button ‘pushed’ and ‘held’ events, along with the button number. You should be able to use an app like SmartLighting or webCoRE to use these various ‘button events’ to trigger whatever automations you’d like.

Unfortunately, the ‘New’ ST App only seems to only support one button per device. I believe this is a known limitation of the ‘new’ app.

I just tested this using the SmartLight SmartApp. Configuring the button number was a little wonky, but going back into the SmartLighting app a second time presented additional options to select the button number and type of button event. Worked fine.

Awesome, I will give it a whirl! By the way, again, an absolute amazing library and feature set.
Here is my setup, outside of its enclosure, to be built into my utilities room, controlling and running the generator I have tweaked for remote starting and shutdown. The idea is to make it ultra easy for wife to start using a Alexa skill for her when im at work.

Looks like you’re having some fun, for sure! :slight_smile:

So, you lose power without losing the internet? If losing power = losing the internet, then how are you expecting Alexa to work?

I am assuming you want to power on the generator when the power goes out
 This may be a poor assumption on my part.

Thats a great question. I actually have UPS protection on the Echo in the living room, as well as on the router, cable modem(custom extended runtime UPS), server arrays Im using for file sharing, and also the ST Hub. What sucks is i came from IRIS and their v1 hub had power failure monitoring right at the hub, but i have yet to find that for ST. I also have a redundant WAN connection over cellular in the unlikely event Optimum has a failure.

1 Like

Cool! You’ve got it covered then.

Throw something small like a RIB-U1C relay on your incoming non-ups power and wire the NO relay side into a digital input. When you lose power the input will turn on and then you can use that for whatever. Can get those for like $11 on Amazon.

1 Like

Damn, I really didn’t think that! I have some 120 ac coil relays. Duh!( Stupid me)

Can anyone recommend where to start if I want to setup a ST temp sensor with an ESP8266 + DS18B20

The old blog post I found so far has a sketch I can’t make work

You can start with https://github.com/DanielOgorchock/ST_Anything/blob/master/Arduino/Sketches/ST_Anything_Multiples_ESP8266WiFi/ST_Anything_Multiples_ESP8266WiFi.ino

As it includes a DS18B20 device.

You can comment out the devices that you don’t want to use in the above example sketch.

Dan,
Can you point me in the right direction for updating device handlers to work with the new app.
Worked great for over two years then forced migration and now clouds with lines through them and Alexa voice commands don’t work.

Thanks for any help and all the work you put in.

TC

Start here, but be sure to read the second linked post as well to save a little bit of time


Hope this helps!