Thank you, an error occurred in the compression/publishing of the code and it has already been corrected. Please hard reload. Sorry for the trouble.
looks like it is working again - tyvm!
jsut and FYI. Since the last update I am getting this error
e156b2eb-6b09-4106-9cbb-ecf8857bd588 10:18:19 AM: error java.lang.NullPointerException: Cannot get property âauthoritiesâ on null object @ line 1525
Looks like there are no devices subscribing (orange lightning bolt) in your second statement block, you can force it by clicking on the cog and change from automatic to always subscribe.
Sorry, very silly question I am sure - what is the âcogâ?
For example, line 63, click the device and in the Edit Condition dialogue box that comes up, on the bottom right is the cog (gear icon).
Sorry, I think the line numbers are different in the piston pic and the editor. Youâre looking for the the option that says Subscription Method, youâll want the âalways subscribeâ.
Click the ones that correspond to the Switch and the Motion sensor.
OK and just so I understand why do I need to do this? I donât remember having to do this before, shouldnât automatic pick it up? Just trying to understand this lightning bolt concept and automatic vs subscribe.
Heh, let me see if I can explain it. Triggers like changes to, stays, and others in the list automatically subscribes to events for the device so it watches open/close/active/etc. Conditions do not, so if you want the piston to evaluate that part of your statement when any events happen for that device, then you force the subscription.
Very good explanation, thank you. Is there a better way for me to be writing that statement? Sure enough the sun just came out while I was just to test, LOL. #firstworldproblems.
LOL, that is a first world problem. Didntâ know which car to drive to work today j/k
The first else block, you could probably do away with the conditions since, the weather will trigger an evaluation when itâs not Rain or Overcast. Same for the second else.
But⊠this app is so flexible that we can probably arrive at the same result with just the difference in effort expended, the seasoned coders can probably do this with much less code lol.
You have to work? I just sit around all day and figure out how to avoid doing the hard work of turn on switches and pushing buttons manually, j/k too. Glad itâs Friday! Makes sense @eibyer thank you so much!
Is the datetime() function gone? Itâs still in the wiki
Iâm trying to parse a date/time which is a bit different from standard (comes from a sensor)
No, itâs still there. What is the string like?
Adrian, can you tell me why this piston always says True in the dashboard?
Thanks in advance
Rick
It only says false when an else executes. You have none
I want to write a code to speak a text at higher volume, pause for few seconds and the restore the track it was playing. how do I do that? is there a shareable code that I can use
Just migrate over from Core to WebCore and having a small issue I canât figure out.
In this piston the switch is a virtual switch. When it changes to on, it kicks the furnace fan on for 60 minutes and turns it back off (to auto).
I built it like it was in Core. Wait a few seconds, reset the virtual switch to off, then do the furnace stuff. In Core it seemed that both âUsingâ statements ran simultaneously. Now it does one, then the other.
With this piston the way it sits, it turns the virtual switch back off, turns the fan on and then dies. I see no countdown to turn the fan back to auto. Iâm betting itâs something pretty simple.
I also tried putting both devices in the same with statement, but canât figure out how to differentiate which device itâs controlling then.