Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team

Question
Brom 1
Hey everyone,
I haven't coded for 20+ years but I figured I would give this strange LUA language a go on my new HC2 and see if I can get my fronius inverter working.
With the help of the mountain of code on this forum I was surprised to get basics working in an hour or so. Im a bit stuck so hopefully someone can help with questions.
My plan is to make this a fully functional Fronius VD. Just going to be a bit slow going learning LUA.
Here is the code as it stands.
It basically works and is displaying usage on the icon.
Please login or register to see this code.
1) If anyone has recommendations on bettering the code.. feel free to post
2) In the post line. I'm not sure what the OID does. Anyone have a link to some good ULA resources that can help with how this function works. I don't actually need to pass any additional values to the fronius. Not sure if im passing rubbish to it for no reason.
3) How do I put a newline after a debug message?
4) So i figured how to make the usage numbers appear in the icon for VD. The main number I get is the houses energy consumption. So how do I push this number into the main Fibaro consumption page so it gets graphed etc.
5) Is it possible to use the values in the VD in scenes in any way? eg When I'm generating a heap of extra power then turn a hue light red.
6) How do I pull the IP address from the Vdevice instead of manually adding it to the script?
7) Is there a way to graph all of this data easily?
Thanks for the help!!
Brom
Edited by Brom3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.