Ankündigung

Einklappen
Keine Ankündigung bisher.

- √ - smartVISU doesn't send KNX

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

    - √ - smartVISU doesn't send KNX

    I have beginner problem with smartVISU.
    EIBD is working, SmartHome.py is also working from CLI (receive and send KNX messages, turn light on/off).
    But SmartVISU web doesnt do anything.

    Can you help a beginner?

    Here is my simple configuration:

    items.conf:
    [Kuca]
    [[Radna]]
    [[[Svjetlo]]]
    [[[[OnOff]]]]
    type = bool
    visu_acl = rw
    visu = yes
    knx_dpt = 1
    knx_listen = 1/2/11
    knx_send = 1/2/11
    knx_init = 1/2/11


    room_radna.html (switch shows on the web but doesnt do anythin)
    {{ basic.switch('S1', 'Kuca.Radna.Svjetlo.OnOff', icon1~'light_light.png', icon0~'light_led.png' ) }} LED

    SmartHome.py works fine - turns light on and off:
    telnet 0 2323
    Trying 0.0.0.0...
    Connected to 0.
    Escape character is '^]'.
    SmartHome.py v1.0-35-gf62db45
    Enter 'help' for a list of available commands.
    > update Kuca.Radna.Svjetlo.OnOff = 1


    and log file (it reads from KNX and writes via CLI but not via web VISU)
    2014-08-10 21:29:46,034 DEBUG Main knx: 1.1.23 set 1/2/11 to True -- __init__.pyarse_telegram:190
    2014-08-10 21:29:46,036 DEBUG Main Item Kuca.Radna.Svjetlo.OnOff = True via KNX 1.1.23 1/2/11 -- item.py:__update:363
    2014-08-10 21:30:40,079 DEBUG Main CLI: incoming connection from 127.0.0.1:39521 to 0.0.0.0:2323 -- connection.py:accept:188
    2014-08-10 21:30:40,081 DEBUG Main CLI: incoming connection from 127.0.0.1:39521 to 0.0.0.0:2323 -- __init__.py:handle_connection:190
    2014-08-10 21:30:57,244 DEBUG Main Item Kuca.Radna.Svjetlo.OnOff = False via CLI 127.0.0.1:39521 None -- item.py:__update:363
    2014-08-10 21:30:57,250 DEBUG Main knx: 0.0.0 set 1/2/11 to False -- __init__.pyarse_telegram:190



    and my plugin.conf:
    [knx]
    class_name = KNX
    class_path = plugins.knx
    host = 127.0.0.1
    port = 6720
    # send_time = 600 # update date/time every 600 seconds, default none
    # time_ga = 1/1/1 # default none
    # date_ga = 1/1/2 # default none
    #[ow]
    # class_name = OneWire
    # class_path = plugins.onewire
    [visu]
    class_name = WebSocket
    class_path = plugins.visu
    smartvisu_dir = /var/www/smartVISU
    [cli]
    class_name = CLI
    class_path = plugins.cli
    ip = 0.0.0.0
    update = True
    [sql]
    class_name = SQL
    class_path = plugins.sqlite


    Everything is installed on Ubuntu 14.04 (x86) kernel 3.13.0-32

    #2
    Hello nitko666,

    you have to tell smartVISU where to find smarthome.py
    So you have to add the following lines in your plugin.conf after [visu]
    Code:
    ip=172.0.0.1
    port=2424
    acl = rw
    Without acl = rw SV isn't able to write to sh.
    If 172.0.0.1 isn't working you can try to add the IP adress of your server instead.

    Greetings, Sebastian
    Baustelle 2.0 (Detailprogrammierung und Restarbeiten)
    Ruhri? -> Komm zum Stammtisch

    Kommentar


      #3
      I have tried to add to listen to local interface, now i have:
      [visu]
      class_name = WebSocket
      class_path = plugins.visu
      smartvisu_dir = /var/www/html/smartVISU
      ip = 127.0.0.1
      port = 2424
      acl = rw



      looks like that option is only to define listening interface, netstat looks like this now:
      tcp 0 0 127.0.0.1:2424 0.0.0.0:* LISTEN


      Unfortunately, VISU still doesnt work, looks like it doesnt connect to smarthome,py

      Kommentar


        #4
        Hello,

        do you have aktivate smarthome.py in the smartVISU settings? On the smartVISU configuration page at I/O-Connection?

        Driver: Smarthome.py
        Adress: Your Server IP Adress
        Port: 2424
        Realtime: On

        Sry about my English
        Angaben nach bestem Wissen und Gewissen (Inhalt und Rechtschreibung)

        Kommentar


          #5
          Zitat von ErKi Beitrag anzeigen
          Adress: Your Server IP Adress
          and beware of the dots in the IP-address. I've overseen that I've added the dots twice (like 127..0.0.1), because the dots are very small in the used configuration page font type.
          I've found that, while looking in
          \var\www\smartvisu\config.php
          Code:
          define('config_driver', 'smarthome.py');
          define('config_driver_address', '127.0.0.1');
          define('config_driver_port', '2424');
          define('config_driver_realtime', true);
          Is it correct that you use:
          /var/www/html/smartVISU ?
          normally it's without the html folder. Additionally the folder name is normally in small letters. smartvisu istead of smartVISU. Maybe this can cause trouble, too.

          Greetings, Sebastian

          P.S.
          If your wrap your code between [C O D E] and [/ C O D E] it's more easy to read. You only have to leave the blanks between the letters. I've added them only to show you the keywords.
          Baustelle 2.0 (Detailprogrammierung und Restarbeiten)
          Ruhri? -> Komm zum Stammtisch

          Kommentar


            #6
            THATS IT - I was using wrong driver in config, it is working now !!

            somewhow i assumed i should use eibd driver and not smarthome.py

            a beginner error...

            Thank you for your help!

            P.S. the web folder is correct, ubuntu default....

            Kommentar


              #7
              Hello nitko666,
              Thanks for your Feedback.
              And have a lot of fun with SV.

              Greetings, Sebastian
              Baustelle 2.0 (Detailprogrammierung und Restarbeiten)
              Ruhri? -> Komm zum Stammtisch

              Kommentar

              Lädt...
              X