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 gateway integration
No input about these? Mostly interested in a way to use the left/right arrows on the IKEA Styrbar - I had plans for those...
Reply
Custom actions for buttons can be done via a script: https://kb.logicmachine.net/libraries/zi...al-devices
Check ZigBee app monitor on what is sent when a certain button is pressed.
Reply
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
Reply
App has been updated, see if it fixes RGB device pairing for you.
Reply
(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.
Reply
(20.12.2024, 11:49)admin Wrote: Custom actions for buttons can be done via a script: https://kb.logicmachine.net/libraries/zi...al-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)
Reply
Script looks ok.
Reply
(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.
Reply
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.
Reply
What do you have in the ZigBee app logs?
Reply
(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
Reply
This is monitor data, not logs.
Reply
(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.
Reply
Any feedback regarding this?
Reply
ZigBee app has been updated, see if it fixes the attribute writing issue for you.
Reply
(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/zi...tly/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
Reply
SE is maintaining apps on their own, it is not question to us.
------------------------------
Ctrl+F5
Reply


Forum Jump: