ARTICLE

Deye Cloud: คู่มืออ่านข้อมูล Monitoring และวางระบบใช้งานจริง.

คู่มือ Deye Cloud ที่เน้นการอ่าน Energy Flow, Production, Load, Grid, Battery, Historical Data และแนวทาง Troubleshooting ก่อนต่อยอดสู่ Monitoring/Automation

SolarEnergyAutomationโดย Thospaakเผยแพร่ 29 ก.ค. 2568อัปเดต 16 ต.ค. 2569
ภาพสรุป DeyeCloud OpenAPI ผ่าน Deye Adapter ที่ fail closed เมื่อ Grid และ Battery sign semantics ยังยืนยันไม่ได้ ก่อนเข้า Solar Monitor

Deye Cloud เป็นหนึ่งในหัวข้อที่มี Search Demand ชัดจาก legacy Solar.Farm property และเหมาะจะเป็นจุดเชื่อมระหว่าง Solar Troubleshooting กับ Monitoring/Automation ของ Thospaak ใหม่

Deye ESS มี Quick Guide ปัจจุบันที่ระบุว่า Deye Cloud App ใช้สำหรับควบคุมและติดตามอุปกรณ์ที่รองรับ และ Deye มี Developer Portal/OpenAPI สำหรับงานเชื่อมระบบภายนอกโดยตรง ปัจจุบันหน้า Developer Portal ยังประกาศ DeyeCloud OpenAPI เป็น integration product และเอกสาร Deye Open MCP v1.2 (29 กรกฎาคม 2026) ครอบ OpenAPI สำหรับ account, station, device, history, alarm และ control surface อย่างไรก็ตามบทความและ adapter ของ Thospaak รอบนี้จำกัดเฉพาะ read-only monitoring เท่านั้น

แหล่งอ้างอิงหลัก:

สถานะ Integration (ตรวจ 16 ตุลาคม 2026): PR77 merge แล้วพร้อม fixture-driven DeyeCloud OpenAPI adapter โดยยึด station/list + station/latest และเก็บ data-center / account-scope / interface-version provenance ไว้ใน normalized snapshot. Adapter ไม่เดา unit, station status หรือ signed Grid/Battery direction ที่ public schema ไม่ได้ประกาศชัด และไม่มี credential, live network call หรือ remote-control path ใน frontend contract

แผนภาพ Solar Cloud Monitoring จาก Inverter และ Logger ผ่าน DeyeCloud, Official API, Vendor Adapter และ normalized Solar Monitor dashboard
DeyeCloud เป็น Cloud boundary ระหว่างอุปกรณ์กับระบบกลาง การตรวจปัญหาจึงต้องแยก Device/Logger/Network/Cloud/API ออกจากกันก่อนสรุปว่า measurement ผิดหรืออุปกรณ์เสีย

DeyeCloud OpenAPI ที่ใช้เป็นขอบเขตอ้างอิง

เอกสารทางการปัจจุบันระบุ data center สำหรับ developer integration เป็น eu, am และ india และ flow สำหรับ account token ใช้ application credentials ร่วมกับ account credentials เพื่อรับ access token ดังนั้น App ID, App Secret, account password และ token ต้องอยู่ฝั่ง server/integration runtime ไม่ใช่ snapshot หรือ browser bundle

สำหรับ monitoring มี surface ที่เกี่ยวข้องโดยตรง ได้แก่:

  • station/list — รายการสถานีใต้บัญชี พร้อม station ID, ชื่อ, timezone/address และค่าบางส่วน เช่น installed capacity, battery SOC, connection status และ last update
  • station/latest — latest station data เช่น generation, consumption, grid, battery power/SOC และ lastUpdateTime
  • device/latest — latest device data แบบ batch; จุดสำคัญคือแต่ละ measurement มี key, value และ unit
  • station history APIs (station_history / station_history_power ใน Deye Open MCP) — ข้อมูลย้อนหลังตามช่วงเวลา
  • station/device alert list — แยก alarm/fault retrieval ออกจากการตีความค่าหน้า dashboard

ข้อจำกัดสำคัญคือ public station-level schema ที่ตรวจได้ระบุ field/type แต่ ไม่ได้ประกาศ power/capacity unit สำหรับทุก field อย่างชัดเจน และ station-level connectionStatus ก็ไม่ได้มี enum contract ที่ละเอียดพอให้เดาข้าม deployment/version ได้อย่างปลอดภัย Thospaak จึงใช้ policy เดียวกับ adapter อื่น: deployment ต้อง bind unit/status ที่ตรวจสอบแล้วเอง; ถ้าไม่รู้ให้ normalize เป็น null/unknown พร้อม issue แทนการสมมติ

ข้อจำกัดเดียวกันเกิดกับ signed batteryPower และ gridPower: public Open MCP/OpenAPI schema ปัจจุบันแสดง field เหล่านี้รวมถึง chargePower, dischargePower, purchasePower และ wirePower แต่ยังไม่ได้ประกาศ sign convention ชัดพอให้สรุปว่าเครื่องหมายบวก/ลบหมายถึง Charge/Discharge หรือ Import/Export แบบใด PR77 จึงปล่อย canonical batteryPowerKw/gridPowerKw เป็น null พร้อม issue จนกว่า deployment จะ bind direction semantics จาก contract ที่ตรวจสอบได้เอง; UI จะไม่เดาจากชื่อ field หรือค่าตัวอย่าง

แผนภาพ Deye adapter ที่ยอมรับ PV และ Load เมื่อหน่วยตรวจสอบได้ แต่ปล่อย Grid และ Battery เป็น null เมื่อ sign convention ยังไม่ได้รับการยืนยัน
Fail closed ไม่ได้หมายถึง adapter ใช้งานไม่ได้: identity, PV, Load, SOC และ timestamp ที่ตรวจสอบได้ยังคงใช้ต่อได้ ส่วน directional power ที่ความหมายยังไม่ชัดจะถูกกั้นไว้แทนการเดา

station/latest.lastUpdateTime ถูกอธิบายเป็น date-time ขณะที่ตัวอย่าง station/list.lastUpdateTime ปรากฏเป็น epoch-like number จึงต้องรักษา timestamp provenance เช่นเดียวกัน: string ต้องมี timezone ชัด และ numeric timestamp ต้องประกาศว่าเป็น seconds หรือ milliseconds ก่อน normalize

Deye ยังประกาศแนวทางลด polling โดยแนะนำ dashboard ประมาณ 1–2 นาที และระบุ quota/QPM ที่กำลังปรับ service model อยู่ ตัวเลข quotaที่ประกาศใน Best Practices ยังเป็น preliminary จึงไม่ควร hard-code เป็น product contract; integration จริงควรอ่าน rate-limit response/announcement ล่าสุดและใช้ caching/backoff

Polling และ Cache ควรตาม cadence ของข้อมูลจริง

Best Practices ของ Deye ที่อัปเดต 20 กันยายน 2026 แนะนำให้ลดการ polling ที่ถี่เกิน hardware/cloud refresh rate โดย dashboard ที่ผู้ใช้กำลังเปิดเหมาะกับช่วงประมาณ 1–2 นาที, background monitoring ประมาณ 5 นาที, ส่วน historical report มักพอที่วันละครั้ง เอกสารยังบอกว่าการ poll ทุก 1–5 วินาทีเป็นรูปแบบที่สิ้นเปลืองและควรแก้ก่อน

ข้อมูล แนวทางเริ่มต้น
Plant/device inventory cache ยาวและ refresh เมื่อ topology เปลี่ยน
Dashboard realtime poll ประมาณ 1–2 นาที แล้วใช้ TTL cache
Background health ประมาณ 5 นาที
Historical report ดึงตามช่วงเวลาที่ต้องใช้และ cache ได้ยาว
429 / 5xx exponential backoff + stagger requests

ตัวเลขอย่าง base quota/QPM ที่หน้า Best Practices แสดงอยู่ยังถูกระบุว่า preliminary / subject to change จึงใช้สำหรับ capacity planning ได้ แต่ไม่ควรเขียนเป็น invariant ใน adapter หรือ UI

เริ่มจากอ่าน Energy Flow ให้เป็น

หน้า Monitoring ที่ดีไม่ควรดูเพียงตัวเลขกำลังผลิตจากแผง แต่ควรช่วยตอบว่าในขณะนั้นพลังงานกำลังไหลจากไหนไปไหน เช่น:

  • Solar กำลังผลิตเท่าไร
  • Load กำลังใช้เท่าไร
  • มีการ Import หรือ Export กับ Grid หรือไม่
  • Battery กำลังชาร์จหรือคายประจุอยู่หรือไม่ในระบบที่มี Battery

คำว่า Export บน Dashboard หมายถึงทิศทางพลังงานที่ระบบตรวจวัดว่ากำลังไหลออกไปทาง Grid เท่านั้น ไม่ได้ยืนยันโดยตัวมันเองว่าผู้ใช้กำลัง “ขายไฟ” หรือได้รับค่าตอบแทน เพราะเรื่องนั้นขึ้นกับการต่อระบบ มิเตอร์ ข้อตกลง และโครงการที่ใช้งานจริง

ชื่อ Widget และค่าที่แสดงจริงอาจแตกต่างตาม Inverter, Logger และรูปแบบระบบ จึงต้องระบุบริบทของอุปกรณ์ให้ชัดเจน

Monitoring ควรตอบมากกว่า “วันนี้ผลิตได้กี่หน่วย”

ข้อมูลย้อนหลังมีประโยชน์เมื่อใช้หา Pattern และความผิดปกติ เช่น:

  • กำลังผลิตลดลงจากวันที่มีสภาพแสงใกล้เคียงกันหรือไม่
  • Load กลางคืนสูงผิดปกติหรือไม่
  • Battery ทำงานตรงกับ Schedule/Mode ที่ตั้งไว้หรือไม่
  • มีช่วงที่ Device offline หรือข้อมูลขาดหายหรือไม่

เป้าหมายคือเปลี่ยน Dashboard จากหน้าดูตัวเลขให้เป็นเครื่องมือช่วยตรวจสุขภาพระบบ

Troubleshooting แบบเป็นลำดับ

เมื่อค่าบน Cloud ดูผิดปกติ ควรแยกปัญหาเป็นชั้น ๆ:

  1. ระบบไฟฟ้า/อุปกรณ์จริงมีปัญหาหรือไม่
  2. Inverter หรือ Meter อ่านค่าถูกต้องหรือไม่
  3. Logger/Network ยังออนไลน์หรือไม่
  4. Cloud ได้รับข้อมูลล่าสุดเมื่อใด
  5. ปัญหาอยู่ที่การแสดงผลหรือเป็นค่าจริงจากหน้างาน

วิธีนี้ช่วยลดการสรุปว่าระบบ Solar มีปัญหาทันทีเพียงเพราะ Dashboard แสดงค่าที่ไม่คาดคิด

ควรแยกสถานะ device online, data fresh และ measurement plausible ออกจากกัน เช่น Logger ยัง online แต่ Meter/CT mapping ผิด หรือ Cloud แสดงค่าที่ดูปกติแต่ timestamp ค้างจากก่อน Internet หลุดก็ได้

สำหรับการเก็บข้อมูลระยะยาว ควรบันทึกอย่างน้อย site/device, metric, value+unit, measurement_time, received_time, quality และ source connector เพื่อให้ข้อมูลย้อนหลังจาก Cloud ไม่ถูกตีความเหมือนข้อมูลสด

จาก Cloud ของผู้ผลิตไปสู่ระบบกลาง

สำหรับงานที่มีหลาย Site หรือหลายยี่ห้อ เราไม่ควรบังคับให้ผู้ใช้งานเปิด Cloud ของแต่ละผู้ผลิตแยกกันตลอดเวลา แนวทางระยะยาวของ Thospaak คือสร้าง Connector รายยี่ห้อ แล้ว Normalize ข้อมูลให้อยู่ใน Model กลาง เช่น:

Deye / Huawei / Solis / Hoymiles
              ↓
       Vendor Connectors
              ↓
      Normalized Solar Data
              ↓
 Dashboard / Alerts / Reports
แผนภาพ DeyeCloud และ Vendor Cloud อื่นผ่าน adapter เฉพาะค่ายก่อนสร้าง normalized snapshot สำหรับ Dashboard เดียวกัน
ระบบกลางไม่จำเป็นต้องทำให้ Vendor ทุกตัวมีข้อมูลครบเท่ากัน แต่ต้องทำให้ความหมายของ field ที่มีอยู่ตรงกัน และทำให้สิ่งที่ยังยืนยันไม่ได้เห็นเป็น unavailable อย่างชัดเจน

ลอง Deye partial state ใน Solar Monitor

หน้า Solar Monitor มี Deye fixture ที่ตั้งใจแสดง direction partial: PV/Load/SOC ที่ตรวจสอบ provenance ได้ยังแสดงตามปกติ แต่ Grid/Battery signed power เป็น — / UNAVAILABLE จนกว่า deployment จะมี direction binding ที่ยืนยันจาก primary contract ได้ นอกจากนี้ Scenario Lab ยังมีกรณี missing realtime เพื่อดูว่าหน้า UI แยก online status ออกจาก missing measurements อย่างไร

บทความ Deye Cloud จึงไม่ใช่ปลายทาง แต่เป็นจุดเริ่มต้นไปยัง Lab, Project และ App ด้าน Solar Monitoring โดยไม่ต้องลดมาตรฐาน data quality เพื่อให้ Dashboard ดูเหมือนข้อมูลครบ