buri
March 10, 2026, 1:59pm
1
Hi,
I have a system that I can talk to over MQTT to start/stop a generator. How can I integrate that into the Venus OS like a generator turned on/off over a relay?
I thought about creating a Virtual Device, but there is no device type “switch”, “relay” or even “generator”. How could I achieve that?
Virtual Device Types:
MiPaul
(Paul Keberly)
March 10, 2026, 5:15pm
2
Might be able to set up the Cerbo generator function and use NR to connect/translate the MQTT data in that function to your system.
buri
March 10, 2026, 5:31pm
3
I see, I would configure the Relay as Generator control and then use to NR to observe the relay and control the generator accordingly.
Okay, thanks that could work. A bit of a shame to sacrifice a relay for that, but it’s probably okay in this setup.
I’ll wait to see if someone has an idea that would work without sacrificing a relay. If not, I’ll mark your answer as the solution.
Thank you
Ormira
(Nicolas)
March 10, 2026, 11:39pm
4
In Version 3.70 of VenusOS there is a new node for virtual switches in Node-RED, even with a 3 state possibility :
It’s new and the documentation is not always exact, so sometime it need trials and errors but it works great.
buri
March 12, 2026, 3:13am
5
Thanks, but I don’t quite see how this applies to the question
MiPaul
(Paul Keberly)
March 12, 2026, 1:08pm
6
I was playing with NR last night. It appears an AC or DC genset is now a virtual device.
I’m on v3.80~4 but it might be in earlier releases.