2019-08-08 11:50:15 +00:00
|
|
|
#jinja2:lstrip_blocks: True
|
|
|
|
---
|
|
|
|
{{ ansible_managed | comment }}
|
2019-08-08 15:30:03 +00:00
|
|
|
permit_join: {{ zigbee2mqtt_permit_join }}
|
2022-08-20 13:13:54 +00:00
|
|
|
{% if zigbee2mqtt_homeassistant_enabled | bool %}
|
2019-08-08 11:50:15 +00:00
|
|
|
|
2022-08-20 13:13:54 +00:00
|
|
|
homeassistant:
|
|
|
|
discovery_topic: "{{ zigbee2mqtt_homeassistant_discovery_topic }}"
|
|
|
|
status_topic: "{{ zigbee2mqtt_homeassistant_status_topic }}"
|
2022-08-21 11:49:46 +00:00
|
|
|
legacy_entity_attributes: {{ zigbee2mqtt_homeassistant_legacy_entity_attributes | bool }}
|
|
|
|
legacy_triggers: {{ zigbee2mqtt_homeassistant_legacy_triggers | bool }}
|
2022-08-20 13:13:54 +00:00
|
|
|
|
|
|
|
{% endif %}
|
2019-08-08 11:50:15 +00:00
|
|
|
mqtt:
|
2019-08-08 14:58:31 +00:00
|
|
|
base_topic: "{{ zigbee2mqtt_mqtt_base_topic }}"
|
|
|
|
server: "{{ zigbee2mqtt_mqtt_server }}"
|
2019-08-08 11:50:15 +00:00
|
|
|
{% if zigbee2mqtt_mqtt_user is defined and zigbee2mqtt_mqtt_user and zigbee2mqtt_mqtt_password is defined and zigbee2mqtt_mqtt_password %}
|
2019-08-08 14:58:31 +00:00
|
|
|
user: "{{ zigbee2mqtt_mqtt_user }}"
|
|
|
|
password: "{{ zigbee2mqtt_mqtt_password }}"
|
2019-08-08 11:50:15 +00:00
|
|
|
{% endif %}
|
2019-08-08 14:58:31 +00:00
|
|
|
client_id: "{{ zigbee2mqtt_mqtt_client_id }}"
|
|
|
|
reject_unauthorized: {{ zigbee2mqtt_mqtt_reject_unauthorized }}
|
|
|
|
include_device_information: {{ zigbee2mqtt_mqtt_include_device_information }}
|
2019-08-08 11:50:15 +00:00
|
|
|
{% if zigbee2mqtt_serial_port is defined and zigbee2mqtt_serial_port %}
|
|
|
|
|
|
|
|
serial:
|
2019-08-08 14:58:31 +00:00
|
|
|
port: "{{ zigbee2mqtt_serial_port }}"
|
|
|
|
disable_led: {{ zigbee2mqtt_serial_disable_led }}
|
2019-08-08 11:50:15 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if zigbee2mqtt_devices_ban %}
|
|
|
|
|
|
|
|
# Ban devices from the network (by ieeeAddr)
|
|
|
|
ban:
|
|
|
|
{% for item in zigbee2mqtt_devices_ban %}
|
2019-08-08 14:58:31 +00:00
|
|
|
- "{{ item }}"
|
2019-08-08 11:50:15 +00:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% if zigbee2mqtt_devices_whitelist %}
|
|
|
|
|
|
|
|
# Whitelist devices from the network (by ieeeAddr)
|
|
|
|
whitelist:
|
|
|
|
{% for item in zigbee2mqtt_devices_whitelist %}
|
2019-08-08 14:58:31 +00:00
|
|
|
- "{{ item }}"
|
2019-08-08 11:50:15 +00:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
advanced:
|
2019-08-08 14:58:31 +00:00
|
|
|
pan_id: {{ zigbee2mqtt_pan_id }}
|
|
|
|
ext_pan_id: {{ zigbee2mqtt_ext_pan_id }}
|
2019-08-08 11:50:15 +00:00
|
|
|
{% if zigbee2mqtt_network_key is defined and zigbee2mqtt_network_key %}
|
2019-08-08 14:58:31 +00:00
|
|
|
network_key: {{ zigbee2mqtt_network_key }}
|
2019-08-08 11:50:15 +00:00
|
|
|
{% endif %}
|
2022-08-20 13:13:54 +00:00
|
|
|
channel: {{ zigbee2mqtt_channel }}
|
|
|
|
cache_state: {{ zigbee2mqtt_cache_state }}
|
|
|
|
log_level: "{{ zigbee2mqtt_log_level }}"
|
2019-08-08 14:58:31 +00:00
|
|
|
last_seen: "{{ zigbee2mqtt_last_seen }}"
|
2019-08-08 15:30:03 +00:00
|
|
|
elapsed: {{ zigbee2mqtt_elapsed }}
|
2021-04-17 12:53:36 +00:00
|
|
|
|
2022-08-20 13:13:54 +00:00
|
|
|
{% if zigbee2mqtt_device_options is defined %}
|
2021-04-17 12:53:36 +00:00
|
|
|
device_options:
|
|
|
|
{{ zigbee2mqtt_device_options | to_nice_yaml | indent(2) }}
|
2019-08-08 11:50:15 +00:00
|
|
|
|
2022-08-20 13:13:54 +00:00
|
|
|
{% endif %}
|
2019-08-08 20:12:23 +00:00
|
|
|
devices: "devices.yaml"
|
|
|
|
groups: "groups.yaml"
|