question

Alistair Warburton avatar image
Alistair Warburton asked

Generator running indication? (manual start... for now)

Hi folks,

New to all this, stem less than 24 hrs online.

Easysolar 5000, BYD 13.8

Seems to be working well but not showing generator running when charging.

I am assuming that is because I am not starting the gen from the system, yet, but I wanted to know if I can get it to recognise when the gen is running base on the AC state.

I am off grid so there is no AC unless the gen is on.

If there is no setting for this, is ther an aux input I can configure to do it?

MultiPlus Quattro Inverter ChargerGeneratoroffgrid
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

6 Answers
ben avatar image
ben answered ·

I don't believe there is a built-in, easy way to do this, no.

It's technically possible, but you'd have to write code on the device to do it yourself.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Alistair Warburton avatar image
Alistair Warburton answered ·

Oh... Odd but I guess it is what i is.

Thanks Ben.

How is runtime calculated then, from the generator call?

How dose that work... If it didnt start when called would runtime be clocked up?

I have the detect setting on so I should get an alarm if a call is made but no input is detected it will be interesting to see what happens.

Is ther a way to build a custom assistent? I am comfortable coding but I would need some pointers RE IDE/langusge and an idea about resources/objects/API, whatever.

OK well thats just strange... Tested... WHY? who thought that was clever!

Runtime dose clock up whenever a start signal is on, manual or otherwise.

The detect works, in that I got an alarm 5 mins after setting the generator to run and not physically starting it.

Code it is then...

This is just silly, literally all the bits but nothing in the way of even basic inteligence... go figure.


I / we must be missing something...

Go on somone make me look silly, and happy not to have to start messing with code.


Al

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

ben avatar image ben ♦ commented ·

Yes, the counter is fairly basic and pretty much just triggered by the start-stop management options you have played with.

If the generator gets "out of sync" with the start-stop module, for example if you start or stop it manually, the module will just proceed on with its counting time. If you have a single-pulse start and stop command for your generator that is identical, like mine, it will then be in the wrong state forever, stopping the generator when it should be starting it, and vice versa.

The logic is pretty complex with all of its triggers and options, but the state management is fairly simple and you might even say "crude."

You could write some software to watch the power coming in and, above some threshold, go in and set the generator status to running. You can do that off-device entirely through MQTT or on-device via dbus.

0 Likes 0 ·
Daniël Boekel (Victron Energy Staff) avatar image
Daniël Boekel (Victron Energy Staff) answered ·

Hi @Alistair Warburton

Did you try configuring the AC input you use for the generator as 'generator'?





generator will also be seen on VRM.


2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Alistair Warburton avatar image
Alistair Warburton answered ·

Daniel, thanks, yes I have it configured like that.

The generator is not set up to start automatically but when I start it manually the charging works as it should and I get appropriate AC data.

I do not get an indication that the generator is running.

If I tell the generator to start on the CCGX, obviously it dosnt, but runtime then clocks up.

With the AC sense on, the generator called and the generator stopped I get an alarm as I should however having just told me the generator has failed to run th system continues to clock up generator runtime !

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Hi @Alistair Warburton

I think I didn't fully understand your question, things seem to get lost in translation..

I was talking about recording generator energy production in the VRM logs, but you were talking about generator 'runtime' I gather now?

I don't know if that can be counted if you use a manual start.

0 Likes 0 ·
Show more comments
Alistair Warburton avatar image
Alistair Warburton answered ·

OK... Well I did a bit more digging and essentilly tested your suggestion before I read it.

Hooked up a Modbus client, just using my android tablet for now, and found I could read various bits, as advertised, more or less.

I am used to industrial Modbus TCP so the organisation seems a little strange but not entirly alian.

The Modbus registers doc isnt clear, register 3500, Manual Start, is listed as part of com.victronenergy.generator, which dosnt have a device ID mapping but respond just fine when addressed as part of ....system.

The upshot is if you set ....system.3500 to 1 the generator starts in manual and the counter runs.

.....system.806 is the CCGX relay state, which I currently have configured as the generator start, and this is toggling as it should in response to the run signal.

The upshot is that I agree, that an external box is probably a good call, with a PLC being my prefrence right now but only because they are a solid option.

I understand roughly how MQTT works and was in fact planning on installing a broker to handle some ESP8266 automation. However I am not familer with the setup yet... Is there a topic list somwhere or are the topics the same as dbus... whatever that is?

If not what is dbus, should I be looking at it too?

I am going to have questions RE BYD data over whatever but I think that is another thread.

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Best to ask those questions here:

https://community.victronenergy.com/spaces/31/index.html

or I can move this topic to that area..

0 Likes 0 ·
ben avatar image ben ♦ commented ·

Nice. As you discovered, you can write that value and it’s equivalent to toggling it in the UI.

I haven’t actually used Modbus, because I was new to both and MQTT seemed a lot more modern and easy. I believe you will find the MQTT “topic hierarchy” easier to navigate instead of having to look up random values in a register table. It mirrors the dbus hierarchy, which you can view by logging into your Venus and running dbus-spy.

Hop over to modifications and review the existing mqtt material there and on the wiki first. Then, you can post any follow-up questions you have there, since you’re officially off the supported space for this community area, then.

0 Likes 0 ·
Alistair Warburton avatar image
Alistair Warburton answered ·

Updating this old post so that anyone finding it in the future can see the conclusion.
I haven't bothered with it until now, hours tracked manually. However I am now setting up other automation and it seemed like the right time.

I am now using Mosbus to do this, via Node Red. (MQTT would probably work too.)
When I see a voltage on AC 1, generator 'manual start' is set to 1. No voltage and it is set back to 0.

I will be implementing auto start, cooldown and stop from Node Red. as soon as I have a reliable way to detect cranking / running and have hooked up a choke servo and fuel solenoid.

(Yes I know, buying a generator with auto start would have been so much easier)

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.