Closed freakent closed 2 years ago
Example log file
@400000006248305503cbfa2c INFO:device_service_config:About to open config file
@4000000062483055078d4bd4 INFO:device_service:Unregistered mqtt_fe002_tk1 from dbus
@400000006248305513484974 INFO:device_service_config:No configuration for Service stank, please update services.yml
@40000000624830551395ec74 INFO:device_service:Registering service stank for client fe005 at path com.victronenergy.stank.mqtt_fe005_tl1
@400000006248305517663df4 *** starting dbus-mqtt-devices ***
@40000000624830561251cfcc -------- dbus_mqtt_devices, v0.4.1 is starting up --------
@40000000624830561251e354 INFO:logger:Loglevel set to INFO
@40000000624830561305aeac INFO:device_manager:Using portalId dca6328d3ea7
@4000000062483056131ccca4 INFO:mqtt_gobject_bridge:[Init] Connecting to local broker
@40000000624830561480217c INFO:device_manager:[Connected] Result code 0
Example log file after fix applied:
@40000000624831082c9e533c *** starting dbus-mqtt-devices ***
@400000006248311139c3b264 -------- dbus_mqtt_devices, v0.4.1 is starting up --------
@400000006248311139c3c5ec INFO:logger:Loglevel set to INFO
@40000000624831120cb17d24 INFO:device_manager:Using portalId ***********
@400000006248311234e918ec INFO:mqtt_gobject_bridge:[Init] Connecting to local broker
@4000000062483112399b90f4 INFO:device_manager:[Connected] Result code 0
@40000000624831163481a0a4 INFO:device_manager:Received device status message {'clientId': 'fe001', 'connected': 1, 'version': 'v1.0', 'services': {'t1': 'temperature'}}
@40000000624831163481bfe4 INFO:device:**** Registering device: fe001, services: {'t1': 'temperature'} ****
@40000000624831163481cb9c INFO:device:Registering Service temperature for client fe001
@40000000624831163481db3c INFO:device_service_config:About to open config file
@400000006248311714b1ad14 INFO:device_service:Registering service temperature for client fe001 at path com.victronenergy.temperature.mqtt_fe001_t1
@400000006248311725c380dc INFO:settingsdevice:Setting /Settings/Devices/mqtt_fe001_t1/ClassAndVrmInstance does not exist yet or must be adjusted
@400000006248311729c6ffec INFO:vedbus:registered ourselves on D-Bus as com.victronenergy.temperature.mqtt_fe001_t1
@400000006248311729c71374 INFO:device_service:Registered Service com.victronenergy.temperature.mqtt_fe001_t1 under DeviceInstance 1
@400000006248311729c72314 INFO:device_manager:publish {'portalId': '************', 'deviceInstance': {'t1': '1'}} to device/fe001/DBus, status is 0
@40000000624831b1370f350c INFO:device_manager:Received device status message {'clientId': 'fe005', 'connected': 1, 'version': 'v4.0.6', 'services': {'tl1': 'stank'}}
@40000000624831b13716d62c WARNING:device_manager:status.service type stank is not supported, please check services.yml
@40000000624831b1371bb05c WARNING:device_manager:Status message from client fe005 failed validation and has been rejected
Before grid was added to services.yml, the dbus-mqtt-devices service appeared to crash when grid was included in the status message.
{'clientId': 'a01', 'connected': 1, 'version': 'v1.0 ALPHA', 'services': {'t1': 'temperature', 'pv1': 'pvinverter', 'pv2': 'pvinverter', 'g1': 'grid'}}