How to do things based on time of day


#1

1) Give a description of the problem
Can’t figure out how to time=

2) What is the expected behaviour?
If Current_Time = 10:00PM then Change Thermostat to 63 degrees.

3) What is happening/not happening?
Best I can see is $time is 10:00 P.M.
TIME has no = (or IS)
But that gives me warning piston cannot trigger by itself.

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)


#2

This trigger:

pic

is solid and reliable. (Notice the lightning bolt in the left margin)


Quick Steps to recreate:

  • Add a new statement
  • Add an IF
  • Add a condition
  • What to compare: Virtual Device: Time
  • What kind of comparison: Happens Daily at
  • Compare to: Value: 10:00 PM
  • Add

#3

OK went back in deleted and recreated. For some reason I didn’t get message "this piston will not run on it’s own’ (paraphrasing). So now I can’t figure out why it doesn’t change thermostats. Did a z-wave repair. It works lowering and raising heat point on app. Sent SMS in THEN and received text. Any reason why it doesn’t change the device?

11/19/2020, 10:54:59 AM +57ms
+0ms ╔Received event [MastNY].time = 1605801300000 with a delay of -943ms
+40ms ║RunTime Analysis CS > 18ms > PS > 6ms > PE > 16ms > CE
+42ms ║Runtime (36662 bytes) successfully initialized in 6ms (v0.3.110.20191009) (41ms)
+43ms ║╔Execution stage started
+50ms ║║Comparison (time) 39299105 happens_daily_at (time) 39300000 = true (0ms)
+51ms ║║Time restriction check passed
+52ms ║║Cancelling condition #2’s schedules…
+53ms ║║Condition #2 evaluated true (5ms)
+54ms ║║Cancelling statement #2’s schedules…
+57ms ║║Requesting time schedule wake up at Fri, Nov 20 2020 @ 10:55:00 AM EST
+59ms ║║Cancelling condition #1’s schedules…
+60ms ║║Condition group #1 evaluated true (state changed) (12ms)
+62ms ║║Cancelling statement #3’s schedules…
+684ms ║║Executed physical command [Livingroom Thermostat].setHeatingSetpoint([71.0]) (617ms)
+685ms ║║Executed [Livingroom Thermostat].setHeatingSetpoint (619ms)
+716ms ║║Executed virtual command [Livingroom Thermostat].sendSMSNotification (27ms)
+719ms ║╚Execution stage complete. (675ms)
+720ms ║Setting up scheduled job for Fri, Nov 20 2020 @ 10:55:00 AM EST (in 86400.224s)
+725ms ╚Event processed successfully (725ms)


#4

For some reason this works


Thanks for the help


#5

It just doesn’t want to do all 3 thermostats together. I’ll just have to do all separate 3 different tries.


#6

Thermostats are notoriously slow to respond. When I need to send multiple commands to a thermostat, I usually add a WAIT in between commands. (depending on the device, the handler, and a few other factors, it may be anywhere between 5s and 30s)