writePoints
Write one or more points to a single tag. Tags are created automatically if missing.
Signature
Section titled “Signature”writePoints(tag, points)
tag(str)points(dict | list[dict])
Inputs
Section titled “Inputs”tag: Tag name to write to.points: One point dict or a list of points withvalue,timestamp, optionalstatus.
Examples
Section titled “Examples”JSON output (multiple points)
Section titled “JSON output (multiple points)”result = hm.writePoints( "DEMO_02TI301.PV", [ {"value": 38.5, "timestamp": "2024-01-01 00:00:00"}, {"value": 38.6, "timestamp": "2024-01-01 01:00:00"}, ],)Output:
{ "success": true, "message": "All points written!" }JSON output (single point)
Section titled “JSON output (single point)”result = hm.writePoints( "DEMO_02TI301.PV", {"value": 38.9, "timestamp": "2024-01-01 02:00:00", "status": "OK"},)Output:
{ "success": true, "message": "All points written!" }