[DEPRECATED] ST_Anything - Arduino/ESP8266/ESP32

I downloaded the full zip file and replaced the entire library. The problem still occurs. I tried the original relay sketch and had the same issue.

Chris

Dan,

Nevermind. I must have had a glitch the first time. I followed the instructions on GitHub to install the libraries and tried compiling. The code compiled and works well. Thank you.

Chris

1 Like

Is there a way to have ST report if it has lost connection to the parent and/or child devices?

Every child device has a “last updated” custom attribute you can use to determine whether or not the microcontroller has sent an update recently. Perhaps you could use something like WebCoRE to check to see how long it has been since the last update and then send you a notification?

Hi Dan,

I’ve just started tackling my next ST challenge - grabbing data from a wifi SD card. I’m planning to use a windows server to sit in the middle - I was starting to write a device handler to post the data to the ST Hub, when I realised I was basically trying to re-write ST_Anything (feels stupid).
So, I’m embarking on setting up for Windows, and I’ve hit my first snag - http://www.omnithing.net/ is saying “refused to connect” - is it down for a while?

Thanks,

James

So… ST_Anything and OmniThing are two different integrations, although they have similar roots. My son and I originally wrote ST_Anything, which only runs on Arduino IDE compatible micro-controllers. Later, my son, @leinax, wrote OmniThing as a successor to ST_Anything, which runs on a variety of platforms.

You’ll probably have more luck posting questions about OmniThing in its thread.

Hi Dan,

Apols - makes sense. Will do.

James

1 Like

Okay so I have managed to create smart blinds using a stepper motor and the code for a switch. Basically when the switch turns on the stepper moves x number of steps when i turns of it move back x number of steps. it working perfectly. I recently hit a bit of a hurdle. I would like to change the label associated with the with switch to be open, opening, closed, closing rather the on, turning on, off, turning off. I was looking that the groovy code located here https://github.com/DanielOgorchock/ST_Anything/blob/master/devicetypes/ogiewon/child-switch.src/child-switch.groovy
Line 42 - 45, Im not sure what I can change here that will produce the desired result without breaking the code. Any help is appreciated.

Hi Dan,
I’m having real issues getting Omnithing running on my Windows PC - all down to my lack of skills and familiarity with Visual Studio I think.
I’m beginning to think that Omnithing may be overkill for what I want to achieve…
I have a wifi SD card in my solar thermal & heating controller.
The controller logs data to it every minute - 12 temperatures (deg c), 2 flow rates (int, 0 to 1000), 2 pump rates (0 to 100%).
I want to get these in to ST so I can respond to them.
I have the SD card as a mapped drive on my windows server.
I figure that a small program (written in python for e.g.) could pull the latest values and send them by curl to ST.
I’m thinking that if I were to format the data correctly, I could just use another ST_Anything device as the receiver for this - would I be right?
It looks to me like you’re sending the name, followed by an ordinal, then white space, then the value (I’ve already got curl working from the PC to ST following this post:How can I receive LAN messages on the ST hub (when the messages can come at any point)?)

Best,

James

Yes, you’ve got the basic idea…however… I would not do it this way, knowing what I know now.

These days, I would format the data as json. OmniThing actually does this, thereby allowing an entire data structure to be transmitted at once.

Can you use st anything to control a sonoff th device

Possibly. You’d have to flash the Sonoff with an ESP8266 ST_Anything sketch, and know exactly which GPIO pins can be used.

There are many other integrations already available for Sonoff Devices… why not simply use one of those?

I have used the smartthings sonoff bin file which works with toggle on/off but the temperature and humidity sensor does not pick up readings it just give me a output of nan. I know the sensor works because I have used it via tasmota.

Hi,

I my hub was updated today to 027.06. Since 2 pm all my ST_Anything device are active but there is no data from both of my ESP8266. I tried rebooting the ESPs and also the hub, which usually resolves that problem. The Parent devices show as ACTIVE but noting in the log.
Am I the only one with that problem?
(I have the slight feeling that the log is also somewhat leaner than yesterday)

Thanks

1 Like

Me too! No inbound messages to SmartThings since the update to 27.6 – I can reset/control outputs, but no inputs update in ST. I pinged Dan earlier via DM – thanks for confirming the issue I am seeing. Right now trying to enable debugs in the code to see if there’s anything coming back from ST.

Dang…
I also deleted one sensor and added it again, no dice :frowning:
I think it’s time to switch to HE with all the problems I have since the last two months…

EDIT:
uncommented all log.debug in the Parent’s code, recreted the device, here’s the log:

d3ad3e7a-c085-4934-bcbc-fb50841e7390 7:43:05 PM: debug Parsing ‘index:A7, mac:840D8EADA51E, ip:C0A8B2D7, port:1F9A, requestId:ce378ae2-154d-4dfb-921c-d3fffbf392c6, headers:SFRUUC8xLjEgMjAwIE9L, body:’

d3ad3e7a-c085-4934-bcbc-fb50841e7390 7:43:03 PM: debug Using ip: 192.168.178.215 and port: 8090 for device: d3ad3e7a-c085-4934-bcbc-fb50841e7390

d3ad3e7a-c085-4934-bcbc-fb50841e7390 7:43:03 PM: debug Executing ‘sendEthernet’ refresh

d3ad3e7a-c085-4934-bcbc-fb50841e7390 7:43:03 PM: debug Executing ‘refresh()’

d3ad3e7a-c085-4934-bcbc-fb50841e7390 7:41:53 PM: debug Using ip: 192.168.178.215 and port: 8090 for device: d3ad3e7a-c085-4934-bcbc-fb50841e7390

d3ad3e7a-c085-4934-bcbc-fb50841e7390 7:41:53 PM: debug Executing ‘sendEthernet’ refresh

d3ad3e7a-c085-4934-bcbc-fb50841e7390 7:41:53 PM: debug Executing ‘refresh()’

d3ad3e7a-c085-4934-bcbc-fb50841e7390 7:41:53 PM: debug setting deviceNetworkID = 840D8EADA51E

d3ad3e7a-c085-4934-bcbc-fb50841e7390 7:41:53 PM: debug Executing ‘updateDeviceNetworkID’

d3ad3e7a-c085-4934-bcbc-fb50841e7390 7:41:53 PM: debug Parsing ‘index:A1, mac:840D8EADA51E, ip:C0A8B2D7, port:1F9A, requestId:2f7cb4a9-4562-4393-a93f-f27ac36e1b15, headers:SFRUUC8xLjEgMjAwIE9L, body:’

d3ad3e7a-c085-4934-bcbc-fb50841e7390 7:41:53 PM: trace updated(): Ran within last 5 seconds so aborting.

d3ad3e7a-c085-4934-bcbc-fb50841e7390 7:41:51 PM: debug Hub Port = 39500

d3ad3e7a-c085-4934-bcbc-fb50841e7390 7:41:51 PM: debug Hub IP Address = 192.168.178.211

d3ad3e7a-c085-4934-bcbc-fb50841e7390 7:41:50 PM: debug Executing ‘updated()’

d3ad3e7a-c085-4934-bcbc-fb50841e7390 7:41:50 PM: debug Executing ‘updated()’

d3ad3e7a-c085-4934-bcbc-fb50841e7390 7:40:23 PM: debug Executing ‘installed()’

:man_shrugging:

Just checking in to say my hub is also running on 027.006 and my ESP8266 devices are still sending data. I know that doesn’t fix your problem, but I wanted to add a data point–it doesn’t seem like a blanket problem affecting all devices.

I have the same issue since today. I do have a relay switch that should only energize for 500ms. Now it only works very sporadically, doesn’t log anything anymore and energizes for many seconds. If I remember right the 500ms value was in the microcontroller code. I don’t understand what ST is sending now that causes so many problems. The application has 2 modes, like a short 0.5s signal and a long signal 3s. Now it only activates the wrong thing. This was working great for over a year at least. Why ST why? :frowning:

I’m trying to get some more debugging messages in the code… Looking in the right place now, thanks to Dan.

I’m having the same issue as others. Not reporting sensor values, the outputs work, but very sporadically. The devices show up in the logs but not the sensor values. I also have another hub at a different location and it seems to be working fine.