Ankündigung

Einklappen
Keine Ankündigung bisher.

logic not working

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

    logic not working

    trying a very basic logic, and it's driving me crazy can't get i t to work

    my files below

    Items
    Code:
    [Forbrug]
        [[Varme]]
            [[[Spisebord]]]
                type = bool
                visu = yes
                visu_acl = rw
                knx_dpt = 1
                    knx_listen = 0/1/4
                    knx_send = 0/1/4
            [[[Logik]]]
                type = bool
                visu = yes
                visu_acl = rw
                    knx_dpt = 1
                    knx_listen = 0/1/17
    Code:
    # /usr/local/smarthome/etc/logic.conf
    [MyLogic]
        filename = nat.py
         watch_item = sh.Forbrug.Varme.Logik
    Code:
    #
    # logics/nat.py
    #
    if not sh.Forbrug.Varme.Spisebord():
        sh.Forbrug.Varme.Spisebord('on')

    #2
    You must not use sh. in the watch_item line.
    Code:
    watch_item = Forbrug.Varme.Logik
    is correct.

    Perhaps you want to add
    Code:
    enforce_updates = true
    to your item Logik?!?

    Mode

    Kommentar


      #3
      Where is the problem? Is your logic loaded at the start of sh.py (you should see it in the log file)?
      Mit freundlichen Grüßen
      Niko Will

      Logiken und Schnittstelle zu anderen Systemen: smarthome.py - Visualisierung: smartVISU
      - Gira TS3 - iPhone & iPad - Mobotix T24 - ekey - Denon 2313 - Russound C5 (RIO over TCP Plugin) -

      Kommentar

      Lädt...
      X