mirror of https://github.com/arendst/Tasmota.git
Berry Zigbee fix attributes (#22684)
This commit is contained in:
parent
9b6dc1f0f1
commit
e4ff66192f
|
@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file.
|
||||||
- TLS disable ECDSA for MQTT to ensure we don't break fingerprints after #22649
|
- TLS disable ECDSA for MQTT to ensure we don't break fingerprints after #22649
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
- Berry Zigbee fix wrong attributes
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|
|
@ -59,8 +59,6 @@ class zb_coord : zb_coord_ntv
|
||||||
if zcl_attribute_list_ptr != nullptr
|
if zcl_attribute_list_ptr != nullptr
|
||||||
attr_list = self.zcl_attribute_list(zcl_attribute_list_ptr)
|
attr_list = self.zcl_attribute_list(zcl_attribute_list_ptr)
|
||||||
end
|
end
|
||||||
|
|
||||||
#print(format(">ZIG: cmd=%s data_type=%s data=%s idx=%i", event_type, data_type, str(data), idx))
|
|
||||||
|
|
||||||
var i = 0
|
var i = 0
|
||||||
while i < size(self._handlers)
|
while i < size(self._handlers)
|
||||||
|
|
|
@ -205,11 +205,13 @@ class zcl_attribute_list : zcl_attribute_list_ntv
|
||||||
var v
|
var v
|
||||||
|
|
||||||
# shortaddr
|
# shortaddr
|
||||||
if (v := self.shortaddr) != nil
|
v = self.shortaddr
|
||||||
|
if v != nil
|
||||||
items.push(f'"Device":"0x{v:04X}"')
|
items.push(f'"Device":"0x{v:04X}"')
|
||||||
end
|
end
|
||||||
# groupaddr
|
# groupaddr
|
||||||
if (v := self.groupaddr) != nil
|
v = self.groupaddr
|
||||||
|
if v != nil
|
||||||
items.push(f'"Group":"0x{v:04X}"')
|
items.push(f'"Group":"0x{v:04X}"')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -223,13 +225,15 @@ class zcl_attribute_list : zcl_attribute_list_ntv
|
||||||
end
|
end
|
||||||
|
|
||||||
# Endpoint
|
# Endpoint
|
||||||
if (v := self.src_ep) != nil
|
v = self.src_ep
|
||||||
|
if v != nil
|
||||||
items.push(f'"Endpoint":{v}')
|
items.push(f'"Endpoint":{v}')
|
||||||
end
|
end
|
||||||
|
|
||||||
# LQI
|
# LQI
|
||||||
if (v := self.lqi) != nil
|
v := self.lqi
|
||||||
items.push(f'"LinkQuality":{v}')
|
if v != nil
|
||||||
|
items.push(f'"LinkQuality":{v:i}')
|
||||||
end
|
end
|
||||||
|
|
||||||
var s = "{" + items.concat(",") + "}"
|
var s = "{" + items.concat(",") + "}"
|
||||||
|
|
Loading…
Reference in New Issue