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


  • 0

[VD] Network Device Monitor {v2.5} & {v2.6}


AutoFrank

Question

Hi Everyone

 

v 2.6 now available for users that have the SMsgH installed

 

Three offerings - Please read below to see which is right for you

1) WWWAPI Monitor {v1.0} - New (Mar8th) - vd that monitors only availability of the internet with option for sonos-api device. (leverages

Please login or register to see this link.

 {v1.0} 

 

2) Network Device Monitor VD {v2.5} - vd that can monitor several + devices and has built-in alert notification options (pushover/pc2popup/hc2email/allinone)

         or 

3) Network Device Monitor VD {v2.6}  - vd that can monitor several + devices and deigned to be used with the recently released 

Please login or register to see this link.

 {v1.0} 

 

Regards

[Autofrank]

 

LAN Monitor / Network Device  Monitor {v2.6} ------ to be used with Smart Message Hub {v 1.0}

Modified to to be used with Smart Message Hub

- Label check removed to simplify virtual device

4 simple steps to upgrade from v2.5 to v2.6

  1. Import the new virtual device
  2. Configure your SendMsg preferences 
  3. Copy your v2.5 jsonNetwork table to v 2.6 and set UpdateData to 'true'
  4. Set UpdateData to 'false' and that's it !!

 

LAN Monitor / Network Device  Monitor {v2.5} ------ has built in Notification Services

The main difference between 2.0 and 2.5 are the following

  • Virtual Device ONLY - ( no need for separate scene, table updates are now done through VD)
  • Global variable table is created automatically created for new users
  • Added HC2 Popup service as an extra notification option

 

The following features are still available

  • Individual LAN devices can be marked for Alert
  • Alert Notification options configurable for HC2 email (default), pushover, or ALLINONE (@jompa68)
  • One Alert will be received when device goes offline and another when it comes back online
  • Online/Offline status is captured in global table that can be used to trigger other events
  • Debug routine called vdCheck will verify that correct quantity of vd labels and format was setup
  • Status/Error/Check feedback through the virtual device log console as visible through the Web UI 

 

I use this to monitor Internet, Unifi Security Gateway, HC2, Sonos API (pi), TV's, Sat Box, Apple TV, Droid Box, Alarm Panel, Alarm Gateway, Syn NAS Global cache device, Cameras, Tablets, Sonos players, Access points and phones. Alerts setup for Internet, USG, Sonos API, Access points, cameras, Sonos players, Alarm panel, alarm gateway and NAS. There are some nuances with some devices such as TV's and Phones.

 

Open Ports of some devices that were shared by users

  • Internet google (port 80)
  • Sonos players/zone (port 1400)
  • Sonos API (port 5005 or 5006)
  • Raspberry Pi Hosting API (port 22)
  • iPhone Port (port 62078)
  • Smarter coffee maker (port 2081)
  • Smarter iKittle (port 2081)
  • Philips TV 47PFL5000 (port 1925)
  • Foscam cameras (port 88)
  • NAS Netgear U6 (port 80)
  • Global cache GC100-12 (port 21)
  • Humax FoxSat satellite receiver(port 80)
  • Apple TV Gen 3 (port 5000)
  • NPET MXQ Pro TV Box - Android 5.1 (port 7002)
  • Sony TV’s (port 80)
  • Samsung TV (port 8080)
  • Synology NAs DS415Play (port 80)
  • SPC Gateway (port 80)
  • Siemens Alarm Panel (port 443)
  • HKVision IP Camera (port 80)
  • Unifi security Gateway (port 80)
  • Unifi UniFi AC LR Access Point (port 22)
  • Samsung Galaxy S6 / S7 (port 5060)
  • Samsung Tablet (port 5060)
  • Generic Android Tablets (port 5060)
  • Airport Express and Airport Extreme (port 5009)
  • Amazon Echo Dot and Fullsize Echo (port 4070)

 

== INSTALLATION: Upgrading from 2.0 ==
    - Import the LAN Monitor 2.5 VD and copy in device table from Update Network Table 2.0
    - Run VD with updateData  = "true" to update the Network table (default setting is false)
    - Run VD with updateData  = "false" to operate in normal mode
    - Update notification and frequency of update options

 

== INSTALLATION: First Time Users ==
STEP 1  - Import the LAN Monitor 2.5 virtual device
        - Populate the device table. Device, ip, port and enter alert = "1" for device notification

               - alert is user configurible per device

               - alert = 1 (enable alerts - alerts sent if it goes offline or comes back online )

               - alert = 0 (disable alerts for this device)

        - Select the notification options 
        - Run VD with updateData  = "true" to populate the device table
        - Run VD with updateData  = "false" to operate in normal mode

Step 2 (optional) - create labels to display device status in VD
        - Create one label for each device in the global variable table, use the default ID - Label1, Label2, etc. 
        - Enter Label Names (1, 2, 3, etc) to match order order of devices in Table (devices can be skipped but ID's must match)
        - Select Main  label to display one device when observing through Web UI 
        - If you want to use all labels you can use Set vdCheck = "true" to confirm correct quantity and format of labels.

 

 

Please login or register to see this attachment.

    

 

== FILES ==

Use the version if you don't have Smart Message Hub installed

>> Network device Monitor VD {v2.5} ------------> 

Please login or register to see this attachment.

 

Use this version if you HAVE Smart Message Hub installed

>> Network Device Monitor VD {v 2.6} -----------> 

Please login or register to see this attachment.

 

 

 

Thanks to @jompa68 , @petergebruers , @sonnyboy and @boerremk for their input

 

Regards

-f

 

Edited by AutoFrank
  • Like 2
  • Thanks 1
Link to comment
Share on other sites

Recommended Posts

  • 0
  • Inquirer
  • Released Network Monitor 2.5

    Virtual Device ONLY - ( no need for separate scene, table updates are now done through VD)

    Global variable table is created automatically created for new users

    Added HC2 Popup service as an extra notification option

     

    Updated First Post  with changes and new instructions

    Link to comment
    Share on other sites

    • 0

    Excellent.  Really useful.   

     

    FYI   I adjusted line 142

     

    Please login or register to see this code.

    This means you name specify the same text for each monitored item in jN.device (e.g. "AppleTV") as in each label you add to the VD (e.g.  Label: AppleTV and Id:AppleTV.

     

    Same change need at line #165

     

    i found it slightly easier to set up the relationships between the jN table held in the global variable and the VD ui items that way.

     

    Thanks AutoFrank.

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 20 minutes ago, ipsofacto said:

    This means you name specify the same text for each monitored item in jN.device (e.g. "AppleTV") as in each label you add to the VD (e.g.  Label: AppleTV and Id:AppleTV

     

    Thanks @ipsofacto for the feedback

    I'm curious as why you wanted the label id' the same as the labels

    normally the id's are pretty transparent to the device

     

    btw, I'm working on the next iteration which is looking to combine the Network Monitor/Alert with TTS functionality and create a generic Messaging Hub to enable users to send HC2 feedback from scenes and vd's in a number of different directions depending on type, function, time and urgency among other things....

     

    Link to comment
    Share on other sites

    • 0

    Just making it easy to set up for me.  No longer need to get same sequence in table and vid labels.  Agree makes no difference to functionality.  Thanks for sharing the new version! Worked out of the box - great!

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 12 minutes ago, ipsofacto said:

    Just making it easy to set up for me.  No longer need to get same sequence in table and vid labels.  Agree makes no difference to functionality.  Thanks for sharing the new version! Worked out of the box - great!

     

    @ipsofacto

    that makes sense , I just wanted to make sure I didn't miss a use case :-)

     

    I actually do the same myself, I have about 6 devices that I view and have alerts on the rest

    I also have 2 vd's (i just changed the table name for the second) and I check at a different interval for devices such as my sonos players.

    I'm interested if they go offline but it's not as urgent as my cameras, my sonos-api going offine or the wine fridge temp going up :-)

     

    in the next version, any TTS that fails will be sent as a message so the information always gets through some way,  even 'internet down' which will be sent via the popup notification as pushover, email and TTS won't work at that stage..

     

    if you have any other use cases or wild ideas please send them on.. :-)

     

     

    thanks

    -f 

     

    Edited by AutoFrank
    Link to comment
    Share on other sites

    • 0

    HI Frank

     

     

    Looks really great and I learn a lot from you already, but I'm curious, can you share some of the use cases why you want to know those (LAN) statuses ?

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 9 hours ago, Patrick said:

    HI Frank

     

     

    Looks really great and I learn a lot from you already, but I'm curious, can you share some of the use cases why you want to know those (LAN) statuses ?

     

    Hi @Patrick

     

    For some like my cameras or the sonos api, or sonos zone players I want to know so I can fix (did somebody plug something out ) 

    For other devices like my sat box, apple tv, I turn these off at night and this info lets me know that they are back running

    For my TV's it's a little different  - the remote has only one power button for both on and off so knowing the LAN status stops me turning it off when I really want it turned on.

     

    I don't really need the VD labels as I don't manually watch for status.

    I started to create this as a scene initially so I would get the alerts but fibaro doesn't support tcpsocket in scenes ...

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 42 minutes ago, Winnetoe said:

    hello

    how can I make the labels so I can see if the internet is online ?

     

    greetings Cor 

     

    hi @Winnetoe

     

    If the internet is the first one on the list then just create a label with ID of Label1 and a suitable title

    If it is second call the ID Label2, etc

     

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0

    Frank

    What is the poort for check your sonos player is online ?

    I setup you monitor and its work great

     

    thanx

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 26 minutes ago, Winnetoe said:

    Frank

    What is the poort for check your sonos player is online ?

    I setup you monitor and its work great

     

    thanx

    @Winnetoe

     

    Its great to hear it's working 

    Sonos player are port 1400 and if you run the sonos http api , the port is 5005

     

     

    Link to comment
    Share on other sites

    • 0

    What is the meaning of the IP table of the following items?

     

     online = "0", alert = "1", alertTrack = "0"},

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 2 minutes ago, samuel said:

    What is the meaning of the IP table of the following items?

     

     online = "0", alert = "1", alertTrack = "0"},

     

    Hi @samuel

     

    online and alertTrack are used by the scene to track states

     

    alert is user configurible per device

    alert = 1 (enable alerts - alerts sent if it goes offline or comes back online )

    alert = o (disable alerts for this device)

     

    I'll add this to the first post

     

    Thanks

    Link to comment
    Share on other sites

    • 0

    ok, thanks

     

    What is the portnumber of the following items?

    - sonos speaker 

    - apple router

    - internet 

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 14 minutes ago, samuel said:

    ok, thanks

     

    What is the portnumber of the following items?

    - sonos speaker 

    - apple router

    - internet 

     

     

    @samuel

     

    I thought the internet was in the table supplied but it's just the google homepage

     

    ip="213.233.153.244", port="80",

    sonos is the IP of the player and port 1400

    sonosapi is the ip of where it is hosted and port 5005

     

    I don't have an apple router but if you use a network scanner on your home network and then scan the IP of the router for open ports you should a couple

    I use Fing and nMap is another network scanner

     

     

     

    Link to comment
    Share on other sites

    • 0

    Just a thought, how can the hc2 send out a alert to let me know that the internet is down, if the internet is down. Doesn't it use the internet to send out notifications, when I am away from home? :0)

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...