Skip to content

Instantly share code, notes, and snippets.

View hnykda's full-sized avatar

Daniel Hnyk hnykda

View GitHub Profile
2021-11-09T20:21:20.968Z zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - getExtAddr - {"extaddress":"0x00124b001cd6ea1e"}
2021-11-09T20:21:20.968Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-11-09T20:21:20.969Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvLength - {"id":130}
2021-11-09T20:21:20.970Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,2,33,19,130,0,178]
2021-11-09T20:21:20.974Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,2,97,19,24,0,104]
2021-11-09T20:21:20.974Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,2,97,19,24,0,104]
2021-11-09T20:21:20.974Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 2 - 3 - 1 - 19 - [24,0] - 104
2021-11-09T20:21:20.974Z zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvLength - {"length":24}
2021-11-09T20:21:20.975Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-11-09T20:21:20.975Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvReadExt - {"id":130,"offset":0}
@hnykda
hnykda / example2
Last active October 28, 2021 20:41
2021-10-28T20:35:51.848Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - endDeviceAnnceInd - {"srcaddr":24903,"nwkaddr":24903,"ieeeaddr":"0x804b50fffe4466e0","capabilities":128}
2021-10-28T20:35:51.848Z zigbee-herdsman:controller:log Device announce '0x804b50fffe4466e0'
Zigbee2MQTT:debug 2021-10-28 22:35:51: Device 'TRVAlpha' announced itself
Zigbee2MQTT:info 2021-10-28 22:35:51: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"TRVAlpha","ieee_address":"0x804b50fffe4466e0"},"type":"device_announce"}'
2021-10-28T20:35:51.892Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-10-28T20:35:55.392Z zigbee-herdsman:adapter:zStack:adapter sendZclFrameToEndpointInternal 0xb4e3f9fffeb6c2d5:11351/1 (0,3,1)
2021-10-28T20:35:55.393Z zigbee-herdsman:adapter:zStack:znp:SREQ --> AF - dataRequest - {"dstaddr":11351,"destendpoint":1,"srcendpoint":1,"clusterid":6,"transid":10,"options":0,"radius":30,"len":5,"data":{"type":"Buffer","data":[24,6,11,10,0]}}
2021-10-28T20:35:55.3
Zigbee2MQTT:info 2021-10-25 12:39:49: Updating 'UpperBathroomCeiling' to latest firmware
Zigbee2MQTT:debug 2021-10-25 12:39:49: Received Zigbee message from 'UpperBathroomCeiling', type 'readResponse', cluster 'genBasic', data '{"dateCode":"20190114","swBuildId":"2.1.022"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2021-10-25 12:39:49: Updating to latest '0xb4e3f9fffeb6c2d5' (GUNNARP panel round)
Zigbee2MQTT:debug 2021-10-25 12:39:49: Using endpoint '1'
Zigbee2MQTT:debug 2021-10-25 12:39:51: Received Zigbee message from 'UpperBathroomCeiling', type 'commandQueryNextImageRequest', cluster 'genOta', data '{"fieldControl":1,"fileVersion":553788977,"imageType":16902,"manufacturerCode":4476}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2021-10-25 12:39:51: Device 'UpperBathroomCeiling' requested OTA
Zigbee2MQTT:debug 2021-10-25 12:39:51: Got OTA request '{"fieldControl":1,"manufacturerCode":4476,"imageType":16902,"fileVersion":553788977}'
Zigbee2MQTT:debug 2021-10-25 12:39:52: Received Zigbee message
{'data': [{'properties': {}, 'commands': {}, 'components': [], 'apiVersion': 1, 'uri': 'https://api.viessmann.com/iot/v1/equipment/installations/1288155/gateways/7633107011920219/devices/0/features/heating.circuits.1.operating.modes.active', 'gatewayId': '7633107011920219', 'feature': 'heating.circuits.1.operating.modes.active', 'timestamp': '2021-10-08T22:19:18.767Z', 'isEnabled': False, 'isReady': True, 'deviceId': '0'}, {'properties': {'unit': {'value': 'celsius', 'type': 'string'}, 'status': {'type': 'string', 'value': 'notConnected'}}, 'commands': {}, 'components': [], 'apiVersion': 1, 'uri': 'https://api.viessmann.com/iot/v1/equipment/installations/1288155/gateways/7633107011920219/devices/0/features/heating.dhw.sensors.temperature.outlet', 'gatewayId': '7633107011920219', 'feature': 'heating.dhw.sensors.temperature.outlet', 'timestamp': '2021-10-08T22:19:17.033Z', 'isEnabled': True, 'isReady': True, 'deviceId': '0'}, {'properties': {'unit': {'value': 'percent', 'type': 'string'}, 'value': {'type': 'num
- alias: "Set ventilation Mode Selector"
trigger:
platform: mqtt
topic: "ventilation/mode"
# entity_id: input_select.ventilation_mode
action:
service: input_select.select_option
target:
entity_id: input_select.ventilation_mode
data:
import paho.mqtt.client as mqtt
import json
client = mqtt.Client()
client.username_pw_set("z2muser", "z2pass")
client.connect("192.168.0.201", 1883)
topic = "zigbee2mqtt/tradfi_alpha/set"
from time import sleep
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 3
bMaxPacketSize0 9
info 2021-05-19 09:25:49: Logging to console and directory: '/config/zigbee2mqtt/log/2021-05-19.09-25-42' filename: log.txt
info 2021-05-19 09:25:49: Starting Zigbee2MQTT version 1.18.3-dev (commit #7bdf52d)
info 2021-05-19 09:25:49: Starting zigbee-herdsman (0.13.102)
info 2021-05-19 09:25:53: zigbee-herdsman started
info 2021-05-19 09:25:53: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"}'
info 2021-05-19 09:25:53: Currently 10 devices are joined:
info 2021-05-19 09:25:53: TestZarovka1 (0x00158d0005726289): ZNLDP12LM - Xiaomi Aqara smart LED bulb (Router)
info 2021-05-19 09:25:53: SenzorVlhkostiATeploty (0x00158d00068b6b01): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
info 2021-05-19 09:25:53: PohybovySenzor (0x00158d0006ba9490): RTCGQ11LM - Xiaomi Aqara human body movement and illuminance sensor (EndDevice)
info 2021-05-19 09:25:53: AqaraCube (0x00158d0005cf3268)
@hnykda
hnykda / first_attempt
Created May 18, 2021 18:04
Trying to pair trv with z2m
info 2021-05-18 18:05:27: Logging to console and directory: '/config/zigbee2mqtt/log/2021-05-18.18-05-22' filename: log.txt
info 2021-05-18 18:05:27: Starting Zigbee2MQTT version 1.18.3-dev (commit #45aa352)
info 2021-05-18 18:05:27: Starting zigbee-herdsman (0.13.101)
info 2021-05-18 18:05:30: zigbee-herdsman started
info 2021-05-18 18:05:30: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20201127,"transportrev":2},"type":"zStack12"}'
info 2021-05-18 18:05:30: Currently 9 devices are joined:
info 2021-05-18 18:05:30: TestZarovka1 (0x00158d0005726289): ZNLDP12LM - Xiaomi Aqara smart LED bulb (Router)
info 2021-05-18 18:05:30: SenzorVlhkostiATeploty (0x00158d00068b6b01): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
info 2021-05-18 18:05:30: PohybovySenzor (0x00158d0006ba9490): RTCGQ11LM - Xiaomi Aqara human body movement and illuminance sensor (EndDevice)
info 2021-05-18 18:05:30: AqaraCube (0x00158d0005cf3268):
2021-05-01T10:12:57.056Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,37,80,117]
2021-05-01T10:12:57.061Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,24,101,80,0,0,9,98,26,0,0,221,221,221,221,221,221,221,221,0,0,0,0,0,0,0,0,11,87]
2021-05-01T10:12:57.062Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,24,101,80,0,0,9,98,26,0,0,221,221,221,221,221,221,221,221,0,0,0,0,0,0,0,0,11,87]
2021-05-01T10:12:57.062Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 24 - 3 - 5 - 80 - [0,0,9,98,26,0,0,221,221,221,221,221,221,221,221,0,0,0,0,0,0,0,0,11] - 87
2021-05-01T10:12:57.063Z zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - extNwkInfo - {"shortaddr":0,"devstate":9,"panid":6754,"parentaddr":0,"extendedpanid":"0xdddddddddddddddd","parentextaddr":"0x0000000000000000","channel":11}
2021-05-01T10:12:57.064Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-05-01T10:12:57.084Z zigbee-herdsman:controller:log Disable joining
2021-05-01T10:12:57.095Z zigbee-herdsman:a