Logic Machine Forum
Zigbee gateway 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 gateway integration (/showthread.php?tid=3320)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30


RE: Zigbee gateway integration - stianj - 20.12.2024

No input about these? Mostly interested in a way to use the left/right arrows on the IKEA Styrbar - I had plans for those...


RE: Zigbee gateway integration - admin - 20.12.2024

Custom actions for buttons can be done via a script: https://kb.logicmachine.net/libraries/zigbee/#resident-script-for-monitoring-several-devices
Check ZigBee app monitor on what is sent when a certain button is pressed.


RE: Zigbee gateway integration - tomnord - 25.12.2024

I just got a new hue strip, it won't be added in app. When i set network in open state, it disconnects the rs232 gw it seems. Button for network state dissappears and only a red flashing light on top right corner. Any ideas?

It seems, in monitor, that the gw finds the light, but just wont add it to the list.
# Time Type Address Cluster Action

Data
36 20:41:12.565 RX 14% 086bd7fffeb6c6cb ClosuresDoorLock ReportAttributes AttributeReports = [ { Attribute = { Type = enum8, Value = 2 }, AttributeIdentifier = 0 } ]
35 20:40:43.376 RX - - getpermitjoin addr = -1, max = 50
34 20:40:43.374 RX - - ready connmode = rs232, fwupgrade = false, fwversion = 20221226, ieeeaddr = 00124b00258c4ffa
33 20:40:36.921 RX 14% 086bd7fffeb6c6cb ClosuresDoorLock ReportAttributes AttributeReports = [ { Attribute = { Type = enum8, Value = 1 }, AttributeIdentifier = 3 } ]
32 20:40:35.630 RX - - init -
31 20:40:15.538 RX 54% 001788010c5678ec LightingColorCtrl ReadAttributesResponse ReadAttributeStatusRecords = [ { Attribute = { Type = uint16, Value = 366 }, AttributeIdentifier = 7, Status = SUCCESS } ]
30 20:40:15.519 RX 54% 001788010c5678ec LightingColorCtrl ConfigureReportingResponse AttributeStatusRecords = [ { Status = SUCCESS } ]
29 20:40:15.320 RX 54% 001788010c5678ec LevelCtrl ReadAttributesResponse ReadAttributeStatusRecords = [ { Attribute = { Type = uint8, Value = 254 }, AttributeIdentifier = 0, Status = SUCCESS } ]
28 20:40:15.319 RX 54% 001788010c5678ec LevelCtrl ConfigureReportingResponse AttributeStatusRecords = [ { Status = SUCCESS } ]
27 20:40:15.048 RX 54% 001788010c5678ec OnOff ReadAttributesResponse ReadAttributeStatusRecords = [ { Attribute = { Type = bool, Value = true }, AttributeIdentifier = 0, Status = SUCCESS } ]
26 20:40:15.006 RX 54% 001788010c5678ec OnOff ConfigureReportingResponse AttributeStatusRecords = [ { Status = SUCCESS } ]
25 20:40:14.811 RX 54% 001788010c5678ec Basic ReadAttributesResponse ReadAttributeStatusRecords = [ { Attribute = { Type = string, Value = 1.122.2 }, AttributeIdentifier = 16384, Status = SUCCESS } ]
24 20:40:14.809 RX 54% 001788010c5678ec Basic ReadAttributesResponse ReadAttributeStatusRecords = [ { Attribute = { Type = uint8, Value = 0 }, AttributeIdentifier = 3, Status = SUCCESS }, { Attribute = { Type = string, Value = Signify Netherlands B.V. }, AttributeIdentifier = 4, Status = SUCCESS }, { Attribute = { Type = string, Value = LCL001 }, AttributeIdentifier = 5, Status = SUCCESS } ]
23 20:40:14.408 RX 001788010c5678ec - announce ieeeaddr = 001788010c5678ec, nwkaddr = 8124


RE: Zigbee gateway integration - admin - 27.12.2024

App has been updated, see if it fixes RGB device pairing for you.


RE: Zigbee gateway integration - tomnord - 27.12.2024

(27.12.2024, 09:13)admin Wrote: App has been updated, see if it fixes RGB device pairing for you.

That did the trick. Thank you.


RE: Zigbee gateway integration - stianj - 30.12.2024

(20.12.2024, 11:49)admin Wrote: Custom actions for buttons can be done via a script: https://kb.logicmachine.net/libraries/zigbee/#resident-script-for-monitoring-several-devices
Check ZigBee app monitor on what is sent when a certain button is pressed.

Thank you very much! I should have known this. Bonus question, though:

Is this an ok way to do this?

Code:
if not zb then
  zb = require('applibs.zigbee')
  zb.addcallback('44e2f8fffe37c87e', function(msg)
        if msg.clustername == "Scenes"  then
            if msg.clusterdata.TradfriArrowHold then
                log('Hold')
            elseif msg.clusterdata.TradfriArrowRelease and msg.clusterdata.TradfriArrowRelease.Value ~= 0 then
                log('Release ' .. msg.clusterdata.TradfriArrowRelease.Value)
            elseif msg.clusterdata.TradfriArrowSingle and msg.clusterdata.TradfriArrowSingle.Value == 2 then
                log('Scene')
            elseif msg.clusterdata.TradfriArrowSingle and msg.clusterdata.TradfriArrowSingle.Value == 257 then
                log('Left')
            elseif msg.clusterdata.TradfriArrowSingle and msg.clusterdata.TradfriArrowSingle.Value == 256 then
                log('Right')
            end
        elseif msg.clustername == "OnOff" then
            if msg.clusterdata.CommandIdentifier == "On" then
                log("On")
            elseif msg.clusterdata.CommandIdentifier == "Off" then
                log("Off")
            end
        elseif msg.clustername == "LevelControl" and msg.clusterdata.MoveWithOnOff and msg.clusterdata.MoveWithOnOff.MoveMode == "Up" then
            log("Up")
        elseif msg.clustername == "LevelControl" and msg.clusterdata.Move and msg.clusterdata.Move.MoveMode and msg.clusterdata.Move.MoveMode == "Down" then
            log("Down")
        elseif msg.clustername == "LevelControl" and msg.clusterdata.CommandIdentifier == "Stop" then
            log("Stop")
        else
            log(msg)
        end
    end)
end

zb.loop(1)



RE: Zigbee gateway integration - admin - 02.01.2025

Script looks ok.


RE: Zigbee gateway integration - stianj - 02.01.2025

(02.01.2025, 10:08)admin Wrote: Script looks ok.

Thanks! Smile It works, but as there was really no examples in the forum for zb.addcallback - and I'm really not good with Lua - I just wanted to check if this was an ok way of doing things.


RE: Zigbee gateway integration - tomnord - 07.01.2025

Hello again. I've been scripting to read and write some attributes.
Command is as follows:

res, err = zb.cmdsync('setrawattribute', 'a49e69fxxxxxx' , 513, 1043, true, 'bool')

The command value "true" does as it should, but when writing "false" I get "No response".
It's the same for all other 'bool' attributes.

Is this component issue or zigbee app issue?

Thanks in advance.


RE: Zigbee gateway integration - admin - 07.01.2025

What do you have in the ZigBee app logs?


RE: Zigbee gateway integration - tomnord - 07.01.2025

(07.01.2025, 12:51)admin Wrote: What do you have in the ZigBee app logs?

204     13:36:44.012   TX   -   -    zcl    addr = a49e69fffe7d394b, args = [ 513, 1043, false, bool ], fn = setrawattribute
206     13:36:50.020   RX  -  -     zcl    error = no response, fn = setrawattribute, from = a49e69fffe7d394b


RE: Zigbee gateway integration - admin - 07.01.2025

This is monitor data, not logs.


RE: Zigbee gateway integration - tomnord - 07.01.2025

(07.01.2025, 13:29)admin Wrote: This is monitor data, not logs.
 
ah, sorry. 
Log:
Code:
2025-01-07 14:37:14    ZB: sending ZCL message to a49e69fffe7d394b, cluster 0201, dst EP 1:
{ FrameControl = [ "FrameTypeGlobal", "DirectionToServer" ], TransactionSequenceNumber = 7, GeneralCommandFrame = { CommandIdentifier = "WriteAttributes", WriteAttributes = { WriteAttributeRecords = [ { AttributeIdentifier = 1043, Attribute = { Type = "bool" } } ] } } }
Also get this:
Code:
2025-01-07 14:37:14    ZB: could not encode ZCL data, error: /tmp/tmp.jOqIz9XAnc/files/store/daemon/zigbee/lib/codec.lua:315: no value for Value
stack traceback:
[C]: in function 'assert'
/tmp/tmp.jOqIz9XAnc/files/store/daemon/zigbee/lib/codec.lua:315: in function 'encode'
/tmp/tmp.jOqIz9XAnc/files/store/daemon/zigbee/lib/codec.lua:94: in function 'encode'
/tmp/tmp.jOqIz9XAnc/files/store/daemon/zigbee/lib/codec.lua:94: in function 'encode'
/tmp/tmp.jOqIz9XAnc/files/store/daemon/zigbee/lib/codec.lua:94: in function 'encode'
/tmp/tmp.jOqIz9XAnc/files/store/daemon/zigbee/lib/codec.lua:246: in function 'encode'
/tmp/tmp.jOqIz9XAnc/files/store/daemon/zigbee/lib/codec.lua:94: in function 'encode'
/tmp/tmp.jOqIz9XAnc/files/store/daemon/zigbee/lib/codec.lua:94: in function 'encode'
/tmp/tmp.jOqIz9XAnc/files/store/daemon/zigbee/lib/codec.lua:94: in function 'encode'
/tmp/tmp.jOqIz9XAnc/files/store/daemon/zigbee/lib/codec.lua:94: in function 'encode'
/tmp/tmp.jOqIz9XAnc/files/store/daemon/zigbee/lib/codec.lua:94: in function </tmp/tmp.jOqIz9XAnc/files/store/daemon/zigbee/lib/codec.lua:78>
[C]: in function 'xpcall'
...tmp.jOqIz9XAnc/files/store/daemon/zigbee/zigbee/core.lua:49: in function 'tx_zcl'
.../tmp.jOqIz9XAnc/files/store/daemon/zigbee/zigbee/zcl.lua:118: in function <.../tmp.jOqIz9XAnc/files/store/daemon/zigbee/zigbee/zcl.lua:46>
[C]: in function 'pcall'
/tmp/tmp.jOqIz9XAnc/files/store/daemon/zigbee/app.lua:295: in function </tmp/tmp.jOqIz9XAnc/files/store/daemon/zigbee/app.lua:294>

Code:
2025-01-07 14:39:41    ZB: sending ZCL message to a49e69fffe7d394b, cluster 0201, dst EP 1:
{ FrameControl = [ "FrameTypeGlobal", "DirectionToServer" ], TransactionSequenceNumber = 9, GeneralCommandFrame = { CommandIdentifier = "WriteAttributes", WriteAttributes = { WriteAttributeRecords = [ { AttributeIdentifier = 1043, Attribute = { Type = "bool", Value = true } } ] } } }

when sending "true" it actually sends the value true. As far as I can see, that is not the case when false is transmitted.


RE: Zigbee gateway integration - tomnord - 09.01.2025

Any feedback regarding this?


RE: Zigbee gateway integration - admin - 10.01.2025

ZigBee app has been updated, see if it fixes the attribute writing issue for you.


RE: Zigbee gateway integration - Ozturker - 12.01.2025

(10.01.2025, 12:30)admin Wrote: ZigBee app has been updated, see if it fixes the attribute writing issue for you.

Hello

How can I be sure that my devıce received the latest update? Does SE Wiser have the same fix?

Still ZigBee 3-channel switch, can not change chanels independently  (https://community.home-assistant.io/t/zigbee-4-channel-switch-can-not-change-chanels-independently/501707) they solved the issue for ZHA but still in Wiser I cannot control independently 3 or 4 channel relay modules. Do you have the visibility on this issue?

Thank you 

Best Regards
Turker


RE: Zigbee gateway integration - Daniel - 13.01.2025

SE is maintaining apps on their own, it is not question to us.


RE: Zigbee gateway integration - Hampus.K - 04.03.2025

Hello,

How do you add zigbee products?
I read that you can add profiles but can't find where this can be done and where to find all the profiles?
Is the reset button the small one at the top next to the diodes?

I have a variety of schneider wiser products that are on the list


RE: Zigbee gateway integration - Daniel - 05.03.2025

It is hard codded in the app, only we can add profiles.


RE: Zigbee gateway integration - Hampus.K - 05.03.2025

(05.03.2025, 08:25)Daniel Wrote: It is hard codded in the app, only we can add profiles.

Ok, so how do I add products then?
All products I have is on the zigbee list on your website.
Cant find any kind of manual other then the basis installation.