add option to set device options
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2021-04-17 14:53:36 +02:00
parent 32c3ce06f8
commit 778f0eecab
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 12 additions and 0 deletions

View File

@ -96,4 +96,11 @@ zigbee2mqtt_homeassistant_status_topic: "hass/status"
zigbee2mqtt_devices_ban: []
zigbee2mqtt_devices_whitelist: []
# @var zigbee2mqtt_device_options: $ "_unset"
# @var zigbee2mqtt_device_options:example: >
# zigbee2mqtt_device_options:
# occupancy_timeout: 130
# temperature_precision: 1
# @end
zigbee2mqtt_timezone: Europe/Berlin

View File

@ -50,6 +50,11 @@ advanced:
elapsed: {{ zigbee2mqtt_elapsed }}
homeassistant_discovery_topic: "{{ zigbee2mqtt_homeassistant_discovery_topic }}"
homeassistant_status_topic: "{{ zigbee2mqtt_homeassistant_status_topic }}"
{% if zigbee2mqtt_device_options is defined %}
device_options:
{{ zigbee2mqtt_device_options | to_nice_yaml | indent(2) }}
{% endif %}
devices: "devices.yaml"
groups: "groups.yaml"