ricott / homey-com.victronenergy

https://homey.app/a/com.victronenergy
GNU General Public License v3.0
3 stars 2 forks source link

Tank levels #21

Closed rickardkk closed 10 months ago

rickardkk commented 11 months ago

Would it be possible to have tank level readings? Not only would that help with resistive sensors but we can also use the Cerbo as a bridge to Homey for the Mopeka BT ultra sonic sensors.

ricott commented 10 months ago

I don't have a tank myself. Would that be com.victronenergy.tank? Do you have more than one tank? I'm guessing here, but would each tank get its own unit id in the service list?

image
rickardkk commented 10 months ago

Great that you’re looking into this one. Yes, com.victronenergy.tank is correct and you are also right about multiple tanks (they get it’s own unit id).

ricott commented 10 months ago

Have a look at the new test version. I don't have a tank myself, so expect some problems ...

rickardkk commented 10 months ago

Great! But unfortunately it crashes on startup. Can I help buy sending logs?

ricott commented 10 months ago

What crashed? When you added a tank device? Did you get an error?

The device itself has a setting which shows last modbus error. You can also trigger a manual diagnostic report on the app settings.

rickardkk commented 10 months ago

Unfortunately the app never starts. It says “App unavailable” and “Crashed” in Homey. Tried to trigger a manual diagnostic report on the app settings but that doesn’t work.

Also the Advanced settings is missing.

rickardkk commented 10 months ago

Managed to complete a diagnostic rapport: ac21d4f1-34f7-4e81-a390-e3b10a758de4

ricott commented 10 months ago

I got the diag report, trying to understand it ... As usual, things work fine here :(

Do you have a lot of flows connected to your GX device, or is it possible to remove and re-add it?

rickardkk commented 10 months ago

No problem. I’ll try to remove and re-add.

rickardkk commented 10 months ago

Unfortunately the problem remains even when starting fresh. DR: a3a976d9-0406-465b-9068-27096dec984a

ricott commented 10 months ago

I reverted a change I did involving the old GX device. There is a new test version. The tank and temp sensors use the same new code though for reading the modbus registries. Interesting to see if that works ...

rickardkk commented 10 months ago

Great!

Now the GX is working again but I get “Couldn’t connect to host” when trying to add a tank or temp sensor. I’m not sure if that’s because of the setup with BT tank sensors but I can try a traditional within a couple of days when I get home (on holiday right now).

ricott commented 10 months ago

I get “Couldn’t connect to host” when trying to add a tank or temp sensor

It validates using the Modbus Product ID property. If it can read that, I assume we have the correct device type. Check the Unit ID of the tank/temp sensor as usual and use that one. Same IP and port as for your GX device. com.victronenergy.tank and com.victronenergy.temperature

Lets continue once you are back home 👍

rickardkk commented 10 months ago

Thanks!! I’ll get back to you as soon as I’m home again

rickardkk commented 10 months ago

Hi again,

I’m back at the island and can happily report that my tanks and temperature readings are working properly. Great work and a much appreciated feature upgrade to the already great Victron integration with Homey👍🏻

ricott commented 10 months ago

Great! Thanks for testing!