# 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