Announcement

Collapse
No announcement yet.

Questions about syntax for use of trigger in event

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

    Questions about syntax for use of trigger in event

    What I am trying to do is use the current condition for my location in an event. My questions:
    1) Is it case sensitive? For example, is "Rain" the same as "rain?"
    2) When using more than one condition, each is separated by a comma. Does a space after the comma make a difference?
    3) How would two words in a condition be handled, such as "partly cloudy?"
    Thanks,
    Elliott
    "Living with technology means living in a [constant] state of flux." S. Higgenbotham, 2023
    "Reboot and rejoice!" F. Pishotta, 1989

    #2
    Originally posted by Richel View Post
    What I am trying to do is use the current condition for my location in an event. My questions:
    1) Is it case sensitive? For example, is "Rain" the same as "rain?"
    2) When using more than one condition, each is separated by a comma. Does a space after the comma make a difference?
    3) How would two words in a condition be handled, such as "partly cloudy?"
    Thanks,
    Elliott
    1. It is not case sensitive.
    2. Current version, the space would make a difference. While I was checking the code I went ahead and set it to ignore leading or trailing spaces. The next version released will have this change.
    3. It would only match on "partly cloudy". It would not match on "partly sunny and cloudy". It would match on "Sunny and partly cloudy"
    --
    Jeff Farmer
    HS 3, HSPhone
    My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
    Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

    Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

    Comment


      #3
      Originally posted by CFGuy View Post
      1. It is not case sensitive.
      2. Current version, the space would make a difference. While I was checking the code I went ahead and set it to ignore leading or trailing spaces. The next version released will have this change.
      3. It would only match on "partly cloudy". It would not match on "partly sunny and cloudy". It would match on "Sunny and partly cloudy"
      Thank you. This is helpful.

      Elliott
      "Living with technology means living in a [constant] state of flux." S. Higgenbotham, 2023
      "Reboot and rejoice!" F. Pishotta, 1989

      Comment

      Working...
      X