freakent / dbus-mqtt-devices

A driver for Victron VenusOS GX devices to support use of dbus-mqtt/flashmq-mqtt
MIT License
115 stars 24 forks source link

I did the installation work around but still doesn't work #61

Closed Zahnpasta83 closed 1 year ago

Zahnpasta83 commented 1 year ago

Im trying to get it running together with the ev charing integration but nothing shows up in Venus OS. Debug shows only

what did i wrong?

freakent commented 1 year ago

It looks like you are sending a device status of 0.0. You need to send a 1 (integer) to register a device. Check your code or send a snippet of your registration code below.

Did you edit these log file entries together? It looks like the driver is repeatedly starting and stopping.

Zahnpasta83 commented 1 year ago

Raspi Version 3.0.0

freakent commented 1 year ago

@4000000064843f82683757c INFO: device_manager: Received device status message 0.0

Should be a 1

freakent commented 1 year ago

Please share some client code.

Zahnpasta83 commented 1 year ago

something like this? Im just sending a 1 for test purpose, as soon as it works i would like to implement a KEBA Charger

freakent commented 1 year ago

Are there any retained messages hanging around in MQTT? Have you checked everything with MQTT Explorer?

You should not be using retained messages for device status registration messages.

How to Delete Retained Messages in MQTT? There is only one way to delete the retained message of a topic. To achieve this, simply publish a retained message with a zero-byte payload to the topic where the retained message is stored. When the broker receives this special retained message, it identifies it as a request for deletion and promptly removes the retained message associated with that topic. As a result, new subscribers will no longer receive the previously retained message for that particular topic.

Zahnpasta83 commented 1 year ago

After 20 minutes it shows up in Venus OS but says not connected and except the device status i cant see any data

Bildschirmfoto 2023-08-25 um 12 33 01 Bildschirmfoto 2023-08-25 um 12 34 48 Bildschirmfoto 2023-08-25 um 12 34 35
Zahnpasta83 commented 1 year ago

And im still getting this dbus mqtt start up loop

freakent commented 1 year ago

We need to solve one problem at a time. Are you still getting those messages that device manager received a status of 0.0?

freakent commented 1 year ago

After 20 minutes it shows up in Venus OS but says not connected and except the device status i cant see any data

Venus will say the device is Not Connected if the driver or the client is not connected to MQTT or not running.

freakent commented 1 year ago

something like this? Im just sending a 1 for test purpose, as soon as it works i would like to implement a KEBA Charger

As it's NodeRed I'd appreciate a screen shot of the flow. It's hard to visualise a few hundred lines of Json in my head.

Zahnpasta83 commented 1 year ago

Oops now it works, i accidentally sent the disconnection value which i removed right before i sent this picture

freakent commented 1 year ago

So is everything working now? Can we close this issue?

Zahnpasta83 commented 1 year ago

Yes thank you very much