Jump to content

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


Shelly_IP101.vfib 1.0.0

   (0 reviews)

1 Screenshot

About This File

This VD is a interface to the ping_shelly.lua which can also be found here. The IP-address needs to be configured as shown in the image. The port value ("109") is used/misused to set the number of the lua script in your HC2  ("_lua").

As example here the code for the "on" button:

local _self=fibaro:getSelfId()
local _addr=fibaro:getValue(_self,"IPAddress")
local _lua=fibaro:getValue(_self,\"TCPPort\")
fibaro:startScene(_lua,{_addr,"on"})
fibaro:sleep(1000)
fibaro:startScene(_lua,{_addr})
fibaro:sleep(1000)
local _slider = tonumber(fibaro:getGlobalValue("S" .. string.gsub(_addr,"%.","_")))
if (_slider <= 0)
then
    _slider=10
    fibaro:startScene(_lua,{_addr,_slider})
end
fibaro:call(_self,"setProperty","ui.brightness.value",_slider)

 

 

Edited by Theo


Other Files from Theo


User Feedback

You may only provide a review once you have downloaded the file.

There are no reviews to display.

×
×
  • Create New...