Skip to content

Instantly share code, notes, and snippets.

@Inkimar
Last active February 10, 2024 23:06
Show Gist options
  • Save Inkimar/1629ba0434a3665c96c382c56352da4c to your computer and use it in GitHub Desktop.
Save Inkimar/1629ba0434a3665c96c382c56352da4c to your computer and use it in GitHub Desktop.
raspberry pi 5, Home Assistant , docker-compose
Running on Debian 12 (bookworm)
Questions asked:
if you check out this gist, there you can see me docker-compose.yml ( https://gist.github.com/Inkimar/1629ba0434a3665c96c382c56352da4c?permalink_comment_id=4888824#gistcomment-4888824) - Here you can see that my 'homeassistant' depend_on my 'zigbee2mqtt' and that 'zigbee2mqtt' depends_on my 'mosquitto' - I think this is an ok setting. That my next step is to configure the MQTT to Mosquitto, not sure if I do this in my home-assistant dashboard or do this from the config-file/s .
@Inkimar
Copy link
Author

Inkimar commented Feb 10, 2024

ny -> /opt/zigbee2mqtt/data $ cat configuration.yaml
Tillkommer-> homeassistant: true

/opt/zigbee2mqtt/data $ cat configuration.yaml
homeassistant: true
permit_join: true
frontend: true
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://mosquitto:1883
  serial:
    port: /dev/ttyACM0
advanced:
  network_key:
    - 83
    - 167
    - 122
    - 111
    - 152
    - 187
    - 251
    - 221
    - 157
    - 203
    - 144
    - 186
    - 225
    - 195
    - 90
    - 229
  pan_id: 47421
  ext_pan_id:
    - 47
    - 2
    - 145
    - 208
    - 4
    - 107
    - 71
    - 30
  homeassistant_legacy_entity_attributes: false
  legacy_api: false
  legacy_availability_payload: false
device_options:
  legacy: false

Vid omstart av tjänsten så dyker dina devices upp i slutet av configuration.yml

devices:
  '0xa4c138bc77452fe7':
    friendly_name: '0xa4c138bc77452fe7'
  '0xa4c1386b3c858e78':
    friendly_name: '0xa4c1386b3c858e78'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment