mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-02 10:01:37 +00:00
1.3 KiB
1.3 KiB
Device specific configuration
The configuration.yaml allows to set device specific configuration. The following options are available.
All devices
friendly_name: Used in the MQTT topic of a device. By default this is the device ID (e.g.0x00128d0001d9e1d2).retain: Retain MQTT messages of this device.qos: QoS level for MQTT messages of this device. What is QoS?
Device type specific
occupancy_timeout: Timeout (in seconds) after theoccupancy: falsemessage is sent, only available for occupany sensors. If not set, the timeout is90seconds. When set to0nooccupancy: falseis send.temperature_precision: Controls the precision oftemperaturevalues, e.g.0,1or2; default2.humidity_precision: Controls the precision ofhumidityvalues, e.g.0,1or2; default2.pressure_precision: Controls the precision ofpressurevalues, e.g.0or1; default1.
Example
devices:
'0x00158d0001d82999':
friendly_name: 'my_occupancy_sensor'
retain: true
occupancy_timeout: 20
qos: 1
Changing device type specific defaults
The default values used for the device specific configuration can be overriden via e.g.:
device_options:
occupancy_timeout: 30
temperature_precision: 1