To contribute to this page, edit the following file
TuYa SNTZ007 #
Model | SNTZ007 |
Vendor | TuYa |
Description | Rechargeable Zigbee contact sensor |
Exposes | contact, battery_low, tamper, battery, linkquality |
Picture | ![]() |
White-label | BlitzWolf BW-IS2 |
Notes #
None
Exposes #
Contact (binary) #
Indicates if the contact is closed (= true) or open (= false).
Value can be found in the published state on the contact
property.
It’s not possible to read (/get
) or write (/set
) this value.
If value equals false
contact is ON, if true
OFF.
Battery_low (binary) #
Indicates if the battery of this device is almost empty.
Value can be found in the published state on the battery_low
property.
It’s not possible to read (/get
) or write (/set
) this value.
If value equals true
battery_low is ON, if false
OFF.
Tamper (binary) #
Indicates whether the device is tampered.
Value can be found in the published state on the tamper
property.
It’s not possible to read (/get
) or write (/set
) this value.
If value equals true
tamper is ON, if false
OFF.
Battery (numeric) #
Remaining battery in %.
Value can be found in the published state on the battery
property.
It’s not possible to read (/get
) or write (/set
) this value.
The minimal value is 0
and the maximum value is 100
.
The unit of this value is %
.
Linkquality (numeric) #
Link quality (signal strength).
Value can be found in the published state on the linkquality
property.
It’s not possible to read (/get
) or write (/set
) this value.
The minimal value is 0
and the maximum value is 255
.
The unit of this value is lqi
.
Manual Home Assistant configuration #
Although Home Assistant integration through MQTT discovery is preferred, manual integration is possible with the following configuration:
binary_sensor:
- platform: "mqtt"
state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
availability_topic: "zigbee2mqtt/bridge/state"
value_template: "{{ value_json.contact }}"
payload_on: false
payload_off: true
device_class: "door"
binary_sensor:
- platform: "mqtt"
state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
availability_topic: "zigbee2mqtt/bridge/state"
value_template: "{{ value_json.battery_low }}"
payload_on: true
payload_off: false
device_class: "battery"
binary_sensor:
- platform: "mqtt"
state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
availability_topic: "zigbee2mqtt/bridge/state"
value_template: "{{ value_json.tamper }}"
payload_on: true
payload_off: false
sensor:
- platform: "mqtt"
state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
availability_topic: "zigbee2mqtt/bridge/state"
unit_of_measurement: "%"
value_template: "{{ value_json.battery }}"
device_class: "battery"
sensor:
- platform: "mqtt"
state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
availability_topic: "zigbee2mqtt/bridge/state"
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
icon: "mdi:signal"