webCoRE for Hubitat Updates

So what do the logs show for the piston?

Did it receive the event? What does the event history show?

My experience is things are slow and an HE update. (cpu/db is busy, zwave network may not be settled).

That said if HE gets an event, it should deliver it (maybe slowly) to the apps that are subscribed.

The logs would help to understand did the device see the event, and did the piston receive the event. It is possible while system is down / restarting that events (from devices) are lost - in this case neither HE (and therefore) apps will process the event that occurred while the system was down or not fully up and running.

So I agree things need to settle after a restart, as the system is quite busy for 3-4 mins typically, immediately after a restart.

Piston did not receive an event. I did not have piston log on but "last executed" time was from yesterday and not from morning. Other piston which fired up minute after worked normally and received event from HE. After couple of hours that one malfunctioning piston worked normally.
At the morning device reported an event but it was never passed to webcore for some reason.
HE has been running normally and it was restarted yesterday when updated.

Is that "log piston executions?" setting something I should enable from HE under WC settings? At least it would be helpful to confirm if piston executes or not.

Piston logs are enabled in one of two ways:

  • In webcore console, select the piston, change the "Logging level" setting (scroll down) it could be
    "minimal" or "medium" is fine (no need for full).

or

  • In HE console Apps-> select your piston (will be under webcore parent) -> "Logging Level". again same "minimal" or "medium". And done/next your way out
1 Like

@nh.schottfam
Bit of a bug in WC I think.
I have been trying to delay execution of a Blink command as it needs 3-4 seconds between commands. I was having no luck until I spotted the trace maxing out at 1000 ms even though I have the piston set to 3000 ms.
Next time you update can you make the execution delay match the piston setting?

+66ms ║╔Execution stage started
+170ms ║║Injected command execution delay 1000ms after [Garage Cam].DisableMotionDetection(); lastPause: null
+1181ms ║║Executed [Garage Cam].DisableMotionDetection (1088ms)

for everyone to be aware, I showed how this parameter for sleep could be overridden to resolve this issue in his piston execution.

basically the nice / long run monitor was not viewing these short delays as a sleep, so after a period of time they started rate limiting piston execution.

webcore is now integrated with latest echo speaks and homebridge v2.

See note 1 in this thread or:

1 Like

Where should I be looking to resolve this?

I pushed an update

if you use HPM, do a repair on webcore, and let me know if that resolves it.

1 Like

I'm guessing that every update I will have to fix this code line or can you make it permanent?
My Blink cameras work great now that I can pause the mass enable/disables with 4000ms pauses.

Posted this in support but was told to post again here:

I've run into a weird issue where setting up timers in WebCore fire at the scheduled time, but don't execute any of the tasks. See the full explanation here: https://community.webcore.co/t/every-statement-not-executing-commands/19728/15

HOWEVER, someone there helped me discover that the issue is only with pistons created in the Hubitat version of WebCore. If they're created in a SmartThings version of WebCore and the imported into Hubitat's, they work. I've found the same thing.

Anyone else dealing with this? I believe I'm running the latest version of WebCoRE (0.3.113) and Hubitat (2.2.7.123)

There is a new version of webcore today, please try that.

You may need to pause/resume the piston (in webcore IDE) after updating.

2 Likes

That did it! (Version v1.0.33). Thank you for your quick work on this.

This is showing up in the logs of many of my pistons. I have not noticed it before. I do not see any devices missing within the pistons.
Screenshot_2021-05-30 webCoRE Dashboard

Not an error just notice it is reloading

Can happen after reboot

1 Like

I'm noticing that positions run but it is missing actions at times. Very strange. I will need to more research, but it stated (example. locking the door) but it doesn't actually do it.

Try turning command optimizations off (Edit, click on piston title line, click on gear icon); that will always force the command to be sent even if webCoRE thinks the device is already in the intended state). Useful when the hub's copy of the device's state and the actual state are not the same.

What actions in particular? If it is mostly a door lock, then the door lock could be the problem. I have implemented Webcore to do a refresh, wait 2 seconds, and then lock/unlock as needed.

I find especially with door locks, they don't update very well. Sometimes if the door is manually locked or unlocked, it won't update properly in Hubitat. As an example, if you lock the door and it does not update properly, then Hubitat thinks it is unlocked. If you then try to unlock it, it will not do anything as it thinks the door is already unlocked. Typically a refresh will update the locked / unlocked status, and then issuing the command works (at least for me it does).

Disabling command optimizations should work here as well. This forces the command, even if it is currently in that state. But personally, I would start with a refresh and wait to see if that works

1 Like

Two days ago noticed that one of my piston was not working anymore. According log it seems that piston is not able to receive location mode changes anymore. I get that null error too and piston log shows just weird xvnmljgffjkk or something when mode changes.
I removed location if's from piston and now use security system status. Anyone else having this issue?
I'm running latest released version on webcore and Hubitat too.

It would be good to have paused /resumed the piston

Next would have been to reboot the hub

It would otherwise be good to see piston (green) and logs

Did a new piston

And logs:
08/06/2021, 05:00:28 +540ms
+4ms ╔Received event [HubitatHome].test = 1623117628540 with a delay of 1ms, canQueue: true, calledMyself: false
+10ms ║RunTime initialize > 9 LockT > 1ms > rtDT > 1ms > pistonT > 0ms (first state access 7 5 4)
+12ms ║Runtime (5567 bytes) successfully initialized in 1ms (v0.3.113.20210510_HE)
+13ms ║╔Execution stage started
+18ms ║║Comparison (string) :7c76bcf13f4437d56396ddf04776b595: changes_to (string) :7c76bcf13f4437d56396ddf04776b595: = false (0ms)
+20ms ║║Condition #2 evaluated false (4ms)
+21ms ║║Condition group #1 evaluated false (state did not change) (5ms)
+24ms ║╚Execution stage complete. (12ms)
+27ms ╚Event processed successfully (24ms)

..and no need to worry about that AND.. it should be OR I know but it does not make a difference. Location mode is not recognised.

Edit: also started with hub reboot of course and did also hpm repair. No help.