Announcement

Collapse
No announcement yet.

Can't get event to trigger

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can't get event to trigger

    This is a test snippet. I'm simply trying to get the event to trigger when the "3Laundry-Aeon AC Freeze Sensor" reported temperature changes to less than 52 degrees.
    Problem is, the THEN clause never fires even as I watch the temperature go down in the log. (The AC does turn off when I manually fire the event.) What am I missing?

    Also, how can I write a message into the log from an event?

    Thanks.

    Log snippet:


    Device: 3 Laundry Temperature Set to 48.4 (F)


    8/30/2021 12:37:07 PM

    Legacy-Plugin
    Z-Wave
    Device: 3 Laundry Temperature Set to 49.6 (F)

    8/30/2021 12:36:46 PM

    Legacy-Plugin
    Z-Wave
    Device: 3 Laundry Temperature Set to 50.9 (F)

    8/30/2021 12:36:26 PM

    Legacy-Plugin
    Z-Wave
    Device: 3 Laundry Temperature Set to 52.1 (F)


    8/30/2021 12:34:36 PM

    Legacy-Plugin
    Z-Wave
    Device: 3 Laundry Temperature Set to 53.5 (F)


    Click image for larger version

Name:	Screen Shot 2021-08-30 at 1.25.08 PM.png
Views:	105
Size:	280.4 KB
ID:	1492612

    #2
    Well, for one, I see that you are triggering on less than 37 degrees and from what I see the temperature in the log never goes down that low.

    Comment


      #3
      To write to the log:
      complicated:
      &hs.WriteLogDetail("Error", "Oh No, Mr. Bill!", COLOR_RED, 1, "SaturdayNight Plugin", 911)
      simple:
      &
      hs.WriteLog "Error", "An error has occurred in my script!"

      Do either as an immediate script action.

      Comment

      Working...
      X