How to fix Piston State is False and no subscriptions


#1

1) Give a description of the problem
New to webCore and couldn’t find the answer on the forum. How do I get this and other pistons to run automatically?

2) What is the expected behavior?
It’ll only run if I log into the console and “test”. Test works no problem.

3) What is happening/not happening?
Script not running.

4) Post a Green Snapshot of the pistonimage


#2

Can’t go in depth as I’m going to bed but i suggest you have a look at this post : https://community.webcore.co/t/conditions-and-triggers-the-difference/


#3

I read and re-read and still can’t quite figure this out. I now understand the differences between triggers and conditions but how can I fire off a piston when for example my “location mode” changes?

I threw together this thermostat script, but of course it too is not working. Ugh - I’m very frustrated. Sorry this question is very novice (I’m guessing) but I really want to take full advantage of all of this customization.

The way this reads in my head is when my location mode changes to something, then it does one of the three if/thens depending on location mode.


#4

Your piston says you are running 0fb.
Update to the latest version is your first step.
Also you don’t need the ‘on events from’.


#5

I I’m up to the latest UI. I removed the do event. I se the “if” to a trigger and everything else to a condition (so I thought). Can you tell me what I’m doing wrong? Thanks!

Also, did the new UI take out the trace ability?


#6

Try it without this part. I don’t think you need it.
image
The trace only appears whenthe piston runs for the first time.
Hit the test button and you should see it.
EDIT. Have you set each IF to never subscribe?
Change it to always.
EDIT 2: Also you are using the $locationMode variable. Just for info you don’t need to.
You can use Virtual Device the select location mode from the drop down.


#7

Ok. I think the virtual device has been one of my problems. However, when I change modes, it still doesn’t seem to be firing. Am I using the right comparison?


#8

Change them to IS away, not changes to.
With changes to, after a short period the IF will become false again.
With IS it should stay true when in that location mode.
Then press test and they should change to green when true.


#9

I changed everything to IS. As I mentioned, when I press test, I have no ability to trace (and it still doesn’t set the set points).


#10

I don’t understand why when you press test nothing happens.
Perhaps it’s corrupt.
I know this is not what you want to hear, but how about trying a brand new piston.
This is the type opf thing I have anmd it works just fine.


#11

Thanks. Any idea why I no longer have the trace ability after upgrading on any of my pistons?


#12

I’m afraid not. I’m sure there was a setting for this somewhere. Will have to rummage around.


#13

Is this by chance my location mode piston from the wiki?


#14

If the comment was for me, then no. It controls my heating.


#15

Yep. I figured it was a good starting point. I think I got your two pistons working but overall it’s been an uphill battle (very close to giving up).


#16

It was an unlucky time to jump in the pool with all the DST issues. It’s getting worked out and things are smoothing over. Just take a break and give it time to settle.


#17

Yeah I think I picked the wrong day to learn how to write code again (been 15+ years) and install webCoRE.

On the plus side, I think I fixed everything!!!

I did a complete uninstall and reinstall of webCoRE and re-loaded my pistons and all seem to be working (including the temp adjust one I said was not working). I also have the ability to “trace” again.

Thanks for your help @bobbles. Once my next amazon order of switches and sensors arrive, I’m sure I’ll have at least another 100 questions. :slight_smile:


#18

Trace will only show up after the piston runs. Anyway glad it’s working again


#19

Yes, I found the trace rules on the forum @c1arkbar. For some reason it still was broken. Maybe a time-out issue. Regardless, I re-loaded the same pistons and now they work.