This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Zigbee integration
#20
(Yesterday, 11:56)RomansP Wrote: Please test

Code:
local zb = require('applibs.zigbee')

local ieee = 'f4ce36e12b9esa24'

local res, err = zb.cmdsync('getnamedattributes', ieee, 'HaElectricalMeasurement', {'RmsVoltage'})
log(res)
log(err)

local res_2, err_2 = zb.cmdsync('getrawattribute', ieee, 0xFEE7, 0x0010)
log(res_2)
log(err_2)

That worked, thank you again!
Getting 1810912 for a value, not sure how to read that. Maybe it means 1810kWh, which would make sense. 

Here is the log: 

testz 02.07.2025 13:59:46
* table:
["RmsVoltage"]
  * number: 241
testz 02.07.2025 13:59:46
* nil
testz 02.07.2025 13:59:46
* number: 1810912
testz 02.07.2025 13:59:46
* nil
Reply


Messages In This Thread
Zigbee integration - by Alexander - 07.12.2024, 08:03
RE: Zigbee integration - by CristianAgata - 08.12.2024, 13:55
RE: Zigbee integration - by Alexander - 30.06.2025, 09:24
RE: Zigbee integration - by Daniel - 09.12.2024, 08:37
RE: Zigbee integration - by jurmaster - 13.12.2024, 08:19
RE: Zigbee integration - by Daniel - 13.12.2024, 08:37
RE: Zigbee integration - by Daniel - 30.06.2025, 11:05
RE: Zigbee integration - by Alexander - 01.07.2025, 07:33
RE: Zigbee integration - by Daniel - 01.07.2025, 07:37
RE: Zigbee integration - by Alexander - 01.07.2025, 07:45
RE: Zigbee integration - by Daniel - 01.07.2025, 08:04
RE: Zigbee integration - by Alexander - 01.07.2025, 08:09
RE: Zigbee integration - by Daniel - 01.07.2025, 09:56
RE: Zigbee integration - by Alexander - 01.07.2025, 17:18
RE: Zigbee integration - by Daniel - Yesterday, 06:18
RE: Zigbee integration - by Alexander - Yesterday, 07:17
RE: Zigbee integration - by RomansP - Yesterday, 09:48
RE: Zigbee integration - by Alexander - Yesterday, 11:07
RE: Zigbee integration - by RomansP - Yesterday, 11:56
RE: Zigbee integration - by Alexander - Yesterday, 12:12
RE: Zigbee integration - by Alexander - Yesterday, 14:27
RE: Zigbee integration - by RomansP - 8 hours ago

Forum Jump: