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!



Smart Home Forum by FIBARO Team

Checking devices connected to the WI-FI network Sprawdzanie urządzeń podłączonych do sieci WI-FI 1.0.0

   (0 reviews)

3 Screenshots

About This File

Checking devices connected to the WI-FI network

Checking devices connected to WI-FI

We create a global variable, for example TabletSony

Then we import the Tablet_Sony_WI-FI virtual device after loading the device, we change the name according to our own needs, e.g. phone of the wife, etc., enter the IP address and port of the device to be checked if it is connected to the local network

tcpSocket = Net.FTcpSocket ("", 8071) - ip address and device port

bytes, errorCode = tcpSocket: write ("test")

local device = 743 - virtual device id

if errorCode == 0


fibaro: call (device, "setProperty", "currentIcon", 1181) - id of the ON icon

fibaro: setGlobal ("TabletSony", "1"); - we create a global variable called eg TabletSony

fibaro: log ("Sony ON tablet ..os.date ("% H:% M ")) - displays the status of the device and the time on the notification bar


fibaro: call (device, "setProperty", "currentIcon", 1179) - id of the OFF icon

fibaro: setGlobal ("TabletSony", "0");

fibaro: log ("Sony OFF Tablet" ..os.date ("% H:% M")); ")) - displays the device status and time on the notification bar





Sprawdzanie urządzeń podłączonych do WI-FI

Tworzymy zmienną globalną np. TabletSony 

Następnie importujemy urządzenie wirtualne Tablet_Sony_WI-FI po załadowaniu urządzenia zmieniamy według własnych potrzeb nazwę np. telefon  żony itd. ,wpisujemy adres ip i port  urządzenia które ma być sprawdzane czy jest podłączone do sieci lokalnej



tcpSocket = Net.FTcpSocket("", 8071) -- adres ip i port urządzenia

bytes, errorCode = tcpSocket:write("test")


local device = 743 -- id urządzenia wirtualnego

if errorCode == 0


fibaro:call(device, "setProperty", "currentIcon", 1181) -- id ikony ON

fibaro:setGlobal("TabletSony", "1"); -- tworzymy zmienną globalną o nazwie np. TabletSony

fibaro:log("Tablet Sony ON  "..os.date("%H:%M"));-- wyświetla na pasku powiadomienie stan urządzenia oraz godzinę



fibaro:call(device, "setProperty", "currentIcon", 1179) -- id ikony OFF

fibaro:setGlobal("TabletSony", "0");

fibaro:log("Tablet Sony OFF  "..os.date("%H:%M")); "));-- wyświetla na pasku powiadomienie stan urządzenia oraz godzinę








Bez nazwy 1 kopia.png




Bez nazwy 1 kopia OFF.png








iphone_PNG5736 OFF.png








tv 1.png










Other Files from talar26

User Feedback

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

There are no reviews to display.

  • Create New...