{
  "name": "Check and Update Devices Daily",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "id": "b4c8a8e1-7e8e-4f1a-9f1a-1a1a1a1a1a1a",
      "name": "Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        112,
        304
      ],
      "typeVersion": 1.1
    },
    {
      "parameters": {
        "resource": "state",
        "entityId": "sensor.room_temperature"
      },
      "id": "c5d9b9f2-8f9f-5f2b-af2b-2b2b2b2b2b2b",
      "name": "HA",
      "type": "n8n-nodes-base.homeAssistant",
      "position": [
        320,
        304
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "temp_id",
              "name": "temperature",
              "type": "string",
              "value": "={{ $json.state }}"
            },
            {
              "id": "unit_id",
              "name": "unit",
              "type": "string",
              "value": "={{ $json.attributes.unit_of_measurement }}"
            },
            {
              "id": "name_id",
              "name": "friendly_name",
              "type": "string",
              "value": "={{ $json.attributes.friendly_name }}"
            },
            {
              "id": "time_id",
              "name": "timestamp",
              "type": "string",
              "value": "={{ $json.last_changed }}"
            }
          ]
        },
        "options": {}
      },
      "id": "d6e0c0a3-9a0a-6g3c-bf3c-3c3c3c3c3c3c",
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "position": [
        544,
        304
      ],
      "typeVersion": 3.4
    },
    {
      "parameters": {},
      "id": "e7f1d1b4-0b1b-7h4d-cf4d-4d4d4d4d4d4d",
      "name": "Terminal",
      "type": "n8n-nodes-base.noOp",
      "position": [
        768,
        304
      ],
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "HA": {
      "main": [
        [
          {
            "node": "Set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set": {
      "main": [
        [
          {
            "node": "Terminal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule": {
      "main": [
        [
          {
            "node": "HA",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "saveDataErrorExecution": "all",
    "saveDataSuccessExecution": "all",
    "saveManualExecutions": true,
    "saveExecutionProgress": true,
    "callerPolicy": "workflowsFromSameOwner",
    "availableInMCP": false
  },
  "versionId": "a510710d-2f0d-4584-a0b5-13dd60c77808",
  "meta": {
    "instanceId": "e09d1f0f8b9f78e80ac70b6dc8726dd263b0b6ffc4300b0eee3b58f6da316f29"
  },
  "id": "6gN63Cv0C73tWokV",
  "tags": []
}