Er det mulig å poste en variabel til timeline?

Hei igjen,
Er det mulig å "poste en variabel i timelinen?


Hvis jeg har det som vist over så blir ingenting published til timelinen.

Har jeg det som vist på bildet under så poster den bare en melding der det står: “VVBMinOn min” og ikke hva som står i variablen :stuck_out_tongue:

Yes , it’s possible. You need to set variable in a certain format and use it in the Timeline node. Variable must follow a certain schema.

Thank you for the reply.
I understand that I have to use the template in transform to set the variable?
I will post my code here to.
I wanted to use a variable to add 1 each minute my hot water heater is actually heating the water.
So I set up a transform with calculation (see code below) but I guess I have to make that in a template type then?
Are you able to tell me how to set that up, and also what to put in the timeline push afterwards?

{
  "Id": "e1008350-f33b-11ec-8823-cd7a73c437ed",
  "ClassId": "e1008350-f33b-11ec-8823-cd7a73c437ed",
  "Author": "tmeland88@hotmail.com",
  "Version": 0,
  "CreatedAt": "2022-06-23T21:31:44.518004Z",
  "UpdatedAt": "2022-08-08T20:44:03.497521684+02:00",
  "Name": "VVB av-pa",
  "Group": "Stromstyring",
  "Description": "",
  "Nodes": [
    {
      "Id": "46",
      "Type": "time_trigger",
      "Label": "",
      "SuccessTransition": "47",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": {
        "DefaultMsg": {
          "Value": "",
          "ValueType": ""
        },
        "Expressions": [
          {
            "Comments": "",
            "Expression": "@every 0h1m0s",
            "Name": ""
          }
        ],
        "GenerateAstroTimeEvents": false,
        "Latitude": 0,
        "Longitude": 0,
        "SunriseTimeOffset": 0,
        "SunsetTimeOffset": 0
      },
      "Ui": {
        "nodeType": "",
        "x": 1192,
        "y": 213
      },
      "TypeAlias": "Time trigger"
    },
    {
      "Id": "47",
      "Type": "if",
      "Label": "",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "tpflow",
      "ServiceInterface": "",
      "Config": {
        "Expression": [
          {
            "BooleanOperator": "",
            "LeftVariableIsGlobal": true,
            "LeftVariableName": "VVB",
            "Operand": "eq",
            "RightVariable": {
              "Value": "1",
              "ValueType": "string"
            }
          }
        ],
        "FalseTransition": "",
        "TrueTransition": "48"
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": null,
          "nodeId": null,
          "nodeName": "If",
          "nodeType": "wattage"
        },
        "x": 1168,
        "y": 424
      },
      "TypeAlias": "If condition"
    },
    {
      "Id": "48",
      "Type": "transform",
      "Label": "",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": {
        "Expression": "VVBMinOn + 1",
        "IsLVariableGlobal": false,
        "IsRVariableGlobal": false,
        "IsTargetVariableGlobal": false,
        "IsTargetVariableInMemory": false,
        "LVariableName": "",
        "RValue": {
          "Value": 0,
          "ValueType": "int"
        },
        "RVariableName": "",
        "Rtype": "var",
        "TargetVariableName": "VVBMinOn",
        "TargetVariableType": "int",
        "Template": "",
        "TransformType": "calc",
        "ValueMapping": [],
        "XPathMapping": []
      },
      "Ui": {
        "nodeType": "",
        "x": 1187,
        "y": 668
      },
      "TypeAlias": "Transform"
    },
    {
      "Id": "49",
      "Type": "time_trigger",
      "Label": "",
      "SuccessTransition": "50",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": {
        "DefaultMsg": {
          "Value": "",
          "ValueType": ""
        },
        "Expressions": [
          {
            "Comments": "",
            "Expression": "0 0 * * *",
            "Name": ""
          }
        ],
        "GenerateAstroTimeEvents": false,
        "Latitude": 0,
        "Longitude": 0,
        "SunriseTimeOffset": 0,
        "SunsetTimeOffset": 0
      },
      "Ui": {
        "nodeType": "",
        "x": 1469,
        "y": 214
      },
      "TypeAlias": "Time trigger"
    },
    {
      "Id": "50",
      "Type": "action",
      "Label": "Publish timeline",
      "SuccessTransition": "51",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:cmd/rt:app/rn:time_owl/ad:1",
      "Service": "time_owl",
      "ServiceInterface": "cmd.timeline.set",
      "Config": {
        "DefaultValue": {
          "Value": {
            "message_en": "VVBMinOn min",
            "message_no": "VVBMinOn min",
            "sender": "flow"
          },
          "ValueType": "str_map"
        },
        "Props": {},
        "RegisterAsVirtualService": false,
        "VariableName": "",
        "VirtualServiceGroup": "",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "timeline_action",
        "x": 1476,
        "y": 427
      },
      "TypeAlias": "Timeline"
    },
    {
      "Id": "51",
      "Type": "set_variable",
      "Label": "",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": {
        "DefaultValue": {
          "Value": 0,
          "ValueType": "int"
        },
        "IsVariableInMemory": false,
        "Name": "VVBMinOn",
        "UpdateGlobal": false,
        "UpdateInputMsg": false
      },
      "Ui": {
        "nodeType": "",
        "x": 1470,
        "y": 673
      },
      "TypeAlias": "Set variable"
    }
  ],
  "Settings": null,
  "IsDisabled": false,
  "IsDefault": false,
  "ParallelExecution": "parallel"
}

You can use one Transform node to make you calculations and another Transform node to configure variable that will be used as input to Timeline node . Timeline node accepts only variables in a special format (like on the printscreen) :

{
"message_en": "Set you message here  ",
"message_no": " eller her  ",
"sender": "flow"
}

and variable must be of type str_map . Once the variable is set , you can use it from Timeline node :

Aaaah, thank you so much.
I was still having issues and was going to ask you again for help, but then I figured out that the word true in the variable was if it was set in memory or not, so after chaning it to false like under here it all worked with the timeline reading from the variable :smiley:

{
    "message_en": "Minutes on: = {{ variable "VVBMinOn" false }} ",
    "message_no": "Minutter på: = {{ variable "VVBMinOn" false }} ",
    "sender": "flow"
}

Again, thank you very much for your help.

Edit to my above message: The “false” statement in the variable seems to be for if the variable is global (true) or local (false)

Hey! Im new to this and I am trying to change my flow to send a notification/comment to the timeline. I have managed to get the push-notification working, but I can’t seem to figure out timeline issue.

I do not have the option of choosing "timeline_rec(str_map) on “Transform” or “Template” nod.

This is the Transform nod, what is supposed to be here?

and this is the Template nod:

I am obviously doing something wrong!

Source code:

{
  "Id": "16e87d60-53b3-11ed-84a2-5f2c9c94baa1",
  "ClassId": "16e87d60-53b3-11ed-84a2-5f2c9c94baa1",
  "Author": "jallaj@hotmail.com",
  "Version": 0,
  "CreatedAt": "2022-10-24T15:46:56.694899Z",
  "UpdatedAt": "2022-10-24T21:30:00.028177825+02:00",
  "Name": "når strømprisen er 10% lavere enn daglig gjennomsnitt og modusen er søvn",
  "Group": "energy_price",
  "Description": "Varmtvannsbereder slås på\nellers\nVarmtvannsbereder slås av\n",
  "Nodes": [
    {
      "Id": "c42575dd-1499-48be-aa1d-1586fdc66b41",
      "Type": "trigger",
      "Label": "strømprisen er 10% lavere enn daglig gjennomsnitt",
      "SuccessTransition": "1",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:evt/rt:app/rn:energy_guard/ad:1",
      "Service": "energy_price",
      "ServiceInterface": "evt.energy_price.report",
      "Config": {
        "InputVariableType": null,
        "IsValueFilterEnabled": false,
        "LookupServiceNameAndLocation": false,
        "PropFilterName": "",
        "PropFilterValue": "",
        "RegisterAsVirtualService": false,
        "Timeout": 0,
        "ValueFilter": {
          "Value": null,
          "ValueType": null
        },
        "ValueJPath": null,
        "ValueJPathResultType": null,
        "VirtualServiceGroup": "",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": null,
          "nodeId": null,
          "nodeName": "energy",
          "nodeType": "energy"
        },
        "x": 100,
        "y": 200
      },
      "TypeAlias": "Trigger"
    },
    {
      "Id": "1",
      "Type": "transform",
      "Label": "get average",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": {
        "Expression": "",
        "IsLVariableGlobal": false,
        "IsRVariableGlobal": false,
        "IsTargetVariableGlobal": false,
        "IsTargetVariableInMemory": false,
        "LVariableName": "",
        "RValue": {
          "Value": 0,
          "ValueType": "int"
        },
        "RVariableName": "",
        "Rtype": "var",
        "TargetVariableName": "",
        "TargetVariableType": "",
        "Template": "",
        "TransformType": "jpath",
        "ValueMapping": [],
        "XPathMapping": [
          {
            "Path": "$.average",
            "TargetVariableName": "average",
            "TargetVariableType": "int",
            "UpdateInputVariable": false
          }
        ]
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": null,
          "nodeId": null,
          "nodeName": "value",
          "nodeType": "energy"
        },
        "x": 100,
        "y": 400
      },
      "TypeAlias": "Transform"
    },
    {
      "Id": "2",
      "Type": "trigger",
      "Label": "",
      "SuccessTransition": "3",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:evt/rt:app/rn:energy_guard/ad:1",
      "Service": "energy_price",
      "ServiceInterface": "evt.energy_price.report",
      "Config": {
        "InputVariableType": null,
        "IsValueFilterEnabled": false,
        "LookupServiceNameAndLocation": false,
        "PropFilterName": "",
        "PropFilterValue": "",
        "RegisterAsVirtualService": false,
        "Timeout": 0,
        "ValueFilter": {
          "Value": null,
          "ValueType": null
        },
        "ValueJPath": null,
        "ValueJPathResultType": null,
        "VirtualServiceGroup": "",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": null,
          "nodeId": null,
          "nodeName": "energy",
          "nodeType": "energy"
        },
        "x": 500,
        "y": 200
      },
      "TypeAlias": "Trigger"
    },
    {
      "Id": "3",
      "Type": "transform",
      "Label": "get price",
      "SuccessTransition": "4",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": {
        "Expression": "",
        "IsLVariableGlobal": false,
        "IsRVariableGlobal": false,
        "IsTargetVariableGlobal": false,
        "IsTargetVariableInMemory": false,
        "LVariableName": "",
        "RValue": {
          "Value": 0,
          "ValueType": "int"
        },
        "RVariableName": "",
        "Rtype": "var",
        "TargetVariableName": "",
        "TargetVariableType": "",
        "Template": "",
        "TransformType": "jpath",
        "ValueMapping": [],
        "XPathMapping": [
          {
            "Path": "$.price",
            "TargetVariableName": "price",
            "TargetVariableType": "int",
            "UpdateInputVariable": false
          }
        ]
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": null,
          "nodeId": null,
          "nodeName": "value",
          "nodeType": "energy"
        },
        "x": 500,
        "y": 400
      },
      "TypeAlias": "Transform"
    },
    {
      "Id": "4",
      "Type": "wait",
      "Label": "Wait 1s for variable",
      "SuccessTransition": "5",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": 1000,
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": null,
          "nodeId": null,
          "nodeName": "wait",
          "nodeType": "energy"
        },
        "x": 500,
        "y": 700
      },
      "TypeAlias": "Delay"
    },
    {
      "Id": "5",
      "Type": "transform",
      "Label": "price - (average * 0.9)",
      "SuccessTransition": "6",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": {
        "Expression": "price - (average * 0.9)",
        "IsLVariableGlobal": false,
        "IsRVariableGlobal": false,
        "IsTargetVariableGlobal": false,
        "IsTargetVariableInMemory": false,
        "LVariableName": "average",
        "RValue": {
          "Value": 0,
          "ValueType": "float"
        },
        "RVariableName": "",
        "Rtype": "var",
        "TargetVariableName": "difference",
        "TargetVariableType": "float",
        "Template": "",
        "TransformType": "calc",
        "ValueMapping": [],
        "XPathMapping": []
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": {
            "flow_part": "main",
            "node_type": "transform_calc",
            "threshold": 0.1
          },
          "nodeId": null,
          "nodeName": "value",
          "nodeType": "energy"
        },
        "x": 500,
        "y": 900
      },
      "TypeAlias": "Transform"
    },
    {
      "Id": "6",
      "Type": "if",
      "Label": "difference lt 0",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": {
        "Expression": [
          {
            "BooleanOperator": "",
            "LeftVariableIsGlobal": false,
            "LeftVariableName": "difference",
            "Operand": "lt",
            "RightVariable": {
              "Value": 0,
              "ValueType": "float"
            }
          }
        ],
        "FalseTransition": "22",
        "TrueTransition": "7"
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": {
            "flow_part": "main",
            "node_type": "if_diff"
          },
          "nodeId": null,
          "nodeName": "If",
          "nodeType": "If"
        },
        "x": 500,
        "y": 1100
      },
      "TypeAlias": "If condition"
    },
    {
      "Id": "7",
      "Type": "if",
      "Label": "og modusen er søvn",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "tpflow",
      "ServiceInterface": "",
      "Config": {
        "Expression": [
          {
            "BooleanOperator": "",
            "LeftVariableIsGlobal": true,
            "LeftVariableName": "fh.home.mode",
            "Operand": "eq",
            "RightVariable": {
              "Value": "sleep",
              "ValueType": "string"
            }
          }
        ],
        "FalseTransition": "",
        "TrueTransition": "ec1b6bfa-391b-4101-af37-ee3fa89943fc"
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": {
            "flow_part": "main"
          },
          "nodeId": "sleep",
          "nodeName": "If",
          "nodeType": "modeTrigger"
        },
        "x": 500,
        "y": 1300
      },
      "TypeAlias": "If condition"
    },
    {
      "Id": "22",
      "Type": "if",
      "Label": "og modusen er søvn",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "tpflow",
      "ServiceInterface": "",
      "Config": {
        "Expression": [
          {
            "BooleanOperator": "",
            "LeftVariableIsGlobal": true,
            "LeftVariableName": "fh.home.mode",
            "Operand": "eq",
            "RightVariable": {
              "Value": "sleep",
              "ValueType": "string"
            }
          }
        ],
        "FalseTransition": "",
        "TrueTransition": "b4a8eeab-8c5d-43b4-ba0d-6b6cac1937c7"
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": {
            "flow_part": "reverse"
          },
          "nodeId": "sleep",
          "nodeName": "If",
          "nodeType": "modeTrigger"
        },
        "x": 900,
        "y": 1300
      },
      "TypeAlias": "If condition"
    },
    {
      "Id": "ec1b6bfa-391b-4101-af37-ee3fa89943fc",
      "Type": "action",
      "Label": "Varmtvannsbereder slås på",
      "SuccessTransition": "23",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:cmd/rt:dev/rn:zigbee/ad:1/sv:out_bin_switch/ad:1_1",
      "Service": "out_bin_switch",
      "ServiceInterface": "cmd.binary.set",
      "Config": {
        "DefaultValue": {
          "Value": true,
          "ValueType": "bool"
        },
        "IsVariableGlobal": false,
        "LookupServiceNameAndLocation": false,
        "Props": {},
        "RegisterAsVirtualService": false,
        "ResponseToTopic": null,
        "VariableName": "",
        "VirtualServiceGroup": "ch_0",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": null,
          "nodeId": "1",
          "nodeName": "device",
          "nodeType": "deviceAction"
        },
        "x": 500,
        "y": 1500
      },
      "TypeAlias": "Action",
      "LastValue": false
    },
    {
      "Id": "b4a8eeab-8c5d-43b4-ba0d-6b6cac1937c7",
      "Type": "action",
      "Label": "Varmtvannsbereder slås av",
      "SuccessTransition": "26",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:cmd/rt:dev/rn:zigbee/ad:1/sv:out_bin_switch/ad:1_1",
      "Service": "out_bin_switch",
      "ServiceInterface": "cmd.binary.set",
      "Config": {
        "DefaultValue": {
          "Value": false,
          "ValueType": "bool"
        },
        "IsVariableGlobal": false,
        "LookupServiceNameAndLocation": false,
        "Props": {},
        "RegisterAsVirtualService": false,
        "ResponseToTopic": null,
        "VariableName": "",
        "VirtualServiceGroup": "ch_0",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": {
            "flow_part": "reverse"
          },
          "nodeId": "1",
          "nodeName": "device",
          "nodeType": "energyReverseDeviceAction"
        },
        "x": 900,
        "y": 1500
      },
      "TypeAlias": "Action",
      "LastValue": false
    },
    {
      "Id": "23",
      "Type": "action",
      "Label": "Varmtvannsbereder på - 10% søvn push",
      "SuccessTransition": "27",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:evt/rt:app/rn:kind_owl/ad:1",
      "Service": "kind-owl",
      "ServiceInterface": "evt.notification.report",
      "Config": {
        "DefaultValue": {
          "Value": {
            "EventName": "custom",
            "MessageContent": "Varmtvannsbereder på - 10% søvn push",
            "SiteId": "d4bf02cb-6d54-476c-8106-61c1f9806262"
          },
          "ValueType": "object"
        },
        "IsVariableGlobal": false,
        "Props": {},
        "RegisterAsVirtualService": false,
        "VariableName": "",
        "VirtualServiceGroup": "",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "notification_action",
        "x": 572,
        "y": 1686
      },
      "TypeAlias": "Notification"
    },
    {
      "Id": "26",
      "Type": "action",
      "Label": "Varmtvannsbereder av - 10% søvn push",
      "SuccessTransition": "29",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:evt/rt:app/rn:kind_owl/ad:1",
      "Service": "kind-owl",
      "ServiceInterface": "evt.notification.report",
      "Config": {
        "DefaultValue": {
          "Value": {
            "EventName": "custom",
            "MessageContent": "Varmtvannsbereder av - 10% søvn push",
            "SiteId": "d4bf02cb-6d54-476c-8106-61c1f9806262"
          },
          "ValueType": "object"
        },
        "IsVariableGlobal": false,
        "Props": {},
        "RegisterAsVirtualService": false,
        "VariableName": "",
        "VirtualServiceGroup": "",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "notification_action",
        "x": 933,
        "y": 1675
      },
      "TypeAlias": "Notification"
    },
    {
      "Id": "27",
      "Type": "transform",
      "Label": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "SuccessTransition": "28",
      "ErrorTransition": "",
      "Config": {
        "TargetVariableName": "",
        "TargetVariableType": "",
        "IsTargetVariableGlobal": false,
        "IsTargetVariableInMemory": true,
        "TransformType": "template",
        "Rtype": "var",
        "IsRVariableGlobal": false,
        "IsLVariableGlobal": false,
        "Expression": "",
        "RValue": {
          "ValueType": "int",
          "Value": 0
        },
        "RVariableName": "",
        "LVariableName": "",
        "ValueMapping": [],
        "XPathMapping": [],
        "Template": ""
      },
      "Ui": {
        "x": 617,
        "y": 1911,
        "nodeType": ""
      },
      "TypeAlias": "Transform"
    },
    {
      "Id": "28",
      "Type": "action",
      "Label": "Publish timeline",
      "Address": "pt:j1/mt:cmd/rt:app/rn:time_owl/ad:1",
      "Service": "time_owl",
      "ServiceInterface": "cmd.timeline.set",
      "SuccessTransition": "",
      "ErrorTransition": "",
      "Config": {
        "VariableName": "",
        "IsVariableGlobal": false,
        "Props": {},
        "RegisterAsVirtualService": false,
        "VirtualServiceGroup": "",
        "VirtualServiceProps": {},
        "DefaultValue": {
          "Value": {
            "message_en": "",
            "message_no": "Varmtvannsbereder på - 10% søvn",
            "sender": "flow"
          },
          "ValueType": "str_map"
        }
      },
      "Ui": {
        "x": 673,
        "y": 2113,
        "nodeType": "timeline_action"
      },
      "TypeAlias": "Timeline"
    },
    {
      "Id": "29",
      "Type": "transform",
      "Label": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "SuccessTransition": "30",
      "ErrorTransition": "",
      "Config": {
        "TargetVariableName": "",
        "TargetVariableType": "",
        "IsTargetVariableGlobal": false,
        "IsTargetVariableInMemory": true,
        "TransformType": "template",
        "Rtype": "var",
        "IsRVariableGlobal": false,
        "IsLVariableGlobal": false,
        "Expression": "",
        "RValue": {
          "ValueType": "int",
          "Value": 0
        },
        "RVariableName": "",
        "LVariableName": "",
        "ValueMapping": [],
        "XPathMapping": [],
        "Template": ""
      },
      "Ui": {
        "x": 959,
        "y": 1894,
        "nodeType": ""
      },
      "TypeAlias": "Transform"
    },
    {
      "Id": "30",
      "Type": "action",
      "Label": "Publish timeline",
      "Address": "pt:j1/mt:cmd/rt:app/rn:time_owl/ad:1",
      "Service": "time_owl",
      "ServiceInterface": "cmd.timeline.set",
      "SuccessTransition": "",
      "ErrorTransition": "",
      "Config": {
        "VariableName": "",
        "IsVariableGlobal": false,
        "Props": {},
        "RegisterAsVirtualService": false,
        "VirtualServiceGroup": "",
        "VirtualServiceProps": {},
        "DefaultValue": {
          "Value": {
            "message_en": "",
            "message_no": "Varmtvannsbereder av - 10% søvn",
            "sender": "flow"
          },
          "ValueType": "str_map"
        }
      },
      "Ui": {
        "x": 1043,
        "y": 2103,
        "nodeType": "timeline_action"
      },
      "TypeAlias": "Timeline"
    }
  ],
  "Settings": null,
  "IsDisabled": false,
  "IsDefault": false,
  "ParallelExecution": "parallel"
}

Hi,
If you’re only trying to publish to the timeline about the hot weater beeing able to be on or off You should be fine having it like this:
I added the timeline message to the english field also just incase.
Otherwise you could try to change places on the push and timeline notification (so that the push comes last) but it shouldn’t matter. Hope this works :slight_smile:

{
  "Id": "16e87d60-53b3-11ed-84a2-5f2c9c94baa1",
  "ClassId": "16e87d60-53b3-11ed-84a2-5f2c9c94baa1",
  "Author": "jallaj@hotmail.com",
  "Version": 0,
  "CreatedAt": "2022-10-24T15:46:56.694899Z",
  "UpdatedAt": "2022-10-24T21:30:00.028177825+02:00",
  "Name": "når strømprisen er 10% lavere enn daglig gjennomsnitt og modusen er søvn",
  "Group": "energy_price",
  "Description": "Varmtvannsbereder slås på\nellers\nVarmtvannsbereder slås av\n",
  "Nodes": [
    {
      "Id": "c42575dd-1499-48be-aa1d-1586fdc66b41",
      "Type": "trigger",
      "Label": "strømprisen er 10% lavere enn daglig gjennomsnitt",
      "SuccessTransition": "1",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:evt/rt:app/rn:energy_guard/ad:1",
      "Service": "energy_price",
      "ServiceInterface": "evt.energy_price.report",
      "Config": {
        "InputVariableType": null,
        "IsValueFilterEnabled": false,
        "LookupServiceNameAndLocation": false,
        "PropFilterName": "",
        "PropFilterValue": "",
        "RegisterAsVirtualService": false,
        "Timeout": 0,
        "ValueFilter": {
          "Value": null,
          "ValueType": null
        },
        "ValueJPath": null,
        "ValueJPathResultType": null,
        "VirtualServiceGroup": "",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": null,
          "nodeId": null,
          "nodeName": "energy",
          "nodeType": "energy"
        },
        "x": 100,
        "y": 200
      },
      "TypeAlias": "Trigger"
    },
    {
      "Id": "1",
      "Type": "transform",
      "Label": "get average",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": {
        "Expression": "",
        "IsLVariableGlobal": false,
        "IsRVariableGlobal": false,
        "IsTargetVariableGlobal": false,
        "IsTargetVariableInMemory": false,
        "LVariableName": "",
        "RValue": {
          "Value": 0,
          "ValueType": "int"
        },
        "RVariableName": "",
        "Rtype": "var",
        "TargetVariableName": "",
        "TargetVariableType": "",
        "Template": "",
        "TransformType": "jpath",
        "ValueMapping": [],
        "XPathMapping": [
          {
            "Path": "$.average",
            "TargetVariableName": "average",
            "TargetVariableType": "int",
            "UpdateInputVariable": false
          }
        ]
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": null,
          "nodeId": null,
          "nodeName": "value",
          "nodeType": "energy"
        },
        "x": 110,
        "y": 416
      },
      "TypeAlias": "Transform"
    },
    {
      "Id": "2",
      "Type": "trigger",
      "Label": "",
      "SuccessTransition": "3",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:evt/rt:app/rn:energy_guard/ad:1",
      "Service": "energy_price",
      "ServiceInterface": "evt.energy_price.report",
      "Config": {
        "InputVariableType": null,
        "IsValueFilterEnabled": false,
        "LookupServiceNameAndLocation": false,
        "PropFilterName": "",
        "PropFilterValue": "",
        "RegisterAsVirtualService": false,
        "Timeout": 0,
        "ValueFilter": {
          "Value": null,
          "ValueType": null
        },
        "ValueJPath": null,
        "ValueJPathResultType": null,
        "VirtualServiceGroup": "",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": null,
          "nodeId": null,
          "nodeName": "energy",
          "nodeType": "energy"
        },
        "x": 524,
        "y": 199
      },
      "TypeAlias": "Trigger"
    },
    {
      "Id": "3",
      "Type": "transform",
      "Label": "get price",
      "SuccessTransition": "4",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": {
        "Expression": "",
        "IsLVariableGlobal": false,
        "IsRVariableGlobal": false,
        "IsTargetVariableGlobal": false,
        "IsTargetVariableInMemory": false,
        "LVariableName": "",
        "RValue": {
          "Value": 0,
          "ValueType": "int"
        },
        "RVariableName": "",
        "Rtype": "var",
        "TargetVariableName": "",
        "TargetVariableType": "",
        "Template": "",
        "TransformType": "jpath",
        "ValueMapping": [],
        "XPathMapping": [
          {
            "Path": "$.price",
            "TargetVariableName": "price",
            "TargetVariableType": "int",
            "UpdateInputVariable": false
          }
        ]
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": null,
          "nodeId": null,
          "nodeName": "value",
          "nodeType": "energy"
        },
        "x": 514,
        "y": 419
      },
      "TypeAlias": "Transform"
    },
    {
      "Id": "4",
      "Type": "wait",
      "Label": "Wait 1s for variable",
      "SuccessTransition": "5",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": 1000,
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": null,
          "nodeId": null,
          "nodeName": "wait",
          "nodeType": "energy"
        },
        "x": 516,
        "y": 702
      },
      "TypeAlias": "Delay"
    },
    {
      "Id": "5",
      "Type": "transform",
      "Label": "price - (average * 0.9)",
      "SuccessTransition": "6",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": {
        "Expression": "price - (average * 0.9)",
        "IsLVariableGlobal": false,
        "IsRVariableGlobal": false,
        "IsTargetVariableGlobal": false,
        "IsTargetVariableInMemory": false,
        "LVariableName": "average",
        "RValue": {
          "Value": 0,
          "ValueType": "float"
        },
        "RVariableName": "",
        "Rtype": "var",
        "TargetVariableName": "difference",
        "TargetVariableType": "float",
        "Template": "",
        "TransformType": "calc",
        "ValueMapping": [],
        "XPathMapping": []
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": {
            "flow_part": "main",
            "node_type": "transform_calc",
            "threshold": 0.1
          },
          "nodeId": null,
          "nodeName": "value",
          "nodeType": "energy"
        },
        "x": 512,
        "y": 914
      },
      "TypeAlias": "Transform"
    },
    {
      "Id": "6",
      "Type": "if",
      "Label": "difference lt 0",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": {
        "Expression": [
          {
            "BooleanOperator": "",
            "LeftVariableIsGlobal": false,
            "LeftVariableName": "difference",
            "Operand": "lt",
            "RightVariable": {
              "Value": 0,
              "ValueType": "float"
            }
          }
        ],
        "FalseTransition": "22",
        "TrueTransition": "7"
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": {
            "flow_part": "main",
            "node_type": "if_diff"
          },
          "nodeId": null,
          "nodeName": "If",
          "nodeType": "If"
        },
        "x": 500,
        "y": 1100
      },
      "TypeAlias": "If condition"
    },
    {
      "Id": "7",
      "Type": "if",
      "Label": "og modusen er søvn",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "tpflow",
      "ServiceInterface": "",
      "Config": {
        "Expression": [
          {
            "BooleanOperator": "",
            "LeftVariableIsGlobal": true,
            "LeftVariableName": "fh.home.mode",
            "Operand": "eq",
            "RightVariable": {
              "Value": "sleep",
              "ValueType": "string"
            }
          }
        ],
        "FalseTransition": "",
        "TrueTransition": "ec1b6bfa-391b-4101-af37-ee3fa89943fc"
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": {
            "flow_part": "main"
          },
          "nodeId": "sleep",
          "nodeName": "If",
          "nodeType": "modeTrigger"
        },
        "x": 496,
        "y": 1307
      },
      "TypeAlias": "If condition"
    },
    {
      "Id": "22",
      "Type": "if",
      "Label": "og modusen er søvn",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "tpflow",
      "ServiceInterface": "",
      "Config": {
        "Expression": [
          {
            "BooleanOperator": "",
            "LeftVariableIsGlobal": true,
            "LeftVariableName": "fh.home.mode",
            "Operand": "eq",
            "RightVariable": {
              "Value": "sleep",
              "ValueType": "string"
            }
          }
        ],
        "FalseTransition": "",
        "TrueTransition": "b4a8eeab-8c5d-43b4-ba0d-6b6cac1937c7"
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": {
            "flow_part": "reverse"
          },
          "nodeId": "sleep",
          "nodeName": "If",
          "nodeType": "modeTrigger"
        },
        "x": 880,
        "y": 1293
      },
      "TypeAlias": "If condition"
    },
    {
      "Id": "ec1b6bfa-391b-4101-af37-ee3fa89943fc",
      "Type": "action",
      "Label": "Varmtvannsbereder slås på",
      "SuccessTransition": "23",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:cmd/rt:dev/rn:zigbee/ad:1/sv:out_bin_switch/ad:1_1",
      "Service": "out_bin_switch",
      "ServiceInterface": "cmd.binary.set",
      "Config": {
        "DefaultValue": {
          "Value": true,
          "ValueType": "bool"
        },
        "IsVariableGlobal": false,
        "LookupServiceNameAndLocation": false,
        "Props": {},
        "RegisterAsVirtualService": false,
        "ResponseToTopic": null,
        "VariableName": "",
        "VirtualServiceGroup": "ch_0",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": null,
          "nodeId": "1",
          "nodeName": "device",
          "nodeType": "deviceAction"
        },
        "x": 500,
        "y": 1500
      },
      "TypeAlias": "Action",
      "LastValue": false
    },
    {
      "Id": "b4a8eeab-8c5d-43b4-ba0d-6b6cac1937c7",
      "Type": "action",
      "Label": "Varmtvannsbereder slås av",
      "SuccessTransition": "26",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:cmd/rt:dev/rn:zigbee/ad:1/sv:out_bin_switch/ad:1_1",
      "Service": "out_bin_switch",
      "ServiceInterface": "cmd.binary.set",
      "Config": {
        "DefaultValue": {
          "Value": false,
          "ValueType": "bool"
        },
        "IsVariableGlobal": false,
        "LookupServiceNameAndLocation": false,
        "Props": {},
        "RegisterAsVirtualService": false,
        "ResponseToTopic": null,
        "VariableName": "",
        "VirtualServiceGroup": "ch_0",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "customValues": {
            "flow_part": "reverse"
          },
          "nodeId": "1",
          "nodeName": "device",
          "nodeType": "energyReverseDeviceAction"
        },
        "x": 882,
        "y": 1501
      },
      "TypeAlias": "Action",
      "LastValue": false
    },
    {
      "Id": "23",
      "Type": "action",
      "Label": "Varmtvannsbereder på - 10% søvn push",
      "SuccessTransition": "28",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:evt/rt:app/rn:kind_owl/ad:1",
      "Service": "kind-owl",
      "ServiceInterface": "evt.notification.report",
      "Config": {
        "DefaultValue": {
          "Value": {
            "EventName": "custom",
            "MessageContent": "Varmtvannsbereder på - 10% søvn push",
            "SiteId": "17af504d-ea9e-4f5f-8808-1b2d5dcf8bf4"
          },
          "ValueType": "object"
        },
        "IsVariableGlobal": false,
        "Props": {},
        "RegisterAsVirtualService": false,
        "VariableName": "",
        "VirtualServiceGroup": "",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "notification_action",
        "x": 543,
        "y": 1706
      },
      "TypeAlias": "Notification"
    },
    {
      "Id": "26",
      "Type": "action",
      "Label": "Varmtvannsbereder av - 10% søvn push",
      "SuccessTransition": "30",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:evt/rt:app/rn:kind_owl/ad:1",
      "Service": "kind-owl",
      "ServiceInterface": "evt.notification.report",
      "Config": {
        "DefaultValue": {
          "Value": {
            "EventName": "custom",
            "MessageContent": "Varmtvannsbereder av - 10% søvn push",
            "SiteId": "17af504d-ea9e-4f5f-8808-1b2d5dcf8bf4"
          },
          "ValueType": "object"
        },
        "IsVariableGlobal": false,
        "Props": {},
        "RegisterAsVirtualService": false,
        "VariableName": "",
        "VirtualServiceGroup": "",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "notification_action",
        "x": 933,
        "y": 1675
      },
      "TypeAlias": "Notification"
    },
    {
      "Id": "28",
      "Type": "action",
      "Label": "Publish timeline",
      "Address": "pt:j1/mt:cmd/rt:app/rn:time_owl/ad:1",
      "Service": "time_owl",
      "ServiceInterface": "cmd.timeline.set",
      "SuccessTransition": "",
      "ErrorTransition": "",
      "Config": {
        "VariableName": "",
        "IsVariableGlobal": false,
        "Props": {},
        "RegisterAsVirtualService": false,
        "VirtualServiceGroup": "",
        "VirtualServiceProps": {},
        "DefaultValue": {
          "Value": {
            "message_en": "Varmtvannsbereder på - 10% søvn",
            "message_no": "Varmtvannsbereder på - 10% søvn",
            "sender": "flow"
          },
          "ValueType": "str_map"
        }
      },
      "Ui": {
        "x": 547,
        "y": 1912,
        "nodeType": "timeline_action"
      },
      "TypeAlias": "Timeline"
    },
    {
      "Id": "30",
      "Type": "action",
      "Label": "Publish timeline",
      "Address": "pt:j1/mt:cmd/rt:app/rn:time_owl/ad:1",
      "Service": "time_owl",
      "ServiceInterface": "cmd.timeline.set",
      "SuccessTransition": "",
      "ErrorTransition": "",
      "Config": {
        "VariableName": "",
        "IsVariableGlobal": false,
        "Props": {},
        "RegisterAsVirtualService": false,
        "VirtualServiceGroup": "",
        "VirtualServiceProps": {},
        "DefaultValue": {
          "Value": {
            "message_en": "Varmtvannsbereder av - 10% søvn",
            "message_no": "Varmtvannsbereder av - 10% søvn",
            "sender": "flow"
          },
          "ValueType": "str_map"
        }
      },
      "Ui": {
        "x": 950,
        "y": 1915,
        "nodeType": "timeline_action"
      },
      "TypeAlias": "Timeline"
    }
  ],
  "Settings": null,
  "IsDisabled": false,
  "IsDefault": false,
  "ParallelExecution": "parallel"
}
2 Likes