Welcome to Smart Home Forum by FIBARO
Search the Community
Showing results for tags 'search'.
I try to build a scene that can search by the ip address of VD and return the device id. I have the following code just to display all the VDs that have IP but I do get nothing.... any help? --[[ %% properties %% events %% globals --]] local devs = api.get('/devices') for k,v in ipairs (devs) do -- fibaro:debug("01") local v2 =api.get("/devices/"..v.id) -- fibaro:debug(v2.id) for m,n in ipairs (v2.properties) do fibaro:debug(n.ip) if n.ip=="192.168.13.12" then fibaro:debug("device IP found") else fibaro:debug("Not Found!") end end end
1. Enter the section of the forum that we would like to search, click the field next to the magnifying glass icon and type the phrase that you’re interested in: 2. Now you can browse through the entries containing your phrase: 3. If you want to perform a more specified search, click „More search options” and modify the search options to fit your needs: 4. You can also change the way the results are shown by clicking „Sort by”: 5. And there it is! That’s the search process in a nutshell.
I have found in the forum a useful VD tool that scans all my scenes and looks for a specifi pattern (device id etc). When the script finish , it send an email with the search results. Does anyone know if there is any tool that does the same job against virtual devices ?