Skip to content

Conversation

@s-hadinger
Copy link
Collaborator

Description:

Better handling of Zigbee routers and end-devices.

New ability to write attributes or publish attribute sensor values:

ZbSend {"Device":"0x1234","Report":{"Power":1}}
ZbSend {"Device":"0x1234","Write":{"Power":1}}
ZbSend {"Device":"0x1234","Read":{"Power":true}}

ZbRead was removed in favor of ZbSend with "Read" attribute.

ZbReceived now decodes request to read attributes, ex:

{"ZbReceived":{"0x0000":{"Device":"0x0000","Cluster":0,"Read":[5,4],"ReadNames":{"ModelId":true,"Manufacturer":true},"Endpoint":1,"LinkQuality":104}}}

Added the following variables to rules: %zbdevice%, %zbcluster%, %zbendpoint%, %zbgroup% to capture the value of last received packets. You can now set a rule to respond to Model/Manufacturer requests:

on zbreceived#?#ReadNames#ModelId
    do ZbSend {"Device":"%zbdevice%","Endpoint":%zbendpoint%,"Report":{"Manufacturer":"Tasmota","ModelId":"Tasmota Z2T Router"}} endon

Related issue (if applicable): fixes #8399

Checklist:

  • The pull request is done against the latest dev branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR.
  • The code change is tested and works on core ESP8266 V.2.7.1
  • The code change is tested and works on core ESP32 V.1.12.2
  • I accept the CLA.

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass

@arendst arendst merged commit abd60ea into arendst:development May 30, 2020
@s-hadinger s-hadinger deleted the zigbee_report branch January 6, 2025 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tasmota as Zigbee Router/Device

2 participants