Logic Machine Forum
Zigbee integration - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: Zigbee integration (/showthread.php?tid=5779)

Pages: 1 2


Zigbee integration - Alexander - 07.12.2024

Hi,

Which Zigbee dongle works on LM5 ?


RE: Zigbee integration - CristianAgata - 08.12.2024

(07.12.2024, 08:03)Alexander Wrote: Hi,

Which Zigbee dongle works on LM5 ?
Hi Alexander,
I suggest to use the usb key or the ZigBee to 232 products (Openrb products)
Best regards Cristian


RE: Zigbee integration - Daniel - 09.12.2024

https://openrb.com/zigbee-rs232-gateway/


RE: Zigbee integration - jurmaster - 13.12.2024

Can the ZigBee RS232 also be used on a Wiser (LM5 lite)? 
And what would be the route/website to obtain, living in Netherlands.

Looking at range.  When the gateway is in good range of 1 of the zigbee devices, the mesh network of Zigbee itself wil work for devices outside the range of the gateway?
Or is the gateway so strong (inside building)? 

Thx for the answers!


RE: Zigbee integration - Daniel - 13.12.2024

SE has its own version of Zigbee interface based on our version but there are some changes so you better get this one for full compatibility. Search for LSS100400
If you add mains powered repeater then the range will be extended beyond the range of the coordinator. Nearly every mains powder zigbee device acts as a repeater.


RE: Zigbee integration - Alexander - 30.06.2025

(08.12.2024, 13:55)CristianAgata Wrote:
(07.12.2024, 08:03)Alexander Wrote: Hi,

Which Zigbee dongle works on LM5 ?
Hi Alexander,
I suggest to use the usb key or the ZigBee to 232 products (Openrb products)
Best regards Cristian

Hi Cristian,
I’m using the RS-232 Zigbee interface with the Zigbee app on LogicMachine, but not all datapoints from the Zigbee device are showing up. Only some clusters or attributes seem to be available. Do you have any experience with this?

Alexander


RE: Zigbee integration - Daniel - 30.06.2025

This is a list of supported devices https://kb.logicmachine.net/misc/zigbee-devices/
If you device is there then it should have majority of features created. If not then it needs a profile. In any case we never create 100% of features of a device as there is far too many.


RE: Zigbee integration - Alexander - 01.07.2025

(30.06.2025, 11:05)Daniel Wrote: This is a list of supported devices https://kb.logicmachine.net/misc/zigbee-devices/
If you device is there then it should have majority of features created. If not then it needs a profile. In any case we never create 100% of features of a device as there is far too many.

Hi Daniel,

It looks like my device is on that list – the Amina S Charger. I'm trying to find the specific datapoint shown in the attached image.
I found this on the following page: Amina Zigbee


RE: Zigbee integration - Daniel - 01.07.2025

Share the Device information from the zigbee app of this device(in text format)


RE: Zigbee integration - Alexander - 01.07.2025

(01.07.2025, 07:37)Daniel Wrote: Share the Device information from the zigbee app of this device(in text format)

Here it is


RE: Zigbee integration - Daniel - 01.07.2025

OK thanks, we will look at it in a couple of days.


RE: Zigbee integration - Alexander - 01.07.2025

(01.07.2025, 08:04)Daniel Wrote: OK thanks, we will look at it in a couple of days.

Thank you Smile


RE: Zigbee integration - Daniel - 01.07.2025

You should be able to read this values via script
https://forum.logicmachine.net/showthread.php?tid=3320&pid=38422&highlight=getrawattribute#pid38422
https://kb.logicmachine.net/libraries/zigbee/#getrawattribute


RE: Zigbee integration - Alexander - 01.07.2025

(01.07.2025, 09:56)Daniel Wrote: You should be able to read this values via script
https://forum.logicmachine.net/showthread.php?tid=3320&pid=38422&highlight=getrawattribute#pid38422
https://kb.logicmachine.net/libraries/zigbee/#getrawattribute

Does this work with older LM5 Lite (newest firmware)? I have this Zigbee gateway from openRb with RS232 communication.


RE: Zigbee integration - Daniel - 02.07.2025

It works with any imx6 version of LM


RE: Zigbee integration - Alexander - 02.07.2025

(02.07.2025, 06:18)Daniel Wrote: It works with any imx6 version of LM

Ok, but I can't get the script to work. Are we supposed to add a user library for this?

Update: I always get the error message: "address must be a string or a number".

Here is my script:
Code:
local zb = require('applibs.zigbee')

local ieee = 'f4ce36e12b9esa24'
local cluster = 0x0B04
local endpoint = 10

local args = {
  ieee = ieee,
  endpoint = endpoint,
  cluster = cluster,
  attributes = { 'rmsvoltage' }
}

local res, err = zb.cmdsync('getnamedattributes', args)

if type(res) == 'table' then
  log('Zigbee-respons: ' .. json.encode(res)) 
  if res.rmsvoltage then
    log('Spenning (RMS): ' .. tostring(res.rmsvoltage) .. ' V')
  else
    log('Ingen rmsvoltage funnet i respons')
  end
else
  log('Feil ved lesing: ' .. tostring(err or 'ingen respons'))
end



RE: Zigbee integration - RomansP - 02.07.2025

Hi

Please try this and give a feedback

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

local ieee = 'f4ce36e12b9esa24'

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

log(res)
log(err)



RE: Zigbee integration - Alexander - 02.07.2025

(02.07.2025, 09:48)RomansP Wrote: Hi

Please try this and give a feedback

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

local ieee = 'f4ce36e12b9esa24'

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

log(res)
log(err)

Hi, this works. Thank you.

Log:
testz 02.07.2025 13:06:29
* table:
["RmsVoltage"]
  * number: 242
testz 02.07.2025 13:06:29
* nil

(02.07.2025, 09:48)RomansP Wrote: Hi

Please try this and give a feedback

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

local ieee = 'f4ce36e12b9esa24'

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

log(res)
log(err)

Maybe you can help me with reading another value. 
See attached images. I want to read Total Active Energy.


RE: Zigbee integration - RomansP - 02.07.2025

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)



RE: Zigbee integration - Alexander - 02.07.2025

(02.07.2025, 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