Skip to content

Commit

Permalink
zigbee2mqtt_device -> zigbee2mqtt_adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
artyorsh committed Aug 26, 2024
1 parent a785fd4 commit 7773f3a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/ansible/playbook-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
- role: "geerlingguy.docker"
- role: "artyorsh.smarthome.smarthome"
vars:
smarthome_zigbee_coordinator: "/dev/tty0"
smarthome_zigbee_adapter: "/dev/tty0"
2 changes: 1 addition & 1 deletion roles/smarthome/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ smarthome_user:
password: "smarthome"

# /dev/ttyUSB0
smarthome_zigbee_coordinator: ""
smarthome_zigbee_adapter: ""
4 changes: 2 additions & 2 deletions roles/smarthome/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
mosquitto_user: "{{ smarthome_user }}"

- name: "Install Zigbee2MQTT"
when: smarthome_zigbee_coordinator | length > 0
when: smarthome_zigbee_adapter | length > 0
ansible.builtin.include_role:
name: "zigbee2mqtt"
vars:
Expand All @@ -24,4 +24,4 @@
user: "{{ smarthome_user.name }}"
password: "{{ smarthome_user.password }}"

zigbee2mqtt_device: "{{ smarthome_zigbee_coordinator }}"
zigbee2mqtt_adapter: "{{ smarthome_zigbee_adapter }}"
2 changes: 1 addition & 1 deletion roles/zigbee2mqtt/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ zigbee2mqtt_env: {}

zigbee2mqtt_config: {}

zigbee2mqtt_device: "" # "/dev/ttyUSB0"
zigbee2mqtt_adapter: "" # "/dev/ttyUSB0"
2 changes: 1 addition & 1 deletion roles/zigbee2mqtt/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
groups:
- "dialout"
devices:
- "{{ zigbee2mqtt_device }}:/dev/ttyACM0"
- "{{ zigbee2mqtt_adapter }}:/dev/ttyACM0"
ports:
- "{{ zigbee2mqtt_port }}:8080"
volumes:
Expand Down

0 comments on commit 7773f3a

Please sign in to comment.