Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Русский
  3. ioBroker
  4. Ошибка
  5. ioBroker ошибки
  6. Ошибка создания объекта в OWFS

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.8k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.2k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.2k

Ошибка создания объекта в OWFS

Geplant Angeheftet Gesperrt Verschoben ioBroker ошибки
74 Beiträge 5 Kommentatoren 18.4k Aufrufe
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • H Offline
    H Offline
    Haus
    schrieb am zuletzt editiert von
    #2

    @Alekseym6:

    задаю сенсор в owfs.0 sensor1 3A.B73205000000 sensed.BYTE

    в логе появляется Wrong 2016-07-07 08:32:19.508 error type of owfs.0.wires.sensor1.common.def

    объект не создается, но на вкладке СОБЫТИЯ он присутствует с корректными значениями

    как исправить ошибку?

    сенсор DS2413 `
    Если правильно помню в драйвере нужно прописать

    3A.B73205000000 PIO.A

    3A.B73205000000 PIO.B

    js-controller: 1.5.7 / node.js: v8.15.1/ npm: 6.4.1

    admin: 3.6.0

    javascript: 4.1.10

    web: 2.4.1 vis: 1.1.10

    cloud: 2.6.2

    Server: DELL FX170 / linux: Debian 9.5 Stretch

    Adapter: MegaD-2561, Mega-ES…

    1 Antwort Letzte Antwort
    0
    • A Offline
      A Offline
      Alekseym6
      schrieb am zuletzt editiert von
      #3

      читаю сразу состояние двух портов A,B в CCU.IO работает.

      1 Antwort Letzte Antwort
      0
      • H Offline
        H Offline
        Haus
        schrieb am zuletzt editiert von
        #4

        @Alekseym6:

        задаю сенсор в owfs.0 sensor1 3A.B73205000000 sensed.BYTE

        в логе появляется Wrong 2016-07-07 08:32:19.508 error type of owfs.0.wires.sensor1.common.def

        объект не создается, но на вкладке СОБЫТИЯ он присутствует с корректными значениями

        как исправить ошибку?

        сенсор DS2413 `

        Драйвер даже для DS18B20 объект не создает
        443_screencapture-192-168-1-11-8081-1467898765575.png

        js-controller: 1.5.7 / node.js: v8.15.1/ npm: 6.4.1

        admin: 3.6.0

        javascript: 4.1.10

        web: 2.4.1 vis: 1.1.10

        cloud: 2.6.2

        Server: DELL FX170 / linux: Debian 9.5 Stretch

        Adapter: MegaD-2561, Mega-ES…

        1 Antwort Letzte Antwort
        0
        • A Offline
          A Offline
          Alekseym6
          schrieb am zuletzt editiert von
          #5

          если в консоли считать значение: cat /var/1-wire/3A.CC3205000000/PIO.BYTE , то выдаст: ' 0' (перед значением есть пробелы).

          cat /var/1-wire/28.A12A3E040000/temperature выдаст: ' 22.6875' (перед значением есть пробелы).

          а когда в настройках owfs задать PIO.B все работает. в консоли: cat /var/1-wire/3A.CC3205000000/PIO.B ,выдаст: '0' (пробелов нет).

          ошибок в логе нет.

          1 Antwort Letzte Antwort
          0
          • H Offline
            H Offline
            Haus
            schrieb am zuletzt editiert von
            #6

            @Alekseym6:

            если в консоли считать значение: cat /var/1-wire/3A.CC3205000000/PIO.BYTE , то выдаст: ' 0' (перед значением есть пробелы).

            cat /var/1-wire/28.A12A3E040000/temperature выдаст: ' 22.6875' (перед значением есть пробелы).

            а когда в настройках owfs задать PIO.B все работает. в консоли: cat /var/1-wire/3A.CC3205000000/PIO.B ,выдаст: '0' (пробелов нет).

            ошибок в логе нет. `
            Объект у тебя создается?

            у меня на cat /mnt/1wire/28.FFF67D3B0400/temperature отвечает cat: /mnt/1wire/28.FFF67D3B0400/temperature: Сообщение слишком длинное

            а на head -n 1 /mnt/1wire/28.FFF67D3B0400/temperature | awk '{print $1}' отвечает 22.375

            js-controller: 1.5.7 / node.js: v8.15.1/ npm: 6.4.1

            admin: 3.6.0

            javascript: 4.1.10

            web: 2.4.1 vis: 1.1.10

            cloud: 2.6.2

            Server: DELL FX170 / linux: Debian 9.5 Stretch

            Adapter: MegaD-2561, Mega-ES…

            1 Antwort Letzte Antwort
            0
            • BluefoxB Offline
              BluefoxB Offline
              Bluefox
              schrieb am zuletzt editiert von
              #7

              @Haus:

              @Alekseym6:

              если в консоли считать значение: cat /var/1-wire/3A.CC3205000000/PIO.BYTE , то выдаст: ' 0' (перед значением есть пробелы).

              cat /var/1-wire/28.A12A3E040000/temperature выдаст: ' 22.6875' (перед значением есть пробелы).

              а когда в настройках owfs задать PIO.B все работает. в консоли: cat /var/1-wire/3A.CC3205000000/PIO.B ,выдаст: '0' (пробелов нет).

              ошибок в логе нет. `
              Объект у тебя создается?

              у меня на cat /mnt/1wire/28.FFF67D3B0400/temperature отвечает cat: /mnt/1wire/28.FFF67D3B0400/temperature: Сообщение слишком длинное

              а на head -n 1 /mnt/1wire/28.FFF67D3B0400/temperature | awk '{print $1}' отвечает 22.375 `
              Вечером поправлю

              1 Antwort Letzte Antwort
              0
              • BluefoxB Offline
                BluefoxB Offline
                Bluefox
                schrieb am zuletzt editiert von
                #8

                Может кто нибудь попробовать с git?

                1 Antwort Letzte Antwort
                0
                • H Offline
                  H Offline
                  Haus
                  schrieb am zuletzt editiert von
                  #9

                  @Bluefox:

                  Может кто нибудь попробовать с git? `
                  Объекты создались ошибок по датчикам температуры нету.

                  DS2413 объекты создались состояние читает а вот с управлением проблемы

                  inMem	2016-07-08 23:35:06.874	debug	message owfs.0.* owfs.0.wires.Насос_дома val=true, ack=false, ts=1468010106870, q=0, from=system.adapter.admin.0, lc=1468010106870
                  inMem	2016-07-08 23:34:47.492	debug	message owfs.0.* owfs.0.wires.Насос_дома val=0, ack=true, ts=1468010087472, q=0, from=system.adapter.owfs.0, lc=1468009642527
                  owfs-0	2016-07-08 23:34:47.468	debug	Read /3A.483B1E000000/PIO.B:0
                  inMem	2016-07-08 23:34:47.461	debug	message owfs.0.* owfs.0.wires.Насос_ТП val=0, ack=true, ts=1468010087443, q=0, from=system.adapter.owfs.0, lc=1468010069556
                  owfs-0	2016-07-08 23:34:47.435	debug	Read /3A.483B1E000000/PIO.A:0
                  inMem	2016-07-08 23:34:47.432	debug	message owfs.0.* owfs.0.wires.Температура_на_улице val=16.4375, ack=true, ts=1468010087409, q=0, from=system.adapter.owfs.0, lc=1468009997467
                  owfs-0	2016-07-08 23:34:47.403	debug	Read /28.FFE6574E0400/temperature:16.4375
                  inMem	2016-07-08 23:34:29.572	debug	message owfs.0.* owfs.0.wires.Насос_ТП val=0, ack=true, ts=1468010069556, q=132, from=system.adapter.owfs.0, lc=1468010069556
                  owfs-0	2016-07-08 23:34:29.550	warn	Cannot write value of /3A.483B1E000000/PIO.A: [object Object]
                  owfs-0	2016-07-08 23:34:29.549	debug	Write /3A.483B1E000000/PIO.A:undefined
                  owfs-0	2016-07-08 23:34:29.542	debug	Write /3A.483B1E000000/PIO.A with "1"
                  inMem	2016-07-08 23:34:29.529	debug	message owfs.0.* owfs.0.wires.Насос_ТП val=true, ack=false, ts=1468010069520, q=0, from=system.adapter.socketio.0, lc=1468010069520
                  inMem	2016-07-08 23:34:17.476	debug	message owfs.0.* owfs.0.wires.Насос_дома val=0, ack=true, ts=1468010057462, q=0, from=system.adapter.owfs.0, lc=1468009642527
                  owfs-0	2016-07-08 23:34:17.457	debug	Read /3A.483B1E000000/PIO.B:0
                  inMem	2016-07-08 23:34:17.450	debug	message owfs.0.* owfs.0.wires.Насос_ТП val=0, ack=true, ts=1468010057431, q=0, from=system.adapter.owfs.0, lc=1468000757193
                  owfs-0	2016-07-08 23:34:17.427	debug	Read /3A.483B1E000000/PIO.A:0
                  inMem	2016-07-08 23:34:17.414	debug	message owfs.0.* owfs.0.wires.Температура_на_улице val=16.4375, ack=true, ts=1468010057400, q=0, from=system.adapter.owfs.0, lc=1468009997467
                  owfs-0	2016-07-08 23:34:17.390	debug	Read /28.FFE6574E0400/temperature:16.4375
                  inMem	2016-07-08 23:33:47.555	debug	message owfs.0.* owfs.0.wires.Насос_дома val=0, ack=true, ts=1468010027533, q=0, from=system.adapter.owfs.0, lc=1468009642527
                  owfs-0	2016-07-08 23:33:47.527	debug	Read /3A.483B1E000000/PIO.B:0
                  inMem	2016-07-08 23:33:47.463	debug	message owfs.0.* owfs.0.wires.Насос_ТП val=0, ack=true, ts=1468010027445, q=0, from=system.adapter.owfs.0, lc=1468000757193
                  owfs-0	2016-07-08 23:33:47.435	debug	Read /3A.483B1E000000/PIO.A:0
                  

                  js-controller: 1.5.7 / node.js: v8.15.1/ npm: 6.4.1

                  admin: 3.6.0

                  javascript: 4.1.10

                  web: 2.4.1 vis: 1.1.10

                  cloud: 2.6.2

                  Server: DELL FX170 / linux: Debian 9.5 Stretch

                  Adapter: MegaD-2561, Mega-ES…

                  1 Antwort Letzte Antwort
                  0
                  • BluefoxB Offline
                    BluefoxB Offline
                    Bluefox
                    schrieb am zuletzt editiert von
                    #10

                    Можешь ещё раз с гита. Я не могу исправить ошибку, т.к. она приходит от owfs сервера, но я попробовал её показать

                    1 Antwort Letzte Antwort
                    0
                    • H Offline
                      H Offline
                      Haus
                      schrieb am zuletzt editiert von
                      #11

                      @Bluefox:

                      Можешь ещё раз с гита. Я не могу исправить ошибку, т.к. она приходит от owfs сервера, но я попробовал её показать `
                      Версия осталась старая 0.1.0 ?

                      Поставил заново owfs.1 при первом старте Warn дальше всё также

                      inMem	2016-07-09 11:25:31.875	debug	message owfs.1.* owfs.1.wires._Насос_дома val=0, ack=true, ts=1468052731859, q=0, from=system.adapter.owfs.1, lc=1468052670939
                      owfs-1	2016-07-09 11:25:31.853	debug	Read /3A.483B1E000000/PIO.B:0
                      inMem	2016-07-09 11:25:31.844	debug	message owfs.1.* owfs.1.wires.Насос_ТП val=0, ack=true, ts=1468052731824, q=0, from=system.adapter.owfs.1, lc=1468052434705
                      owfs-1	2016-07-09 11:25:31.817	debug	Read /3A.483B1E000000/PIO.A:0
                      inMem	2016-07-09 11:25:31.805	debug	message owfs.1.* owfs.1.wires.Температура_на_улице val=16.875, ack=true, ts=1468052731791, q=0, from=system.adapter.owfs.1, lc=1468052611770
                      owfs-1	2016-07-09 11:25:31.784	debug	Read /28.FFE6574E0400/temperature:16.875
                      inMem	2016-07-09 11:25:02.303	debug	message owfs.1.* owfs.1.wires._Насос_дома val=0, ack=true, ts=1468052702285, q=0, from=system.adapter.owfs.1, lc=1468052670939
                      inMem	2016-07-09 11:25:02.136	debug	message owfs.1.* owfs.1.wires.Насос_ТП val=0, ack=true, ts=1468052702079, q=0, from=system.adapter.owfs.1, lc=1468052434705
                      owfs-1	2016-07-09 11:25:02.071	debug	Read /3A.483B1E000000/PIO.B:0
                      owfs-1	2016-07-09 11:25:02.055	debug	Read /3A.483B1E000000/PIO.A:0
                      inMem	2016-07-09 11:25:02.028	debug	message owfs.1.* owfs.1.wires.Температура_на_улице val=16.875, ack=true, ts=1468052702001, q=0, from=system.adapter.owfs.1, lc=1468052611770
                      owfs-1	2016-07-09 11:25:01.994	debug	Read /28.FFE6574E0400/temperature:16.875
                      inMem	2016-07-09 11:24:31.836	debug	message owfs.1.* owfs.1.wires._Насос_дома val=0, ack=true, ts=1468052671823, q=0, from=system.adapter.owfs.1, lc=1468052670939
                      inMem	2016-07-09 11:24:31.814	debug	message owfs.1.* owfs.1.wires.Насос_ТП val=0, ack=true, ts=1468052671797, q=0, from=system.adapter.owfs.1, lc=1468052434705
                      owfs-1	2016-07-09 11:24:31.807	debug	Read /3A.483B1E000000/PIO.B:0
                      owfs-1	2016-07-09 11:24:31.793	debug	Read /3A.483B1E000000/PIO.A:0
                      inMem	2016-07-09 11:24:31.782	debug	message owfs.1.* owfs.1.wires.Температура_на_улице val=16.875, ack=true, ts=1468052671768, q=0, from=system.adapter.owfs.1, lc=1468052611770
                      owfs-1	2016-07-09 11:24:31.762	debug	Read /28.FFE6574E0400/temperature:16.875
                      inMem	2016-07-09 11:24:30.952	debug	message owfs.1.* owfs.1.wires._Насос_дома val=0, ack=true, ts=1468052670939, q=132, from=system.adapter.owfs.1, lc=1468052670939
                      owfs-1	2016-07-09 11:24:30.933	warn	Cannot write value of /3A.483B1E000000/PIO.B: [object Object]
                      owfs-1	2016-07-09 11:24:30.927	debug	Write /3A.483B1E000000/PIO.B with "1"
                      inMem	2016-07-09 11:24:30.915	debug	message owfs.1.* owfs.1.wires._Насос_дома val=1, ack=false, ts=1468052670901, q=0, from=system.adapter.admin.0, lc=1468052670901
                      inMem	2016-07-09 11:24:02.330	debug	message owfs.1.* owfs.1.wires._Насос_дома val=0, ack=true, ts=1468052642326, q=0, from=system.adapter.owfs.1, lc=1468052534945
                      owfs-1	2016-07-09 11:24:02.295	debug	Read /3A.483B1E000000/PIO.B:0
                      inMem	2016-07-09 11:24:01.892	debug	message owfs.1.* owfs.1.wires.Насос_ТП val=0, ack=true, ts=1468052641866, q=0, from=system.adapter.owfs.1, lc=1468052434705
                      owfs-1	2016-07-09 11:24:01.855	debug	Read /3A.483B1E000000/PIO.A:0
                      inMem	2016-07-09 11:24:01.795	debug	message owfs.1.* owfs.1.wires.Температура_на_улице val=16.875, ack=true, ts=1468052641789, q=0, from=system.adapter.owfs.1, lc=1468052611770
                      owfs-1	2016-07-09 11:24:01.757	debug	Read /28.FFE6574E0400/temperature:16.875
                      inMem	2016-07-09 11:23:31.845	debug	message owfs.1.* owfs.1.wires._Насос_дома val=0, ack=true, ts=1468052611830, q=0, from=system.adapter.owfs.1, lc=1468052534945
                      inMem	2016-07-09 11:23:31.818	debug	message owfs.1.* owfs.1.wires.Насос_ТП val=0, ack=true, ts=1468052611802, q=0, from=system.adapter.owfs.1, lc=1468052434705
                      owfs-1	2016-07-09 11:23:31.802	debug	Read /3A.483B1E000000/PIO.B:0
                      owfs-1	2016-07-09 11:23:31.797	debug	Read /3A.483B1E000000/PIO.A:0
                      inMem	2016-07-09 11:23:31.787	debug	message owfs.1.* owfs.1.wires.Температура_на_улице val=16.875, ack=true, ts=1468052611770, q=0, from=system.adapter.owfs.1, lc=1468052611770
                      owfs-1	2016-07-09 11:23:31.758	debug	Read /28.FFE6574E0400/temperature:16.875
                      owfs-1	2016-07-09 11:23:30.929	info	starting. Version 0.1.0 in /opt/iobroker/node_modules/iobroker.owfs
                      owfs-1	2016-07-09 11:23:30.848	debug	statesDB connected
                      owfs-1	2016-07-09 11:23:30.829	debug	objectDB connected
                      host-Server1	2016-07-09 11:23:29.699	info	instance system.adapter.owfs.1 started with pid 10804
                      host-Server1	2016-07-09 11:23:27.747	info	instance system.adapter.owfs.1 terminated with code 0 (OK)
                      host-Server1	2016-07-09 11:23:27.184	info	stopInstance system.adapter.owfs.1 killing pid 10615
                      host-Server1	2016-07-09 11:23:27.183	info	stopInstance system.adapter.owfs.1
                      host-Server1	2016-07-09 11:23:27.182	info	object change system.adapter.owfs.1
                      owfs-1	2016-07-09 11:22:14.931	warn	Cannot write value of /3A.483B1E000000/PIO.B: [object Object]
                      owfs-1	2016-07-09 11:20:34.802	warn	Cannot write value of /3A.483B1E000000/PIO.B: [object Object]
                      owfs-1	2016-07-09 11:20:34.766	warn	Cannot write value of /3A.483B1E000000/PIO.A: [object Object]
                      owfs-1	2016-07-09 11:20:34.704	warn	Cannot write value of /28.FFE6574E0400/temperature: [object Object]
                      owfs-1	2016-07-09 11:20:34.357	info	starting. Version 0.1.0 in /opt/iobroker/node_modules/iobroker.owfs
                      host-Server1	2016-07-09 11:20:32.920	info	instance system.adapter.owfs.1 started with pid 10615
                      host-Server1	2016-07-09 11:20:32.904	info	object change system.adapter.owfs.1
                      host-Server1	2016-07-09 11:20:28.371	info	object change system.adapter.owfs.1
                      

                      P.S состояние меняю в вкладке объекты 0 на 1

                      js-controller: 1.5.7 / node.js: v8.15.1/ npm: 6.4.1

                      admin: 3.6.0

                      javascript: 4.1.10

                      web: 2.4.1 vis: 1.1.10

                      cloud: 2.6.2

                      Server: DELL FX170 / linux: Debian 9.5 Stretch

                      Adapter: MegaD-2561, Mega-ES…

                      1 Antwort Letzte Antwort
                      0
                      • H Offline
                        H Offline
                        Haus
                        schrieb am zuletzt editiert von
                        #12

                        @Bluefox:

                        Можешь ещё раз с гита. Я не могу исправить ошибку, т.к. она приходит от owfs сервера, но я попробовал её показать `
                        Bluefox может продолжим если есть время :)

                        js-controller: 1.5.7 / node.js: v8.15.1/ npm: 6.4.1

                        admin: 3.6.0

                        javascript: 4.1.10

                        web: 2.4.1 vis: 1.1.10

                        cloud: 2.6.2

                        Server: DELL FX170 / linux: Debian 9.5 Stretch

                        Adapter: MegaD-2561, Mega-ES…

                        1 Antwort Letzte Antwort
                        0
                        • BluefoxB Offline
                          BluefoxB Offline
                          Bluefox
                          schrieb am zuletzt editiert von
                          #13

                          @Haus:

                          @Bluefox:

                          Можешь ещё раз с гита. Я не могу исправить ошибку, т.к. она приходит от owfs сервера, но я попробовал её показать Bluefox может продолжим если есть время :)
                          Вот это сообщение выдает модуль owfs
                          > Cannot write value of /3A.483B1E000000/PIO.B: [object Object]
                          Там ошибочно происходит конвертация объекта error и непонятно, что за ошибка.

                          Можешь сделать следующие:

                          cd /opt/iobroker
                          iobroker stop owfs
                          export DEBUG=*
                          node node_modules/iobroker.owfs/main.js --force --logs
                          
                          

                          Должны посыпаться ошибки из owfs модуля.

                          1 Antwort Letzte Antwort
                          0
                          • H Offline
                            H Offline
                            Haus
                            schrieb am zuletzt editiert von
                            #14

                            @Bluefox:

                            @Haus:

                            @Bluefox:

                            Можешь ещё раз с гита. Я не могу исправить ошибку, т.к. она приходит от owfs сервера, но я попробовал её показать Bluefox может продолжим если есть время :)
                            Вот это сообщение выдает модуль owfs
                            > Cannot write value of /3A.483B1E000000/PIO.B: [object Object]
                            Там ошибочно происходит конвертация объекта error и непонятно, что за ошибка.

                            Можешь сделать следующие:

                            cd /opt/iobroker
                            iobroker stop owfs
                            export DEBUG=*
                            node node_modules/iobroker.owfs/main.js --force --logs
                            
                            

                            Должны посыпаться ошибки из owfs модуля. `

                            ! ````
                            size: 1,
                            offset: 0 },
                            payload: '0' } ]
                            Read /3A.483B1E000000/PIO.A:0
                            2016-07-24 23:44:38.313 - debug: owfs.0 Read /3A.483B1E000000/PIO.A:0
                            socket.io-client:manager writing packet {"type":2,"data":["setState","owfs.0.wires.Насос_ТП",{"val":0,"ack":true,"from":"system.adapter.owfs.0"},null],"options":{"compress":true},"nsp":"/"} +22ms
                            socket.io-parser encoding packet {"type":2,"data":["setState","owfs.0.wires.Насос_ТП",{"val":0,"ack":true,"from":"system.adapter.owfs.0"},null],"options":{"compress":true},"nsp":"/"} +0ms
                            socket.io-parser encoded {"type":2,"data":["setState","owfs.0.wires.Насос_ТП",{"val":0,"ack":true,"from":"system.adapter.owfs.0"},null],"options":{"compress":true},"nsp":"/"} as 2["setState","owfs.0.wires.Насос_ТП",{"val":0,"ack":true,"from":"system.adapter.owfs.0"},null] +1ms
                            engine.io-client:socket flushing 1 packets in socket +0ms
                            engine.io-client:polling-xhr xhr open POST: http://127.0.0.1:9000/socket.io/?EIO=3&transport=polling&t=LOUfmWh&b64=1&sid=YgYR7bOIThM41FCYAAAl +1ms
                            engine.io-client:polling-xhr xhr data 102:42["setState","owfs.0.wires.�а�о�_Т�",{"val":0,"ack":true,"from":"system.adapter.owfs.0"},null] +0ms
                            owfs:communication Receiving header +17ms { version: 0,
                            payload: 1,
                            ret: 1,
                            controlflags: 32,
                            size: 1,
                            offset: 0 }
                            owfs:communication Receiving payload +1ms 0
                            owfs:convert message to use +1ms [ { header:
                            { version: 0,
                            payload: 1,
                            ret: 1,
                            controlflags: 32,
                            size: 1,
                            offset: 0 },
                            payload: '0' } ]
                            Read /3A.483B1E000000/PIO.B:0
                            2016-07-24 23:44:38.322 - debug: owfs.0 Read /3A.483B1E000000/PIO.B:0
                            socket.io-client:manager writing packet {"type":2,"data":["setState","owfs.0.wires.Насос_дом",{"val":0,"ack":true,"from":"system.adapter.owfs.0"},null],"options":{"compress":true},"nsp":"/"} +6ms
                            socket.io-parser encoding packet {"type":2,"data":["setState","owfs.0.wires.Насос_дом",{"val":0,"ack":true,"from":"system.adapter.owfs.0"},null],"options":{"compress":true},"nsp":"/"} +1ms
                            socket.io-parser encoded {"type":2,"data":["setState","owfs.0.wires.Насос_дом",{"val":0,"ack":true,"from":"system.adapter.owfs.0"},null],"options":{"compress":true},"nsp":"/"} as 2["setState","owfs.0.wires.Насос_дом",{"val":0,"ack":true,"from":"system.adapter.owfs.0"},null] +0ms
                            engine.io-client:polling polling got data 151:42["message","owfs.0.","owfs.0.wires.�а�о�_Т�",{"val":0,"ack":true,"ts":1469393078321,"q":0,"from":"system.adapter.owfs.0","lc":1469392780077}] +15ms
                            engine.io-client:socket socket receive: type "message", data "2["message","owfs.0.
                            ","owfs.0.wires.Насос_ТП",{"val":0,"ack":true,"ts":1469393078321,"q":0,"from":"system.adapter.owfs.0","lc":1469392780077}]" +1ms
                            socket.io-parser decoded 2["message","owfs.0.","owfs.0.wires.Насос_ТП",{"val":0,"ack":true,"ts":1469393078321,"q":0,"from":"system.adapter.owfs.0","lc":1469392780077}] as {"type":2,"nsp":"/","data":["message","owfs.0.","owfs.0.wires.Насос_ТП",{"val":0,"ack":true,"ts":1469393078321,"q":0,"from":"system.adapter.owfs.0","lc":1469392780077}]} +1ms
                            socket.io-client:socket emitting event ["message","owfs.0.","owfs.0.wires.Насос_ТП",{"val":0,"ack":true,"ts":1469393078321,"q":0,"from":"system.adapter.owfs.0","lc":1469392780077}] +1ms
                            2016-07-24 23:44:38.342 - debug: inMem message owfs.0.
                            owfs.0.wires.Насос_ТП val=0, ack=true, ts=1469393078321, q=0, from=system.adapter.owfs.0, lc=1469392780077
                            engine.io-client:polling polling +2ms
                            engine.io-client:polling-xhr xhr poll +0ms
                            engine.io-client:polling-xhr xhr open GET: http://127.0.0.1:9000/socket.io/?EIO=3&transport=polling&t=LOUfmX7&b64=1&sid=YgYR7bOIThM41FCYAAAl +0ms
                            engine.io-client:polling-xhr xhr data null +1ms
                            engine.io-client:socket flushing 1 packets in socket +4ms
                            engine.io-client:polling-xhr xhr open POST: http://127.0.0.1:9000/socket.io/?EIO=3&transport=polling&t=LOUfmXC&b64=1&sid=YgYR7bOIThM41FCYAAAl +0ms
                            engine.io-client:polling-xhr xhr data 104:42["setState","owfs.0.wires.�а�о�_дом",{"val":0,"ack":true,"from":"system.adapter.owfs.0"},null] +1ms
                            engine.io-client:polling polling got data 153:42["message","owfs.0.","owfs.0.wires.�а�о�_дом",{"val":0,"ack":true,"ts":1469393078353,"q":0,"from":"system.adapter.owfs.0","lc":1469392780125}] +23ms
                            engine.io-client:socket socket receive: type "message", data "2["message","owfs.0.
                            ","owfs.0.wires.Насос_дом",{"val":0,"ack":true,"ts":1469393078353,"q":0,"from":"system.adapter.owfs.0","lc":1469392780125}]" +0ms
                            socket.io-parser decoded 2["message","owfs.0.","owfs.0.wires.Насос_дом",{"val":0,"ack":true,"ts":1469393078353,"q":0,"from":"system.adapter.owfs.0","lc":1469392780125}] as {"type":2,"nsp":"/","data":["message","owfs.0.","owfs.0.wires.Насос_дом",{"val":0,"ack":true,"ts":1469393078353,"q":0,"from":"system.adapter.owfs.0","lc":1469392780125}]} +1ms
                            socket.io-client:socket emitting event ["message","owfs.0.","owfs.0.wires.Насос_дом",{"val":0,"ack":true,"ts":1469393078353,"q":0,"from":"system.adapter.owfs.0","lc":1469392780125}] +0ms
                            2016-07-24 23:44:38.374 - debug: inMem message owfs.0.
                            owfs.0.wires.Насос_дом val=0, ack=true, ts=1469393078353, q=0, from=system.adapter.owfs.0, lc=1469392780125
                            engine.io-client:polling polling +2ms
                            engine.io-client:polling-xhr xhr poll +0ms
                            engine.io-client:polling-xhr xhr open GET: http://127.0.0.1:9000/socket.io/?EIO=3&transport=polling&t=LOUfmXd&b64=1&sid=YgYR7bOIThM41FCYAAAl +0ms
                            engine.io-client:polling-xhr xhr data null +1ms

                            
                            Вот так реагирует на попытку изменить с 0 на 1
                            
                            >! ````
                            socket.io-client:socket emitting event ["message","owfs.0.*","owfs.0.wires.Насос_дом",{"val":1,"ack":false,"ts":1469393923024,"q":0,"from":"system.adapter.admin.0","lc":1469393923024}] +1ms
                            2016-07-24 23:58:43.045  - debug: inMem message  owfs.0.* owfs.0.wires.Насос_дом val=1, ack=false, ts=1469393923024, q=0, from=system.adapter.admin.0, lc=1469393923024
                              engine.io-client:polling polling +5ms
                              engine.io-client:polling-xhr xhr poll +1ms
                              engine.io-client:polling-xhr xhr open GET: http://127.0.0.1:9000/socket.io/?EIO=3&transport=polling&t=LOUi-le&b64=1&sid=YgYR7bOIThM41FCYAAAl +0ms
                              engine.io-client:polling-xhr xhr data null +2ms
                            Write /3A.483B1E000000/PIO.B with "1"
                            2016-07-24 23:58:43.057  - debug: owfs.0 Write /3A.483B1E000000/PIO.B with "1"
                              owfs:communication Sending +4s { path: '/3A.483B1E000000/PIO.B\u00001',
                              command: 3,
                              server: '192.168.1.10',
                              port: '4304' }
                              owfs:communication Receiving header +2ms { version: 0,
                              payload: 0,
                              ret: -90,
                              controlflags: 32,
                              size: 0,
                              offset: 0 }
                              owfs:communication Receiving payload +1ms
                            Cannot write value of /3A.483B1E000000/PIO.B: [object Object]
                            2016-07-24 23:58:43.064  - warn: owfs.0 Cannot write value of /3A.483B1E000000/PIO.B: [object Object]
                              socket.io-client:manager writing packet {"type":2,"data":["setState","owfs.0.wires.Насос_дом",{"val":0,"ack":true,"q":132,"from":"system.adapter.owfs.0"},null],"options":{"compress":true},"nsp":"/"} +15ms
                              socket.io-parser encoding packet {"type":2,"data":["setState","owfs.0.wires.Насос_дом",{"val":0,"ack":true,"q":132,"from":"system.adapter.owfs.0"},null],"options":{"compress":true},"nsp":"/"} +0ms
                              socket.io-parser encoded {"type":2,"data":["setState","owfs.0.wires.Насос_дом",{"val":0,"ack":true,"q":132,"from":"system.adapter.owfs.0"},null],"options":{"compress":true},"nsp":"/"} as 2["setState","owfs.0.wires.Насос_дом",{"val":0,"ack":true,"q":132,"from":"system.adapter.owfs.0"},null] +1ms
                              engine.io-client:socket flushing 1 packets in socket +0ms
                              engine.io-client:polling-xhr xhr open POST: http://127.0.0.1:9000/socket.io/?EIO=3&transport=polling&t=LOUi-lx&b64=1&sid=YgYR7bOIThM41FCYAAAl +1ms
                              engine.io-client:polling-xhr xhr data 112:42["setState","owfs.0.wires.�а�о�_дом",{"val":0,"ack":true,"q":132,"from":"system.adapter.owfs.0"},null] +1ms
                              engine.io-client:polling polling got data 155:42["message","owfs.0.*","owfs.0.wires.�а�о�_дом",{"val":0,"ack":true,"ts":1469393923083,"q":132,"from":"system.adapter.owfs.0","lc":1469393923083}] +24ms
                              engine.io-client:socket socket receive: type "message", data "2["message","owfs.0.*","owfs.0.wires.Насос_дом",{"val":0,"ack":true,"ts":1469393923083,"q":132,"from":"system.adapter.owfs.0","lc":1469393923083}]" +1ms
                              socket.io-parser decoded 2["message","owfs.0.*","owfs.0.wires.Насос_дом",{"val":0,"ack":true,"ts":1469393923083,"q":132,"from":"system.adapter.owfs.0","lc":1469393923083}] as {"type":2,"nsp":"/","data":["message","owfs.0.*","owfs.0.wires.Насос_дом",{"val":0,"ack":true,"ts":1469393923083,"q":132,"from":"system.adapter.owfs.0","lc":1469393923083}]} +1ms
                              socket.io-client:socket emitting event ["message","owfs.0.*","owfs.0.wires.Насос_дом",{"val":0,"ack":true,"ts":1469393923083,"q":132,"from":"system.adapter.owfs.0","lc":1469393923083}] +1ms
                            2016-07-24 23:58:43.096  - debug: inMem message  owfs.0.* owfs.0.wires.Насос_дом val=0, ack=true, ts=1469393923083, q=132, from=system.adapter.owfs.0, lc=1469393923083
                              engine.io-client:polling polling +2ms
                              engine.io-client:polling-xhr xhr poll +1ms
                              engine.io-client:polling-xhr xhr open GET: http://127.0.0.1:9000/socket.io/?EIO=3&transport=polling&t=LOUi-mR&b64=1&sid=YgYR7bOIThM41FCYAAAl +1ms
                              engine.io-client:polling-xhr xhr data null +1ms
                            

                            Лог iobroker

                            ! ````
                            inMem 2016-07-24 23:59:38.748 debug message owfs.0.* owfs.0.wires.Насос_ТП val=0, ack=true, ts=1469393978734, q=0, from=system.adapter.owfs.0, lc=1469392780077
                            inMem 2016-07-24 23:59:38.685 debug message owfs.0.* owfs.0.wires.Температура_улица val=19.75, ack=true, ts=1469393978654, q=0, from=system.adapter.owfs.0, lc=1469393978654
                            owfs-0 2016-07-24 23:59:38.653 debug Read /3A.483B1E000000/PIO.B:0
                            owfs-0 2016-07-24 23:59:38.635 debug Read /3A.483B1E000000/PIO.A:0
                            owfs-0 2016-07-24 23:59:38.612 debug Read /28.FFE6574E0400/temperature:19.75
                            inMem 2016-07-24 23:59:08.727 debug message owfs.0.* owfs.0.wires.Насос_дом val=0, ack=true, ts=1469393948687, q=0, from=system.adapter.owfs.0, lc=1469393923083
                            inMem 2016-07-24 23:59:08.689 debug message owfs.0.* owfs.0.wires.Насос_ТП val=0, ack=true, ts=1469393948656, q=0, from=system.adapter.owfs.0, lc=1469392780077
                            inMem 2016-07-24 23:59:08.660 debug message owfs.0.* owfs.0.wires.Температура_улица val=19.6875, ack=true, ts=1469393948643, q=0, from=system.adapter.owfs.0, lc=1469393918617
                            owfs-0 2016-07-24 23:59:08.644 debug Read /3A.483B1E000000/PIO.B:0
                            owfs-0 2016-07-24 23:59:08.611 debug Read /3A.483B1E000000/PIO.A:0
                            owfs-0 2016-07-24 23:59:08.595 debug Read /28.FFE6574E0400/temperature:19.6875
                            inMem 2016-07-24 23:58:43.096 debug message owfs.0.* owfs.0.wires.Насос_дом val=0, ack=true, ts=1469393923083, q=132, from=system.adapter.owfs.0, lc=1469393923083
                            owfs-0 2016-07-24 23:58:43.064 warn Cannot write value of /3A.483B1E000000/PIO.B: [object Object]
                            owfs-0 2016-07-24 23:58:43.056 debug Write /3A.483B1E000000/PIO.B with "1"
                            inMem 2016-07-24 23:58:43.044 debug message owfs.0.* owfs.0.wires.Насос_дом val=1, ack=false, ts=1469393923024, q=0, from=system.adapter.admin.0, lc=1469393923024
                            inMem 2016-07-24 23:58:38.708 debug message owfs.0.* owfs.0.wires.Насос_дом val=0, ack=true, ts=1469393918660, q=0, from=system.adapter.owfs.0, lc=1469393892606
                            inMem 2016-07-24 23:58:38.671 debug message owfs.0.* owfs.0.wires.Насос_ТП val=0, ack=true, ts=1469393918648, q=0, from=system.adapter.owfs.0, lc=1469392780077
                            inMem 2016-07-24 23:58:38.637 debug message owfs.0.* owfs.0.wires.Температура_улица val=19.6875, ack=true, ts=1469393918617, q=0, from=system.adapter.owfs.0, lc=1469393918617
                            owfs-0 2016-07-24 23:58:38.618 debug Read /3A.483B1E000000/PIO.B:0
                            owfs-0 2016-07-24 23:58:38.612 debug Read /3A.483B1E000000/PIO.A:0
                            owfs-0 2016-07-24 23:58:38.603 debug Read /28.FFE6574E0400/temperature:19.6875
                            inMem 2016-07-24 23:58:12.622 debug message owfs.0.* owfs.0.wires.Насос_дом val=0, ack=true, ts=1469393892606, q=132, from=system.adapter.owfs.0, lc=1469393892606
                            owfs-0 2016-07-24 23:58:12.597 warn Cannot write value of /3A.483B1E000000/PIO.B: [object Object]
                            owfs-0 2016-07-24 23:58:12.506 debug Write /3A.483B1E000000/PIO.B with "1"
                            inMem 2016-07-24 23:58:12.498 debug message owfs.0.* owfs.0.wires.Насос_дом val=1, ack=false, ts=1469393892481, q=0, from=system.adapter.admin.0, lc=1469393892481
                            inMem 2016-07-24 23:58:08.696 debug message owfs.0.* owfs.0.wires.Температура_улица val=19.625, ack=true, ts=1469393888686, q=0, from=system.adapter.owfs.0, lc=1469393888686
                            owfs-0 2016-07-24 23:58:08.665 debug Read /28.FFE6574E0400/temperature:19.625
                            inMem 2016-07-24 23:58:07.929 debug message owfs.0.* owfs.0.wires.Насос_дом val=0, ack=true, ts=1469393887910, q=0, from=system.adapter.owfs.0, lc=1469393623882
                            inMem 2016-07-24 23:58:07.899 debug message owfs.0.* owfs.0.wires.Насос_ТП val=0, ack=true, ts=1469393887877, q=0, from=system.adapter.owfs.0, lc=1469392780077

                            js-controller: 1.5.7 / node.js: v8.15.1/ npm: 6.4.1

                            admin: 3.6.0

                            javascript: 4.1.10

                            web: 2.4.1 vis: 1.1.10

                            cloud: 2.6.2

                            Server: DELL FX170 / linux: Debian 9.5 Stretch

                            Adapter: MegaD-2561, Mega-ES…

                            1 Antwort Letzte Antwort
                            0
                            • A Offline
                              A Offline
                              Alekseym6
                              schrieb am zuletzt editiert von
                              #15

                              Управляю только через FS (добавил в драйвер owfs). ошибку нужно искать в пакете owfs

                              1 Antwort Letzte Antwort
                              0
                              • BluefoxB Offline
                                BluefoxB Offline
                                Bluefox
                                schrieb am zuletzt editiert von
                                #16

                                По ошибке -90 нашел только:

                                -90 (Message too long)

                                Интересно, а сколько бит/байт надо?

                                Либо строка "/3A.483B1E000000/PIO.B\u0001" интепретируется неправильно.

                                Может мажордомо может писать данные. Я бы подсмотрел, как они делают ;)

                                1 Antwort Letzte Antwort
                                0
                                • A Offline
                                  A Offline
                                  Alekseym6
                                  schrieb am zuletzt editiert von
                                  #17

                                  через PHP. у меня работало но медленно. на python работает. owfs.js пакет уже не записывает.

                                  1 Antwort Letzte Antwort
                                  0
                                  • A Offline
                                    A Offline
                                    Alekseym6
                                    schrieb am zuletzt editiert von
                                    #18

                                    host-odroid 2016-07-25 12:08:54.352 info Restart adapter system.adapter.owfs.2 because enabled

                                    host-odroid 2016-07-25 12:08:54.338 error instance system.adapter.owfs.2 terminated with code 6 (uncaught exception)

                                    TypeError: 2016-07-25 12:08:52.577 error at process._tickCallback (node.js:458:13)

                                    TypeError: 2016-07-25 12:08:52.577 error at _stream_readable.js:944:16

                                    TypeError: 2016-07-25 12:08:52.577 error at Socket.emit (events.js:117:20)

                                    TypeError: 2016-07-25 12:08:52.577 error at Socket. (/opt/iobroker/node_modules/iobroker.owfs/node_modules/owfs/build/base/communication.js:30:14)

                                    TypeError: 2016-07-25 12:08:52.577 error at callbackOnce (/opt/iobroker/node_modules/iobroker.owfs/node_modules/owfs/build/base/communication.js:21:9)

                                    TypeError: 2016-07-25 12:08:52.577 error at /opt/iobroker/node_modules/iobroker.owfs/node_modules/owfs/build/base/convert.js:24:18

                                    TypeError: 2016-07-25 12:08:52.577 error at /opt/iobroker/node_modules/iobroker.owfs/main.js:112:42

                                    TypeError: 2016-07-25 12:08:52.577 error Cannot call method 'replace' of undefined

                                    uncaught 2016-07-25 12:08:52.094 error exception: Cannot call method 'replace' of undefined

                                    1 Antwort Letzte Antwort
                                    0
                                    • BluefoxB Offline
                                      BluefoxB Offline
                                      Bluefox
                                      schrieb am zuletzt editiert von
                                      #19

                                      @Alekseym6:

                                      host-odroid 2016-07-25 12:08:54.352 info Restart adapter system.adapter.owfs.2 because enabled

                                      host-odroid 2016-07-25 12:08:54.338 error instance system.adapter.owfs.2 terminated with code 6 (uncaught exception)

                                      TypeError: 2016-07-25 12:08:52.577 error at process._tickCallback (node.js:458:13)

                                      TypeError: 2016-07-25 12:08:52.577 error at _stream_readable.js:944:16

                                      TypeError: 2016-07-25 12:08:52.577 error at Socket.emit (events.js:117:20)

                                      TypeError: 2016-07-25 12:08:52.577 error at Socket. (/opt/iobroker/node_modules/iobroker.owfs/node_modules/owfs/build/base/communication.js:30:14)

                                      TypeError: 2016-07-25 12:08:52.577 error at callbackOnce (/opt/iobroker/node_modules/iobroker.owfs/node_modules/owfs/build/base/communication.js:21:9)

                                      TypeError: 2016-07-25 12:08:52.577 error at /opt/iobroker/node_modules/iobroker.owfs/node_modules/owfs/build/base/convert.js:24:18

                                      TypeError: 2016-07-25 12:08:52.577 error at /opt/iobroker/node_modules/iobroker.owfs/main.js:112:42

                                      TypeError: 2016-07-25 12:08:52.577 error Cannot call method 'replace' of undefined

                                      uncaught 2016-07-25 12:08:52.094 error exception: Cannot call method 'replace' of undefined `
                                      Какой то сигнал не до конца сконфигурирован был. Встроил проверку. Но на write это не должно отразится.

                                      1 Antwort Letzte Antwort
                                      0
                                      • BluefoxB Offline
                                        BluefoxB Offline
                                        Bluefox
                                        schrieb am zuletzt editiert von
                                        #20

                                        @Alekseym6:

                                        через PHP. у меня работало но медленно. на python работает. owfs.js пакет уже не записывает. `
                                        Как выглядел код на PHP?

                                        1 Antwort Letzte Antwort
                                        0
                                        • H Offline
                                          H Offline
                                          Haus
                                          schrieb am zuletzt editiert von
                                          #21

                                          @Bluefox:

                                          @Alekseym6:

                                          через PHP. у меня работало но медленно. на python работает. owfs.js пакет уже не записывает. Как выглядел код на PHP?
                                          У Андрея в demo http://ab-log.ru/files/File/ab-log-demo2.zip сделано через ownet.php третий год у меня работает без проблем

                                          ! ````
                                          get_id("keys");
                                          $key_addr = $ab->mod_read($keys_id, "#key_addr#", "", 1, "key_label='$key_label'");
                                          $key_tmpID = $ab->mod_read($keys_id, "#tmpID#", "", 1, "key_label='$key_label'");
                                          ! if ( empty($key_addr) )
                                          exit;
                                          ! // Обработчик для MegaD-328
                                          if ( preg_match("/^megad./", $key_addr) )
                                          {
                                          list($null, $key_addr, $key_port) = explode(".", $key_addr);
                                          $key_addr = "192.168.0.$key_addr";
                                          $pass = "sec";
                                          ! file_get_contents("http://$key_addr/$pass/?cmd=$key_port:$key_pio");
                                          $key_time = microtime(get_as_float);
                                          ! // Записываем в журнал только информацию о вкл/выкл, так как при переключении (команда "2") мы не знаем в каком положении ключ
                                          if ( $key_pio < 2 )
                                          {
                                          $ab->mod_write($keys_id, "key_pio='$key_pio'", "key_label='$key_label'");
                                          $ab->mod_write($ab->get_id("keys_journal"), "SYSDATE(), $key_tmpID, '$key_pio'");
                                          }
                                          }
                                          // Обработчик для IP Power 9212 Deluxe
                                          elseif ( preg_match("/^ipp./", $key_addr) )
                                          {
                                          list($null, $key_addr, $key_port) = explode(".", $key_addr);
                                          $key_addr = "192.168.0.$key_addr";
                                          ! ippower_set($key_addr, $key_port, $key_pio);
                                          ! $ab->mod_write($keys_id, "key_pio='$key_pio'", "key_label='$key_label'");
                                          $ab->mod_write($ab->get_id("keys_journal"), "SYSDATE(), $key_tmpID, '$key_pio'");
                                          ! }
                                          // Обработчик для X10
                                          elseif ( preg_match("/^x10./", $key_addr) )
                                          {
                                          $key_addr = preg_replace("/^x10./", "", $key_addr);
                                          ! if ( !empty($key_level) )
                                          {
                                          $key_level_old = $ab->mod_read($keys_id, "#key_level#", "", 1, "key_label='$key_label'");
                                          ! if ( $key_level > $key_level_old )
                                          {
                                          $bright_value = $key_level - $key_level_old;
                                          exec("heyu bright $key_addr $bright_value");
                                          }
                                          elseif ( $key_level < $key_level_old )
                                          {
                                          $dim_value = $key_level_old - $key_level;
                                          exec("heyu dim $key_addr $dim_value");
                                          }
                                          ! $ab->mod_write($keys_id, "key_level='$key_level'", "key_label='$key_label'");
                                          }
                                          else
                                          {
                                          if ( $key_pio == 1 )
                                          $heyu_cmd = "on";
                                          elseif ( $key_pio == 0 )
                                          $heyu_cmd = "off";
                                          ! exec("heyu $heyu_cmd $key_addr");
                                          ! $ab->mod_write($keys_id, "key_pio='$key_pio'", "key_label='$key_label'");
                                          $ab->mod_write($ab->get_id("keys_journal"), "SYSDATE(), $key_tmpID, '$key_pio'");
                                          }
                                          ! }
                                          // Обработчик для виртуальных ключей
                                          elseif ( $key_addr == "virt" )
                                          {
                                          $ab->mod_write($keys_id, "key_pio='$key_pio'", "key_label='$key_label'");
                                          $ab->mod_write($ab->get_id("keys_journal"), "SYSDATE(), $key_tmpID, '$key_pio'");
                                          ! if ( $key_label == "alarm" && $key_pio == 1 )
                                          file_get_contents("http://192.168.0.231/sound.php?sound=alarm-on");
                                          elseif ( $key_label == "alarm" && $key_pio == 0 )
                                          file_get_contents("http://192.168.0.231/sound.php?sound=alarm-off");
                                          ! }
                                          // Обработчик для 1-wire
                                          else
                                          {
                                          // ownet.php не удовлетворяет Strict Standarts
                                          error_reporting(0);
                                          $ow=new OWNet("tcp://localhost:3000");
                                          ! if ( empty($key_ch) )
                                          $key_ch = "PIO";
                                          else
                                          $key_ch = "PIO.".$key_ch;
                                          ! if ( !preg_match("///", $key_addr) )
                                          $key_addr = "$key_addr/$key_ch";
                                          ! // Временное
                                          $ow->set($key_addr, $key_pio);
                                          $key_time = microtime(get_as_float);
                                          ! $cpio = 10;
                                          $cpio = $ow->read("/uncached/".$key_addr);
                                          ! if ( $cpio != $key_pio )
                                          {
                                          $my_loop = 0;
                                          while ( $cpio != $key_pio && $my_loop < 3 )
                                          {
                                          $my_loop++;
                                          $ow->set($key_addr, $key_pio);
                                          $key_time = microtime(get_as_float);
                                          $cpio = $ow->get("/uncached/".$key_addr);
                                          // $cpio = $ow->read("/uncached/".$key_addr);
                                          ! if ( $cpio != $key_pio )
                                          {
                                          sleep(5);
                                          $log = fopen("/var/www/log_error.log", "a");
                                          fwrite($log, date('d/m/Y H:i:s')." > [ $key_label | $key_pio | $key_ch ]\n");
                                          fclose($log);
                                          }
                                          }
                                          }
                                          ! if ( empty($no_log) )
                                          $ab->mod_write($ab->get_id("keys_journal"), "SYSDATE(), $key_tmpID, '$key_pio'");
                                          ! $ab->mod_write($keys_id, "key_pio='$key_pio'", "key_label='$key_label'");
                                          ! unset($ow);
                                          error_reporting($ab->err_rep);
                                          }
                                          ! return $key_time;
                                          }
                                          ! if ( !empty($_REQUEST['key_label']) )
                                          {
                                          if ( !isset($_REQUEST['key_ch']) )
                                          $_REQUEST['key_ch'] = "";
                                          if ( !isset($_REQUEST['key_level']) )
                                          $_REQUEST['key_level'] = "";
                                          key_sw($_REQUEST['key_label'], $_REQUEST['key_pio'], $_REQUEST['key_ch'], $_REQUEST['key_level']);
                                          }
                                          ! ?>

                                          Ab-CMS
                                          
                                          >!  ![443_ab-cms-index-php-1469517956127.png](/assets/uploads/files/443_ab-cms-index-php-1469517956127.png) 
                                          
                                          owfs 0.1.1
                                          
                                          при изменении 0 на 1
                                          
                                          >! ````
                                          engine.io-client:polling polling got data 147:42["message","owfs.0.*","owfs.0.wires.Pomp_haus",{"val":1,"ack":false,"ts":1469519559793,"q":0,"from":"system.adapter.admin.0","lc":1469519559793}] +8s
                                            engine.io-client:socket socket receive: type "message", data "2["message","owfs.0.*","owfs.0.wires.Pomp_haus",{"val":1,"ack":false,"ts":1469519559793,"q":0,"from":"system.adapter.admin.0","lc":1469519559793}]" +0ms
                                            socket.io-parser decoded 2["message","owfs.0.*","owfs.0.wires.Pomp_haus",{"val":1,"ack":false,"ts":1469519559793,"q":0,"from":"system.adapter.admin.0","lc":1469519559793}] as {"type":2,"nsp":"/","data":["message","owfs.0.*","owfs.0.wires.Pomp_haus",{"val":1,"ack":false,"ts":1469519559793,"q":0,"from":"system.adapter.admin.0","lc":1469519559793}]} +1ms
                                            socket.io-client:socket emitting event ["message","owfs.0.*","owfs.0.wires.Pomp_haus",{"val":1,"ack":false,"ts":1469519559793,"q":0,"from":"system.adapter.admin.0","lc":1469519559793}] +1ms
                                          2016-07-26 10:52:39.805  - debug: inMem message  owfs.0.* owfs.0.wires.Pomp_haus val=1, ack=false, ts=1469519559793, q=0, from=system.adapter.admin.0, lc=1469519559793
                                            engine.io-client:polling polling +2ms
                                            engine.io-client:polling-xhr xhr poll +0ms
                                            engine.io-client:polling-xhr xhr open GET: http://127.0.0.1:9000/socket.io/?EIO=3&transport=polling&t=LOcCFn-&b64=1&sid=x-m1DmC5VQaCoA4UAABJ +1ms
                                            engine.io-client:polling-xhr xhr data null +0ms
                                          Write /3A.483B1E000000/PIO.B with "1"
                                          2016-07-26 10:52:39.823  - debug: owfs.0 Write /3A.483B1E000000/PIO.B with "1"
                                            owfs:communication Sending +8s { path: '/3A.483B1E000000/PIO.B\u00001',
                                            command: 3,
                                            server: '192.168.1.10',
                                            port: '4304' }
                                            socket.io-client:manager writing packet {"type":2,"data":["pushLog","system.adapter.admin.0",{"message":"inMem message  owfs.0.* owfs.0.wires.Pomp_haus","severity":"debug","from":"owfs.0","ts":1469519559831},null],"options":{"compress":true},"nsp":"/"} +24ms
                                            socket.io-parser encoding packet {"type":2,"data":["pushLog","system.adapter.admin.0",{"message":"inMem message  owfs.0.* owfs.0.wires.Pomp_haus","severity":"debug","from":"owfs.0","ts":1469519559831},null],"options":{"compress":true},"nsp":"/"} +1ms
                                            socket.io-parser encoded {"type":2,"data":["pushLog","system.adapter.admin.0",{"message":"inMem message  owfs.0.* owfs.0.wires.Pomp_haus","severity":"debug","from":"owfs.0","ts":1469519559831},null],"options":{"compress":true},"nsp":"/"} as 2["pushLog","system.adapter.admin.0",{"message":"inMem message  owfs.0.* owfs.0.wires.Pomp_haus","severity":"debug","from":"owfs.0","ts":1469519559831},null] +1ms
                                            engine.io-client:socket flushing 1 packets in socket +0ms
                                            engine.io-client:polling-xhr xhr open POST: http://127.0.0.1:9000/socket.io/?EIO=3&transport=polling&t=LOcCFoQ&b64=1&sid=x-m1DmC5VQaCoA4UAABJ +1ms
                                            engine.io-client:polling-xhr xhr data 158:42["pushLog","system.adapter.admin.0",{"message":"inMem message  owfs.0.* owfs.0.wires.Pomp_haus","severity":"debug","from":"owfs.0","ts":1469519559831},null] +0ms
                                            socket.io-client:manager writing packet {"type":2,"data":["pushLog","system.adapter.admin.0",{"message":"owfs.0 Write /3A.483B1E000000/PIO.B with \"1\"","severity":"debug","from":"owfs.0","ts":1469519559835},null],"options":{"compress":true},"nsp":"/"} +1ms
                                            socket.io-parser encoding packet {"type":2,"data":["pushLog","system.adapter.admin.0",{"message":"owfs.0 Write /3A.483B1E000000/PIO.B with \"1\"","severity":"debug","from":"owfs.0","ts":1469519559835},null],"options":{"compress":true},"nsp":"/"} +1ms
                                            socket.io-parser encoded {"type":2,"data":["pushLog","system.adapter.admin.0",{"message":"owfs.0 Write /3A.483B1E000000/PIO.B with \"1\"","severity":"debug","from":"owfs.0","ts":1469519559835},null],"options":{"compress":true},"nsp":"/"} as 2["pushLog","system.adapter.admin.0",{"message":"owfs.0 Write /3A.483B1E000000/PIO.B with \"1\"","severity":"debug","from":"owfs.0","ts":1469519559835},null] +0ms
                                            owfs:communication Receiving header +10ms { version: 0,
                                            payload: 0,
                                            ret: -90,
                                            controlflags: 32,
                                            size: 0,
                                            offset: 0 }
                                            owfs:communication Receiving payload +1ms
                                          Cannot write value of /3A.483B1E000000/PIO.B: [object Object]
                                          2016-07-26 10:52:39.840  - warn: owfs.0 Cannot write value of /3A.483B1E000000/PIO.B: [object Object]
                                            socket.io-client:manager writing packet {"type":2,"data":["setState","owfs.0.wires.Pomp_haus",{"val":0,"ack":true,"q":132,"from":"system.adapter.owfs.0"},null],"options":{"compress":true},"nsp":"/"} +4ms
                                            socket.io-parser encoding packet {"type":2,"data":["setState","owfs.0.wires.Pomp_haus",{"val":0,"ack":true,"q":132,"from":"system.adapter.owfs.0"},null],"options":{"compress":true},"nsp":"/"} +1ms
                                            socket.io-parser encoded {"type":2,"data":["setState","owfs.0.wires.Pomp_haus",{"val":0,"ack":true,"q":132,"from":"system.adapter.owfs.0"},null],"options":{"compress":true},"nsp":"/"} as 2["setState","owfs.0.wires.Pomp_haus",{"val":0,"ack":true,"q":132,"from":"system.adapter.owfs.0"},null] +5ms
                                            socket.io-client:manager writing packet {"type":2,"data":["pushLog","system.adapter.admin.0",{"message":"owfs.0 Cannot write value of /3A.483B1E000000/PIO.B: [object Object]","severity":"warn","from":"owfs.0","ts":1469519559846},null],"options":{"compress":true},"nsp":"/"} +0ms
                                            socket.io-parser encoding packet {"type":2,"data":["pushLog","system.adapter.admin.0",{"message":"owfs.0 Cannot write value of /3A.483B1E000000/PIO.B: [object Object]","severity":"warn","from":"owfs.0","ts":1469519559846},null],"options":{"compress":true},"nsp":"/"} +1ms
                                            socket.io-parser encoded {"type":2,"data":["pushLog","system.adapter.admin.0",{"message":"owfs.0 Cannot write value of /3A.483B1E000000/PIO.B: [object Object]","severity":"warn","from":"owfs.0","ts":1469519559846},null],"options":{"compress":true},"nsp":"/"} as 2["pushLog","system.adapter.admin.0",{"message":"owfs.0 Cannot write value of /3A.483B1E000000/PIO.B: [object Object]","severity":"warn","from":"owfs.0","ts":1469519559846},null] +0ms
                                            engine.io-client:socket flushing 3 packets in socket +10ms
                                            engine.io-client:polling-xhr xhr open POST: http://127.0.0.1:9000/socket.io/?EIO=3&transport=polling&t=LOcCFop&b64=1&sid=x-m1DmC5VQaCoA4UAABJ +2ms
                                            engine.io-client:polling-xhr xhr data 158:42["pushLog","system.adapter.admin.0",{"message":"owfs.0 Write /3A.483B1E000000/PIO.B with \"1\"","severity":"debug","from":"owfs.0","ts":1469519559835},null]104:42["setState","owfs.0.wires.Pomp_haus",{"val":0,"ack":true,"q":132,"from":"system.adapter.owfs.0"},null]179:42["pushLog","system.adapter.admin.0",{"message":"owfs.0 Cannot write value of /3A.483B1E000000/PIO.B: [object Object]","severity":"warn","from":"owfs.0","ts":1469519559846},null] +2ms
                                            engine.io-client:polling polling got data 147:42["message","owfs.0.*","owfs.0.wires.Pomp_haus",{"val":0,"ack":true,"ts":1469519559868,"q":132,"from":"system.adapter.owfs.0","lc":1469519559868}] +17ms
                                            engine.io-client:socket socket receive: type "message", data "2["message","owfs.0.*","owfs.0.wires.Pomp_haus",{"val":0,"ack":true,"ts":1469519559868,"q":132,"from":"system.adapter.owfs.0","lc":1469519559868}]" +6ms
                                            socket.io-parser decoded 2["message","owfs.0.*","owfs.0.wires.Pomp_haus",{"val":0,"ack":true,"ts":1469519559868,"q":132,"from":"system.adapter.owfs.0","lc":1469519559868}] as {"type":2,"nsp":"/","data":["message","owfs.0.*","owfs.0.wires.Pomp_haus",{"val":0,"ack":true,"ts":1469519559868,"q":132,"from":"system.adapter.owfs.0","lc":1469519559868}]} +4ms
                                            socket.io-client:socket emitting event ["message","owfs.0.*","owfs.0.wires.Pomp_haus",{"val":0,"ack":true,"ts":1469519559868,"q":132,"from":"system.adapter.owfs.0","lc":1469519559868}] +1ms
                                          2016-07-26 10:52:39.890  - debug: inMem message  owfs.0.* owfs.0.wires.Pomp_haus val=0, ack=true, ts=1469519559868, q=132, from=system.adapter.owfs.0, lc=1469519559868
                                            engine.io-client:polling polling +4ms
                                            engine.io-client:polling-xhr xhr poll +0ms
                                            engine.io-client:polling-xhr xhr open GET: http://127.0.0.1:9000/socket.io/?EIO=3&transport=polling&t=LOcCFpL&b64=1&sid=x-m1DmC5VQaCoA4UAABJ +1ms
                                            engine.io-client:polling-xhr xhr data null +1ms
                                            socket.io-client:manager writing packet {"type":2,"data":["pushLog","system.adapter.admin.0",{"message":"inMem message  owfs.0.* owfs.0.wires.Pomp_haus","severity":"debug","from":"owfs.0","ts":1469519559900},null],"options":{"compress":true},"nsp":"/"} +5ms
                                            socket.io-parser encoding packet {"type":2,"data":["pushLog","system.adapter.admin.0",{"message":"inMem message  owfs.0.* owfs.0.wires.Pomp_haus","severity":"debug","from":"owfs.0","ts":1469519559900},null],"options":{"compress":true},"nsp":"/"} +0ms
                                            socket.io-parser encoded {"type":2,"data":["pushLog","system.adapter.admin.0",{"message":"inMem message  owfs.0.* owfs.0.wires.Pomp_haus","severity":"debug","from":"owfs.0","ts":1469519559900},null],"options":{"compress":true},"nsp":"/"} as 2["pushLog","system.adapter.admin.0",{"message":"inMem message  owfs.0.* owfs.0.wires.Pomp_haus","severity":"debug","from":"owfs.0","ts":1469519559900},null] +1ms
                                            engine.io-client:socket flushing 1 packets in socket +0ms
                                            engine.io-client:polling-xhr xhr open POST: http://127.0.0.1:9000/socket.io/?EIO=3&transport=polling&t=LOcCFpU&b64=1&sid=x-m1DmC5VQaCoA4UAABJ +1ms
                                            engine.io-client:polling-xhr xhr data 158:42["pushLog","system.adapter.admin.0",{"message":"inMem message  owfs.0.* owfs.0.wires.Pomp_haus","severity":"debug","from":"owfs.0","ts":1469519559900},null] +0ms
                                          ^C  socket.io-client:socket emitting packet with ack id 3 +3s
                                            socket.io-client:manager writing packet {"type":2,"data":["setState","system.adapter.owfs.0.alive",{"val":false,"ack":true,"from":"system.adapter.owfs.0"}],"options":{"compress":true},"id":3,"nsp":"/"} +0ms
                                            socket.io-parser encoding packet {"type":2,"data":["setState","system.adapter.owfs.0.alive",{"val":false,"ack":true,"from":"system.adapter.owfs.0"}],"options":{"compress":true},"id":3,"nsp":"/"} +0ms
                                            socket.io-parser encoded {"type":2,"data":["setState","system.adapter.owfs.0.alive",{"val":false,"ack":true,"from":"system.adapter.owfs.0"}],"options":{"compress":true},"id":3,"nsp":"/"} as 23["setState","system.adapter.owfs.0.alive",{"val":false,"ack":true,"from":"system.adapter.owfs.0"}] +1ms
                                            engine.io-client:socket flushing 1 packets in socket +0ms
                                            engine.io-client:polling-xhr xhr open POST: http://127.0.0.1:9000/socket.io/?EIO=3&transport=polling&t=LOcCGU8&b64=1&sid=x-m1DmC5VQaCoA4UAABJ +1ms
                                            engine.io-client:polling-xhr xhr data 101:423["setState","system.adapter.owfs.0.alive",{"val":false,"ack":true,"from":"system.adapter.owfs.0"}] +0ms
                                            engine.io-client:polling polling got data 39:433[null,"system.adapter.owfs.0.alive"] +11ms
                                            engine.io-client:socket socket receive: type "message", data "33[null,"system.adapter.owfs.0.alive"]" +1ms
                                            socket.io-parser decoded 33[null,"system.adapter.owfs.0.alive"] as {"type":3,"nsp":"/","id":3,"data":[null,"system.adapter.owfs.0.alive"]} +0ms
                                            socket.io-client:socket calling ack 3 with [null,"system.adapter.owfs.0.alive"] +1ms
                                          

                                          MajorDoMo я поставил 1wire считал, как теперь подслушать?

                                          js-controller: 1.5.7 / node.js: v8.15.1/ npm: 6.4.1

                                          admin: 3.6.0

                                          javascript: 4.1.10

                                          web: 2.4.1 vis: 1.1.10

                                          cloud: 2.6.2

                                          Server: DELL FX170 / linux: Debian 9.5 Stretch

                                          Adapter: MegaD-2561, Mega-ES…

                                          1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          467

                                          Online

                                          32.4k

                                          Benutzer

                                          81.5k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe