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
f.ten.velde 0
Hello,
Does any one know if there is an easier way to control the native Fibaro Plug in's from LUA or Graphical scenes?
Below procedure works, but is not so transparent and add's a lot of overhead in my HC2
1) install plug in (i.e. samsung TV)
2) make a VD (ID=76) that controls push the buttons of the plug in
In each button I run below LUA code with the button name I find with firefox.
HC2 = Net.FHttp ("192.168.0.250")
HC2:setBasicAuthentication("userxxxx","passwordxxxx")
response = HC2:GET("/api/plugins/callUIEvent?deviceID=35&ElementName=POWER_Button&eventType=onReleased")
3) Make a scene (with LUA or graphical) that pushes the button of the VD.
Then I run a scene pushing the button. In this example button 7
fibaro:call(76, "pressButton", "7"); -- Samsung TV woonkamer uit
rgds
Frank
Please login or register to see this attachment.
Please login or register to see this attachment.
Please login or register to see this attachment.
Please login or register to see this attachment.
Edited by f.ten.velde0 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.