Privatecoder / seplos-mqtt-remote-rs485

fetch data from one or multiple Seplos battery packs via (a) (remote) RS485 connection(s)
10 stars 3 forks source link

Destination IP/Port required? #3

Closed jwillmer closed 7 months ago

jwillmer commented 7 months ago

Is it required to set destination IP and port in Waveshare RS485?

I followed the setup and all seams to be working but I don't see any new device in my Home Assistant MQTT integration. Is there a way to confirm data is actually received by the seplos-mqtt-remote-rs485 container?

Privatecoder commented 7 months ago

have you restarted Home Assistant after starting the docker-container? however you should always be able to see the published MQTT messages via something like MQTT Explorer

Privatecoder commented 7 months ago

also, when setting the Waveshare device to Work Mode TCP Server

image

the Dest. IP/Domain and Dest. Port are disabled

image
jwillmer commented 7 months ago

This is what I configured for master (IP and Gateway I removed in the screenshot) image

Privatecoder commented 7 months ago

the web interface really doesn't work well so I recommend using the VirCom (Windows) tool (works in Windows for ARM on macOS as well).

However I would go ahead and check MQTT Explorer first to see if it receives anything.

jwillmer commented 7 months ago

Great. Now I see both packs in Home Assistant. Sadly all sensors are marked unavailable.

Privatecoder commented 7 months ago

see my previous message: check if the docker container actually retrieves data from the packs (with something like MQTT Explorer)

jwillmer commented 7 months ago

Ok, will do but can i be as simple as wrong wiring? Depending on the patch cable the colors are mapping to different pins:

image

MQTT Explorer: image

Privatecoder commented 7 months ago

should look like this in MQTT Explorer:

image

as for the wiring:

I used the 568B scheme

jwillmer commented 7 months ago

I also used that schema. I need to test my wiring since I used (cheap) keystone jacks. I will report back once done.

jwillmer commented 7 months ago

Resolved! The stupid keystone jacks did not work with flexible cables and I even had to bend the cutting blades to work with solid cables. But now it works and looks beautiful!