Closed stundenblume closed 2 years ago
Without "grid" service it works on 0.4.0 but not on 0.4.0.1
I can't find something special in the services.yml.
0.4.0:
@4000000062476f8924c4fc9c INFO:device:Registering Service pvinverter for client a01
@4000000062476f8924cdf57c INFO:device_service_config:About to open config file
@4000000062476f89374446fc INFO:device_service:Registering service pvinverter for client a01 at path com.victronenergy.pvinverter.mqtt_a01_pv2
@4000000062476f8937f5ef74 INFO:settingsdevice:Setting /Settings/MqttDevices/mqtt_a01_pv2/CustomName does not exist yet or must be adjusted
@4000000062476f8a003f6484 INFO:settingsdevice:Setting /Settings/Devices/mqtt_a01_pv2/ClassAndVrmInstance does not exist yet or must be adjusted
@4000000062476f8a02c023c4 INFO:vedbus:registered ourselves on D-Bus as com.victronenergy.pvinverter.mqtt_a01_pv2
@4000000062476f8a0345de24 INFO:device_service:Registered Service com.victronenergy.pvinverter.mqtt_a01_pv2 under DeviceInstance 6
@4000000062476f8a036a0024 INFO:device_manager:publish {'portalId': '<id>', 'deviceInstance': {'t1': '5', 'pv1': '5', 'pv2': '6'}} to device/a01/DBus, status is 0
@4000000062476f8a03a7247c INFO:device_service:setting changed, setting: CustomName, old: PV Inverter MQTT, new: PV Inverter MQTT
@4000000062476f8a03b99724 INFO:device_service:setting changed, setting: CustomName, old: PV Inverter MQTT, new: PV Inverter MQTT
0.4.0.1:
@400000006247708a36cbdec4 INFO:device_manager:[Connected] Result code 0
@400000006247708f373913cc ERROR:mqtt_gobject_bridge:[Disconnected] Lost connection to broker
@400000006247708f3742bc74 INFO:mqtt_gobject_bridge:[Disconnected] Set timer
@400000006247709a22cf27dc *** CCGX booted (0) ***
@40000000624770a01b73ee64 *** starting dbus-mqtt-devices ***
@40000000624770b7207cc3cc -------- dbus_mqtt_devices, v0.4.1 is starting up --------
@40000000624770b7207ce6f4 INFO:logger:Loglevel set to INFO
@40000000624770b724aae4ec INFO:device_manager:Using portalId <id>
@40000000624770b724d1878c INFO:mqtt_gobject_bridge:[Init] Connecting to local broker
@40000000624770b72a6e155c INFO:device_manager:[Connected] Result code 0
@400000006247712709cca0fc INFO:device_manager:Received device status message {'clientId': 'a01', 'connected': 1, 'version': 'v1.0 ALPHA', 'services': {'t1': 'temperature', 'pv1': 'pvinverter', 'pv2': 'pvinverter'}}
@400000006247712709f0559c INFO:device:**** Registering device: a01, services: {'t1': 'temperature', 'pv1': 'pvinverter', 'pv2': 'pvinverter'} ****
@400000006247712709f8065c INFO:device:Registering Service temperature for client a01
@400000006247712709ffda44 INFO:device_service_config:About to open config file
@400000006247712722e455bc ERROR:device_service_config:Unexpected error: <class 'yaml.parser.ParserError'>
@40000000624771272351adec INFO:device_service:Registering service temperature for client a01 at path com.victronenergy.temperature.mqtt_a01_t1
@400000006247712725fa34c4 *** starting dbus-mqtt-devices ***
@40000000624771290c94c594 -------- dbus_mqtt_devices, v0.4.1 is starting up --------
@40000000624771290c94e0ec INFO:logger:Loglevel set to INFO
@40000000624771290d67e474 INFO:device_manager:Using portalId <id>
@40000000624771290d8d1bcc INFO:mqtt_gobject_bridge:[Init] Connecting to local broker
@40000000624771290fe6e27c INFO:device_manager:[Connected] Result code 0
Hi @stundenblume, As always, thanks for doing this. Couple of observations, 1) 0.4.0 didn't include grid in the services.yml file, there is a warning in the log file but then it looks like it crashed which is not good. I'll raise a separate issue for that. 2) The services.yml file in 0.4.0.1 has a small formatting error so the parser errored. I just fixed the formatting error and pushed the change up to github. You can replace your version with this one. https://raw.githubusercontent.com/freakent/dbus-mqtt-devices/main/services.yml
Out of interest, are you updating the logs to manually remove your portal id or is that not working on your system? :-)
with the updated 0.4.0.1 it works!
I replaced the portalID.
Top tip, if there appears to be something not right with the services.yml go to http://www.yamllint.com/ and copy paste your entire services.yml file in the site and press Go. That's how I found the formatting error.
Both 0.4.x versions don't work for me. 0.3.1 with my own services.yml is working as expected.
0.3.1:
0.4.0:
0.4.0.1: