Last active
          February 10, 2024 23:06 
        
      - 
      
- 
        Save Inkimar/1629ba0434a3665c96c382c56352da4c to your computer and use it in GitHub Desktop. 
    raspberry pi 5, Home Assistant , docker-compose
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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 . | 
Configuration-files
homeassistant
/opt/homeassistant/config $ cat configuration.yaml
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
mosquitto
/opt/mosquitto/config $ cat mosquitto.conf
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
listener 1883
## Authentication ##
allow_anonymous true
zigbee2mqtt
/opt/zigbee2mqtt/data $ cat configuration.yaml
homeassistant: false
permit_join: true
frontend: true
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://mosquitto:1883
  serial:
    port: /dev/ttyACM0
      #adapter: ezsp
      #adapter: deconz
# Required: serial settings
#serial:
  # Required: location of the adapter (e.g. CC2531).
  # USB adapters - use format "port: /dev/ttyACM0"
  # To autodetect the USB port, set 'port: null'.
  # Ethernet adapters - use format "port: tcp://192.168.1.12:6638"
  # port: /dev/ttyACM0
  #disable_led: false
  #adapter: "ezsp"
  #baudrate: 115200
  #rtscts: false
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
Get Started with the Home Assistant MQTT Integration
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
  
            
docker-compose.yml