uni-meter icon indicating copy to clipboard operation
uni-meter copied to clipboard

Failed to create client object: Daemon not running in logfilfe

Open letsrock303 opened this issue 9 months ago • 2 comments

Hello,

I use unimeter in Uuraid Server Docker and i have some connecting issues with my marstek V2/V3. Sometimes they lost die CT connection and can not reconnect.

Maybe the error "Failed to create client object: Daemon not running" is the problem? Why this error message appears?

Logfile:

26-02-28 08:25:35.812 INFO  uni-meter                - ##################################################################
26-02-28 08:25:35.816 INFO  uni-meter                - # Universal electric meter converter 1.3.0 (2026-02-09 01:15:05) #
26-02-28 08:25:35.816 INFO  uni-meter                - ##################################################################
26-02-28 08:25:35.816 INFO  uni-meter                - initializing actor system
26-02-28 08:25:36.251 INFO  org.apache.pekko.event.slf4j.Slf4jLogger - Slf4jLogger started
26-02-28 08:25:36.402 INFO  uni-meter.controller     - creating ShellyPro3EM output device
26-02-28 08:25:36.409 INFO  uni-meter.mdns.avahi     - avahi-publish binary found: /usr/bin/avahi-publish
26-02-28 08:25:36.411 INFO  uni-meter.controller     - creating MQTT input device
26-02-28 08:25:36.414 INFO  uni-meter.output         - using total power offset of -30.0
26-02-28 08:25:36.613 INFO  uni-meter.input          - subscribing to topic: homeassistant/sensor/tasmota_haus_power_curr/state
26-02-28 08:25:36.614 INFO  uni-meter.input          - subscribing to topic: homeassistant/sensor/tasmota_haus_power_curr_l1/state
26-02-28 08:25:36.614 INFO  uni-meter.input          - subscribing to topic: homeassistant/sensor/tasmota_haus_power_curr_l2/state
26-02-28 08:25:36.614 INFO  uni-meter.input          - subscribing to topic: homeassistant/sensor/tasmota_haus_power_curr_l3/state
26-02-28 08:25:36.614 INFO  uni-meter.input          - subscribing to topic: homeassistant/sensor/tasmota_haus_total_summe/state
26-02-28 08:25:36.614 INFO  uni-meter.input          - subscribing to topic: homeassistant/sensor/tasmota_haus_tariflos/state
26-02-28 08:25:36.627 INFO  uni-meter.mdns.avahi     - successfully registered mdns service ShellyPro3EM-0242C0A8030E/_http
26-02-28 08:25:36.646 INFO  uni-meter.mdns.avahi     - successfully registered mdns service ShellyPro3EM-0242C0A8030E/_shelly
26-02-28 08:25:36.655 INFO  uni-meter.mdns.avahi.publish - [48] /usr/bin/avahi-publish -a -R ShellyPro3EM-0242C0A8030E.local 192.168.3.14 started
26-02-28 08:25:36.656 INFO  uni-meter.mdns.avahi.publish - [48] Failed to create client object: Daemon not running
26-02-28 08:25:36.656 INFO  uni-meter.mdns.avahi     - avahi-publish finished for ShellyPro3EM-0242C0A8030E.local/192.168.3.14
26-02-28 08:25:36.752 INFO  uni-meter.output         - UDP server is listening on /[0:0:0:0:0:0:0:0]:1010
26-02-28 08:25:37.010 INFO  uni-meter.http.port-80   - HTTP server is listening on /[0:0:0:0:0:0:0:0]:80
26-02-28 08:25:37.085 INFO  uni-meter.input          - MQTT stream connected
26-02-28 08:26:36.677 INFO  uni-meter.mdns.avahi.publish - [65] /usr/bin/avahi-publish -a -R ShellyPro3EM-0242C0A8030E 192.168.3.14 started
26-02-28 08:26:36.677 INFO  uni-meter.mdns.avahi.publish - [65] Failed to create client object: Daemon not running
26-02-28 08:26:36.677 INFO  uni-meter.mdns.avahi     - avahi-publish finished for ShellyPro3EM-0242C0A8030E/192.168.3.14
26-02-28 08:27:36.697 INFO  uni-meter.mdns.avahi.publish - [68] /usr/bin/avahi-publish -a -R ShellyPro3EM-0242C0A8030E 192.168.3.14 started
26-02-28 08:27:36.697 INFO  uni-meter.mdns.avahi.publish - [68] Failed to create client object: Daemon not running
26-02-28 08:27:36.697 INFO  uni-meter.mdns.avahi     - avahi-publish finished for ShellyPro3EM-0242C0A8030E/192.168.3.14
26-02-28 08:28:36.717 INFO  uni-meter.mdns.avahi.publish - [71] /usr/bin/avahi-publish -a -R ShellyPro3EM-0242C0A8030E 192.168.3.14 started
26-02-28 08:28:36.717 INFO  uni-meter.mdns.avahi.publish - [71] Failed to create client object: Daemon not running
26-02-28 08:28:36.718 INFO  uni-meter.mdns.avahi     - avahi-publish finished for ShellyPro3EM-0242C0A8030E/192.168.3.14

yaml:

uni-meter {
  output = "uni-meter.output-devices.shelly-pro3em"

  input = "uni-meter.input-devices.mqtt"
  
  output-devices {
    shelly-pro3em {
      udp-port = 1010
      power-offset-total = -30
      min-sample-period = 2500ms     
    }
  }

input-devices {
    mqtt {
      url = "tcp://192.168.3.4:1883"
      #username = "username"
      #password = "password"

      power-phase-mode = "tri-phase"
      energy-phase-mode = "mono-phase"

      channels = [{
        type = "value"
        topic = "homeassistant/sensor/tasmota_haus_power_curr/state"
        channel = "power-total"
       #json-path = "$..power"
        scale = 1.0 # default, can be omitted
      },{
        type = "value"
        topic = "homeassistant/sensor/tasmota_haus_power_curr_l1/state"
        channel = "power-l1"
        #json-path = "$..power"
        scale = 1.0 # default, can be omitted
      },{
        type = "value"
        topic = "homeassistant/sensor/tasmota_haus_power_curr_l2/state"
        channel = "power-l2"
        #json-path = "$..power"
        scale = 1.0 # default, can be omitted
      },{
        type = "value"
        topic = "homeassistant/sensor/tasmota_haus_power_curr_l3/state"
        channel = "power-l3"
        #json-path = "$..power"
        scale = 1.0 # default, can be omitted
      },{
        type = "value"
        topic = "homeassistant/sensor/tasmota_haus_total_summe/state"
        channel = "energy-consumption-total"
        #json-path = "$..counter_pos"
      },{
        type = "value"
        topic = "homeassistant/sensor/tasmota_haus_tariflos/state"
        channel = "energy-production-total"
        #json-path = "$..counter_neg"
      }]
    }
  }
}

letsrock303 avatar Feb 28 '26 07:02 letsrock303

I see the same logs but uni-meter works for me. This is version 1.3.0 running in container. Maybe this harms only when you try to discover a smart meter?

Matze2 avatar Mar 07 '26 02:03 Matze2

Since the last update, the error message has not appeared again -> issue closed

letsrock303 avatar Apr 19 '26 10:04 letsrock303