请选择 进入手机版 | 继续访问电脑版

『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1212|回复: 2

[技术探讨] 搞了个涂鸦智能锁,用涂鸦zigbee网关接入的,怎么接入HA?

[复制链接]

19

主题

682

帖子

3398

积分

论坛元老

Rank: 8Rank: 8

积分
3398
金钱
2711
HASS币
20
发表于 2022-7-24 16:43:45 | 显示全部楼层 |阅读模式
看有人在回帖里说这个涂鸦插件可以接入zigbee子设备:leeyuentuen/localtuya: local handling for Tuya devices (github.com),我看里面的说明也说了支持涂鸦zigbee跟蓝牙的设备,还写了示例代码,有用过的说说,到底行不行呀。
  # Below are examples of configuring devices under a gateway
  # Zigbee or Bluetooth gateway
  - host: 192.168.1.x
    device_id: xxxxxabcd
    local_key: xxxxx
    friendly_name: Tuya Gateway
    protocol_version: "3.3"
    is_gateway: true # This tells it is to be treated as a gateway and skip adding entities

  # Devices under a gateway
  # Other than differences on the device itself (ie. no host and local_key), the rest is the same
  #   as a WiFi device
  - parent_gateway: xxxxabcd # This tells it is a sub-device dependent on a parent gateway
    device_id: xxxx1234 # The cid of sub-device
    friendly_name: Tuya Zigbee Switch
    entities:
      - platform: switch
        friendly_name: Tuya Zigbee Switch Entity 1
        id: 1
      - platform: switch
        friendly_name: Tuya Zigbee Switch Entity 2
        id: 2

  - parent_gateway: xxxxabcd
    device_id: xxxx5678
    friendly_name: Tuya Zigbee PIR Sensor
    entities:
      - platform: binary_sensor
        friendly_name: Motion Sensor
        id: 1
        device_class: motion
        state_on: pir
        state_off: none
      - platform: sensor
        friendly_name: Sensor Battery
        id: 4
        device_class: battery


回复

使用道具 举报

1

主题

32

帖子

333

积分

论坛积极会员

积分
333
金钱
301
HASS币
0
发表于 2023-12-10 16:45:17 | 显示全部楼层
请问楼主后来解决了吗?我也在找一个支持Z2M的 锁
回复

使用道具 举报

19

主题

682

帖子

3398

积分

论坛元老

Rank: 8Rank: 8

积分
3398
金钱
2711
HASS币
20
 楼主| 发表于 2023-12-23 12:59:10 | 显示全部楼层
俊客 发表于 2023-12-10 16:45
请问楼主后来解决了吗?我也在找一个支持Z2M的 锁

没有,搞不定
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-3-28 18:29 , Processed in 0.188934 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表