Announcement

Collapse
No announcement yet.

HS3: $$time does not seem to be replaced in a event definition

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

    HS3: $$time does not seem to be replaced in a event definition

    Hello,
    I am testing the ability to send an event (manually) at present. I want to send a small piece of JSON, so the string to use should be topic=value

    The following

    home/box/status={"TimeStamp": "$$time", "action": "start"}

    gave the following result, aka did not replace the $$time wit the time the event was crested.

    {"TimeStamp": "time", "action": "start"}

    I have also tried with a much more simple setting

    home/box/status=$$time

    again time was not replaced.

    Does anyone have any idea on how to solve this? Thank you

    John


    #2
    If you want the following to be sent
    {"TimeStamp": "12:34", "action": "start"}
    then use the payload template of
    {"TimeStamp": "$$time:", "action": "start"}
    Originally $$time was used to match HS help file, but later I forgot to include it when I consolidate actions and expression substitutions. I will need to fix that.
    t may also be the case that you will want to use $$DSR1234): rather than start if you have start and stop status in a device.

    Comment


      #3
      Hello Michael,

      Seems I was missing the : colon, working a treat now, thank you.

      John

      Comment

      Working...
      X