General Question zigbee2mqtt

Hi,

so I am completely new to the whole topic of zigbee, hass.io and so on. I bought all the components (CC2530 to flash as coordinator and so on), setup everything, watched lots of tutorials, also got the Aqara Sensor to work for a short time, but I do not completely understand how/why it works :stuck_out_tongue:

So I installed the Configurator, mosquitto broker, zigbee2mqtt. Did setup everything, switched on my Aqara Sensor (pairing mode) and got data in return:

zigbee2mqtt:info 2019-1-31 17:50:28 MQTT publish: topic ‘zigbee2mqtt/bridge/state’, payload ‘online’
zigbee2mqtt:info 2019-1-31 17:50:28 MQTT publish: topic ‘zigbee2mqtt/0x00158d0002c9065d’, payload ‘{“temperature”:14.37,“linkquality”:162,“humidity”:48.66,“pressure”:982,“battery”:55,“voltage”:2995}’
zigbee2mqtt:info 2019-1-31 17:50:28 MQTT publish: topic ‘homeassistant/sensor/0x00158d0002c9065d/temperature/config’, payload ‘{“unit_of_measurement”:“°C”,“device_class”:“temperature”,“value_template”:"{{ value_json.temperature }}",“json_attributes”:[“linkquality”,“battery”,“voltage”],“state_topic”:“zigbee2mqtt/0x00158d0002c9065d”,“availability_topic”:“zigbee2mqtt/bridge/state”,“name”:“0x00158d0002c9065d_temperature”,“unique_id”:“0x00158d0002c9065d_temperature_zigbee2mqtt”,“device”:{“identifiers”:“zigbee2mqtt_0x00158d0002c9065d”,“name”:“0x00158d0002c9065d”,“sw_version”:“Zigbee2mqtt 1.0.1”,“model”:“Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)”,“manufacturer”:“Xiaomi”}}’

That was yesterday. Today I switched my raspberry back on and in the “Overview section” I had 3 new circles (beside weather and the “moon”), one for temp, humidity, hpa.

Problem is it seems to work only for a short period of time, so I figured I must be doing something wrong.

Do I need the moquitto broker at all? Do I need to do something after hass.io recognized the Sensor under zigbee2mqtt? Like officially add it somewhere? Do I have to create an entry in the configuration.yaml under Sensors?