Shelly 1 relay switched from GUI

Hello,

Long time lurker here but also tinkering with Venus OS on a raspberry pi a few years already.
I was looking for a solution to integrate a Shelly 1 wifi relay into Venus OS. I want to be able to turn on my heater from the GUI. Offcourse there is the simple option to use the Shelly cloud since I have a wifi network in my van this works fine, but I really want everything to be controlled from my VenusOS screen.
So I used ChatGPT to create this:

It works flawlessly!

Now you could install multiple wifi relais and controll them from the GUI!
Next step would by a dimmer.

Let me know what you guys think, I am not a real programmer, just handy with computers

1 Like

Nice!

As this could be considered a successful and constructive interaction with an AI for the Victron universe, could you please post the discussion/interaction with the ChatGPT?
In other words, could you show us what you’ve asked it to do and how?
I want to follow the way the AI has build the code and from where it took it or inspired from…

Thanks!

Its a lot of trail and error:)
First I asked about victron DBUS and started from there.
Essentially creating a DBUS service was not that hard. The hard part was linking it to the GUI relay

Thanks for response.

The hook is easy to make from the GitHub repositories of Victron.
I was much more interested in the “discussion” with ChatGPT.
I was thinking of putting it (exporting it) in a text file, zip it, and share it on a fileshare server.

Thanks anyway!