Cant call another piston from HE piston


#1

I’ve just started my migration from ST to HE and have installed webcore restored my pistons.
My first test are 2 pistons, one checks the status of my nas and sets a virtual switch to indicate it on or off. The other calls this piston every 5 mins. However, it doesn’t seem to be calling the status piston. The status piston works correctly if you use the test button. I’ve edited the calling piston to remove & re add the called piston, Also tried to restart the hub.

There are no errors in the log
25/08/2022, 17:13:53 +754ms
+3ms ╔Received event [Home].time = 1661444033700 with a delay of 54ms, canQueue: true, calledMyself: false
+14ms ║RunTime initialize > 13 LockT > 1ms > r9T > 3ms > pistonT > 1ms (first state access 9 4 9)
+19ms ║Runtime (6245 bytes) initialized in 3ms (v0.3.114.20220822_HE)
+26ms ║╔Execution stage started
+49ms ║║Executed virtual command executePiston (4ms)
+50ms ║║Exiting piston at end of Every timer block
+58ms ║╚Execution stage complete. (32ms)
+95ms ║Setting up scheduled job for Thu, Aug 25 2022 @ 5:14:53 PM BST (in 59915ms)
+98ms ╚Event processed successfully (95ms)


#2

It works here on my end. Try creating a bare minimum piston that executes another just to test.


#3

I’ve edited a second pair of pistons which perform the same operation on another nas, and they worked.
I deleted the original pistons and re-imported them and theyre working now.

Does the called piston need to be there, before you import the piston calling it? I’m not sure of the order on the first import, but on the second I tried that way.

I’ve now noticed that the get to the nas’s up address doesn’t seem to be working. The hub & nas are on the same network?

I think the call is working, but $response is coming back as null

25/08/2022, 18:24:38 +94ms
+2ms ╔Received event [Home].wc_async_reply = httpRequest with a delay of 10ms, canQueue: false, calledMyself: true
+6ms ║RunTime initialize > 5 LockT > 0ms > r9T > 2ms > pistonT > 0ms (first state access 3 3 2)
+8ms ║Runtime (6155 bytes) initialized in 2ms (v0.3.114.20220822_HE)
+40ms ║╔Execution stage started
+48ms ║║Executed virtual command setVariable (1ms)
+52ms ║║Comparison (dynamic) null is_not (string) [:] = true (1ms)
+53ms ║║Condition #5 evaluated true (3ms)
+54ms ║║Condition group #4 evaluated true (condition did not change) (4ms)
+59ms ║║Skipped execution of physical command [Start NAS-314].on([]) because it would make no change to the device. (1ms)
+59ms ║║Executed [Start NAS-314].on (2ms)
+65ms ║║Executed virtual command [Start NAS-314].setVariable (1ms)
+69ms ║╚Execution stage complete. (29ms)
+72ms ╚Event processed successfully (70ms)
25/08/2022, 18:24:38 +84ms
+4ms ╔Received event [Home].wc_async_reply = httpRequest with a delay of 0ms, canQueue: true, calledMyself: false
+5ms ╚Event queued (2ms)
25/08/2022, 18:24:38 +1ms
+3ms ╔Received event [Home].execute = :7bc150e5a57d1ea8be13be7db6ab459b: with a delay of 17ms, canQueue: true, calledMyself: false
+12ms ║RunTime initialize > 11 LockT > 1ms > r9T > 2ms > pistonT > 0ms (first state access 8 4 7)
+17ms ║Runtime (6146 bytes) initialized in 2ms (v0.3.114.20220822_HE)
+19ms ║╔Execution stage started
+28ms ║║Sending asynchttpGet web request to: 192.168.0.7
+30ms ║║Executed virtual command httpRequest (3ms)
+33ms ║║Requesting wake up at Thu, Aug 25 2022 @ 6:25:02 PM BST (in 23999ms) for 1 (st:2)
+40ms ║╚Execution stage complete. (21ms)
+69ms ║Setting up scheduled job for Thu, Aug 25 2022 @ 6:25:02 PM BST (in 24019ms)
+72ms ╚Event processed successfully (69ms)


#4

Same suggestion from earlier, try to recreate a simple example and post the green snapshot. You will likely get more input with something for us to refer to.


#5


This is the piston working in ST. the url is just an ip address e.g 192.168.0.1.

I’ve confirmed the HE hub can ping this address, but see the following error in the hub logs

2022-08-25 11:05:00.873 pm errorhttp Response Status: 408 error Message: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target


#6

I think you should post this last as a new topic in the HE forum so we can get victor to comment. Seems like something in HE kernel / libraries.


#7

If you have a local option for http, I would try that.


#9

Have I posted in the correct place? I’ve put it in the HE section of this form, but not heard anything yet?


#10

He is probably referring to the Hubitat Elevation (HE) Community Forum.

but it looks like you already posted over there for the local IP address issue


#11

Thanks, I had a search around and found it. It’s a little confusing to know which forum to use. It’s not over clear where to put webcore issues in the HE forums, most seem to go in the apps section.