This is a Digest of webCoRE tips and information
Example pistons that can be imported via an import code from webCoRE forum
Integration with Homebridge
- Homebridge Hubitat can create a virtual device that triggers your webCoRE piston
Integration with Echo Speaks
- echo speaks can trigger a piston during its action processing
- an echo speaks action can be triggered by a webcore piston executing
- webCoRE can speak, etc on Echo speaks devices
There are three classes of issues commonly seen:
- webCoRE IDE is acting strange
What to do if webCoRE IDE / Dashboard is acting strange?
Make sure webCoRE is operating properly (note above)
Make sure you entered the password correctly (or reset the password for the IDE in webCoRE)
- this is set in HE Console -> apps -> webcore -> Settings -> Security -> "Choose a security password for your dashboard"
Typically this a browser caching issue that occurs if the webCoRE IDE files have been updated (css, html, js)
most times this will resolve your issue. If it does not, do browser cache/data cleanup and exit:
If you really want to clear things out, after logout do the following:
follow above steps (except for logging in again)
Clear all browser caches
reconnect to dashboard.webcore.co, staging.webcore.co (or your server for Dashboard/IDE)
register your browser again (follow above suggestions on start with 1 first and ensure it is working)
Note, if you are running a local html/js/css server to host the webcore IDE files, you first should ensure this server is running and is up to date with latest html,cs,js files from the HE webCoRE repos.
- It is common to see folks using the wrong repo for these files. See notes 1, 2 in the main webCoRE thread (listed above on Install Information for webCoRE on HE).
- if you want piston help, the webCoRE forum is also a resource with folks that can help on writing pistons
- if you believe there is a webCoRE bug or feature request see below:
You can use a private message, start a new topic, or add to the main webCoRE on HE thread
(PLEASE DO NOT POST IN THIS THREAD BUG REPORTS)
1) Give a description of the problem
I got a new motion sensor and thought I’d try to have my bedroom lights turn on as I’m heading to bed
2) What is the expected behavior?
Turn on Switch 1 (Virtual Switch used for goodnight routine), then If if motion is detected within one minute, turn on my bedroom lights
3) What is happening/not happening?
Switch turns on, motion is detected, lights not turning on. Seems so simple, not sure what I’m missing,
4) Post a Green Snapshot of the piston
5) Attach any logs by turning logging level to Full
(PASTE YOUR LOGS in message THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM)
It seems like there is a lot of great information in the header, kudos for that. What I was looking for though is a “Why use Webcore” kind of thing.
I’ve never used it and relied on apps and RM but can’t help wondering if I’m missing out on something. Can someone give me the top 3 reasons to use Webcore on HE?
That is mostly a matter of opinion, so you'll get a lot of different answers.
Most commonly, I'd say it relates to one or more of:
- familiarity with webCoRE from SmartThings, in whose community the app originated (HE has many ST refugees -- and was founded by some, too!)
- preference for the webCoRE UI over that of RM or other apps (it has its own web-based "IDE" where they had pretty much free reign over the interface instead of having to conform it to the dynamic but still limited possibilities that the HE or especially ST in-app UIs work under)
- the ability to do some things in one that are difficult in the other or vice versa (e.g., saving matching devices to a list in webCoRE or using trig functions that were only recently added to RM, or...I honestly have a hard time thinking of things the other way around, but I'm sure they exist -- though RM is much more flexible than it used to be, and I haven't felt the need to create automations with webCoRE for years, between that and custom apps I wrote for myself) -- also partly a matter of preference
Another difference used to be that RM is built-in, where as webCoRE was not; that is no longer the case. However, it is still the case that RM is developed by staff (Bruce, specifically) and therefore gets support from them when there is an RM issue, whereas webCoRE is at the mercy of the community (though the couple people working on the two pieces of it have been doing a stellar job the last few years!). This can also affect some people's preferences.
Thanks for the message, that was very useful. I came from ST when they were getting rid of Groovy but I never adopted WebCore although I saw plenty mentions of it. Can't say I've had anything that I can't get to work in RM although sometimes I've created 2 rules when I know damn well it could be done in one if only the interface was a bit more friendly, which I think is one of the Webcore strengths.
Is there an additional component to WebCore that is perhaps optional. I'll see references to RPi or some other device but I don't know how it all fits together.
If you're seeing a reference to a Raspberry Pi, it's probably about people hosting the "IDE" part locally. That is completely optional, as the online editor works--though, of course, it needs an Internet connection.
Doing everything in one rule isn't always the best way, even if it's possible, but if you aren't sure about how to do something in RM, I'd post in an RM category here. Someone is almost always willing to help.