Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107375

Zigbee2MQTT: Devices become unavailable after saving config trough frontend

$
0
0

Hi,

I have the following problem. Zigbee2MQTT runs fine as far as I don’t save the configuration trough the front end. After saving and after a restart the devices become unavailable after a bit trying out and using MQTT Explorer I found out that the reason for that seams to be that device are now reported directly under the “homeassistant” topic instead as a sensor or as a switch

Here is my configuration that works (at the moment)

homeassistant:
  discovery_topic: homeassistant
  status_topic: homeassistant/status
  legacy_entity_attributes: true
  legacy_triggers: true
zigbee_herdsman_debug: true
permit_join: true
mqtt:
  server: mqtt://core-mosquitto:1883
  user: !secret zigbee2mqtt_user
  password: !secret zigbee2mqtt_password
  keepalive: 60
  reject_unauthorized: true
  version: 4
  client_id: zigbee2mqtt

  include_device_information: true
serial:
  port: >-
    /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_2eaa1d155b9cec118a14634d73138bba-if00-port0
frontend:
  port: 8099
devices:
  '0x00158d0003569a2b':
    friendly_name: Innr Smart Plug
    homeassistant:
      name: Innr Smart Plug
    optimistic: true
  '0x0015bc001b021d85':
    friendly_name: Hauptstromzähler
    homeassistant:
      name: Hauptstromzähler
    optimistic: true
  '0x00158d0003623499':
    friendly_name: Innr Smart Plug 2
    homeassistant:
      name: Innr Smart Plug 2
    optimistic: true
availability: true

If I save the config through the front end I get a line added under mqtt:

base_topic: zigbee2mqtt

or

base_topic: homeassistant

after an reboot the problems starts and only deleting that line and restarting solves it.
The front end says that this base_topic must not be null so I can’t delete the value in the fron end.

To what value do I have to set base_topic that the devices appear under sensor and switch where they belong to?

Thank you!

BTW. Is there a way to set the front end to dark theme as I have the whole homeassistant front end?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 107375

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>