Ankündigung

Einklappen
Keine Ankündigung bisher.

Detect network object and run a logic

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Detect network object and run a logic

    Hello,

    What i want : detect when my phone is on my network (ping ?) and when it s connected run a Logic. (Open my outdoor light when i m neer my home)

    Have you an idea to make it with smarthome ? Is there a any existing plugin ?

    Thanks a lot, and sorry for the english, i didn t speak a word of German.

    #2
    My simple solution (for a smart TV):
    items.conf:
    Code:
    [og]
        [[west]]
            [[[fernseher]]]
                type = bool
    Logic fernseher.py:
    Code:
    #!/usr/bin/env python
    sh.og.west.fernseher(sh.tools.ping('192.168.178.99'))
    etc/logic.conf:
    Code:
    [fernseher]
        filename = fernseher.py
        cycle = 2
    C´est tout

    Max

    Kommentar


      #3
      Very nice !

      i didn't know the sh.tools.ping command

      Thanks a lot for your help.

      Merci

      Kommentar


        #4
        Hi,

        you can't ping (most?) smartphones if they sleep.
        You should try to install a motion detector.

        so long

        Marcus

        Kommentar


          #5
          Thanks for your reply mknx,

          Unfortunately i can't install a motion detector, i have many neer neighbors ...

          So i try to find another solution ... have you another idea ?

          EDIT : if my phone is sleeping, it didn't connect to my wifi until i unlock it ?

          Kommentar

          Lädt...
          X