Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Writing To Meter Objects Using Python Client

Writing to meter objects using python client

By Harshi_554 , 23 June, 2025
Forums
General discussion

Hii

I'm using below Gurux python client to read meter data.

https://github.com/Gurux/Gurux.DLMS.Python

Now I want to write to the meter objects. Is all the object attributes of a meter is writable? How to check it?
How to write meter objects using gurux python client?

Profile picture for user Kurumi

Kurumi

1 year 1 month ago

Hi, You can check it by…

Hi,

You can check it by calling getAccess. Something like this:

if obj.getAccess(ATTRIBUTE_INDEX) and int(AccessMode.WRITE) != 0:
self.write(obj, ATTRIBUTE_INDEX)

BR,
Mikko

Harshi_554

1 year 1 month ago

Hii , Thank you for your…

Hii ,
Thank you for your reply. Now I got to know how to check object's access rights.
How the write(obj, ATTRIBUTE_INDEX) performs SET operation from client to server? If we are passing only object and attribute number to this function, how the new value is set in the meter? Where it will take the parameter for value? I want to perform SET operation from client to server.

Profile picture for user Kurumi

Kurumi

1 year 1 month ago

Hi, It depends from the…

Hi,

It depends from the COSEM object what you want to write.

You just set new value and then write it.
For e.g. timezone to clock

clock = GXDLMSClock()
clock.timeZone = 60
self.write(clock, 3)

https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSClock

BR,
Mikko

Harshi_554

1 year 1 month ago

Thanks a lot for your reply

Thanks a lot for your reply

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin