Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Русский
    3. ioBroker
    4. ioBroker драйвера
    5. MegaD 328

    NEWS

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    MegaD 328

    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Andrei34 last edited by

      @Bluefox:

      @Andrei34:

      После обновления перестал ШИМ работать 😞 Что говорит debug?
      Вчера ещё всё работало 😞 . Как бы откатится ?

      • megad-0 2015-09-19 09:49:07 debug Response "Done"
      megad-0 2015-09-19 09:49:07 debug Send command "cmd=13:NaN" to 192.168.10.11
      
      megad-0 2015-09-19 09:49:07 info try to control megad.0.p13_P13 with 0.78
      
      megad-0 2015-09-19 09:49:06 debug Response "Done"
      
      megad-0 2015-09-19 09:49:06 debug Send command "cmd=13:NaN" to 192.168.10.11
      
      megad-0 2015-09-19 09:49:06 info try to control megad.0.p13_P13 with 0
      
      megad-0 2015-09-19 09:49:05 debug Response "Done"
      
      megad-0 2015-09-19 09:49:05 debug Send command "cmd=13:NaN" to 192.168.10.11
      
      megad-0 2015-09-19 09:49:05 info try to control megad.0.p13_P13 with 0.54
      
      megad-0 2015-09-19 09:49:04 debug Response "Done"
      
      megad-0 2015-09-19 09:49:04 debug Send command "cmd=13:NaN" to 192.168.10.11
      
      megad-0 2015-09-19 09:49:04 info try to control megad.0.p13_P13 with 0
      
      megad-0 2015-09-19 09:49:04 debug detected new value on port [15]: 427, calc state 427
      
      megad-0 2015-09-19 09:49:04 debug detected new value on port [14]: 204, calc state 204
      
      megad-0 2015-09-19 09:49:04 debug Response for 192.168.10.11[all]: OFF;OFF/16;temp:23/hum:48;OFF;OFF;OFF/16;ON/219;ON/165;OFF/8;OFF;0;OFF;OFF;0;204;427
      1 Reply Last reply Reply Quote 0
      • Bluefox
        Bluefox last edited by

        Не надо откатыватся. Есть 0.2.7

        1 Reply Last reply Reply Quote 0
        • A
          Andrei34 last edited by

          @Bluefox:

          Не надо откатыватся. Есть 0.2.7 `
          Мало что изменилось 😞 Команды вроде посылаются но на меге ничего не меняется .

          • megad-0 2015-09-19 10:50:25 debug Response "Done"
          megad-0 2015-09-19 10:50:25 debug Send command "cmd=13:NaN" to 192.168.10.11
          
          megad-0 2015-09-19 10:50:25 info try to control megad.0.p13_P13 with 1
          
          megad-0 2015-09-19 10:50:24 debug getPortState [http://192.168.10.11/mar/?cmd=all](http://192.168.10.11/mar/?cmd=all)
          
          megad-0 2015-09-19 10:50:24 debug Response "Done"
          
          megad-0 2015-09-19 10:50:24 debug Send command "cmd=13:NaN" to 192.168.10.11
          
          megad-0 2015-09-19 10:50:24 info try to control megad.0.p13_P13 with 0.32999999999999996
          
          megad-0 2015-09-19 10:50:23 debug Response "Done"
          
          megad-0 2015-09-19 10:50:23 debug Send command "cmd=13:NaN" to 192.168.10.11
          
          megad-0 2015-09-19 10:50:23 info try to control megad.0.p13_P13 with 0.57
          1 Reply Last reply Reply Quote 0
          • Bluefox
            Bluefox last edited by

            @Andrei34:

            @Bluefox:

            Не надо откатыватся. Есть 0.2.7 `
            Мало что изменилось 😞 Команды вроде посылаются но на меге ничего не меняется .

            • megad-0 2015-09-19 10:50:25 debug Response "Done"
            megad-0 2015-09-19 10:50:25 debug Send command "cmd=13:NaN" to 192.168.10.11
            
            megad-0 2015-09-19 10:50:25 info try to control megad.0.p13_P13 with 1
            
            megad-0 2015-09-19 10:50:24 debug getPortState [http://192.168.10.11/mar/?cmd=all](http://192.168.10.11/mar/?cmd=all)
            
            megad-0 2015-09-19 10:50:24 debug Response "Done"
            
            megad-0 2015-09-19 10:50:24 debug Send command "cmd=13:NaN" to 192.168.10.11
            
            megad-0 2015-09-19 10:50:24 info try to control megad.0.p13_P13 with 0.32999999999999996
            
            megad-0 2015-09-19 10:50:23 debug Response "Done"
            
            megad-0 2015-09-19 10:50:23 debug Send command "cmd=13:NaN" to 192.168.10.11
            
            megad-0 2015-09-19 10:50:23 info try to control megad.0.p13_P13 with 0.57 `  
            

            А ты перезапустил драйвер? Выглядит как будто старая версия.

            А почему ты пишешь 0.57? разве там не целочисленные значения от 0 до 255?

            1 Reply Last reply Reply Quote 0
            • A
              Andrei34 last edited by

              @Bluefox:

              А ты перезапустил драйвер? Выглядит как будто старая версия.

              А почему ты пишешь 0.57? разве там не целочисленные значения от 0 до 255? `
              Да перезапустил 😞 Вроде .25 было от 0 до 1 ?

              • megad-0 2015-09-19 11:40:44 debug Response "Done"
              megad-0 2015-09-19 11:40:44 debug Send command "cmd=13:NaN" to 192.168.10.11
              
              megad-0 2015-09-19 11:40:44 info try to control megad.0.p13_P13 with 207
              
              megad-0 2015-09-19 11:40:43 debug getPortState [http://192.168.10.11/mar/?cmd=all](http://192.168.10.11/mar/?cmd=all)
              
              megad-0 2015-09-19 11:40:42 debug Response "Done"
              
              megad-0 2015-09-19 11:40:42 debug Send command "cmd=13:NaN" to 192.168.10.11
              
              megad-0 2015-09-19 11:40:42 info try to control megad.0.p13_P13 with 132
              1 Reply Last reply Reply Quote 0
              • Bluefox
                Bluefox last edited by

                Ничего не пойму.

                Не буду пока версию делать можешь выполнить в консоли:

                cd /opt/iobroker
                iobroker stop megad.0
                npm install https://github.com/ioBroker/ioBroker.megad/tarball/master
                iobroker start megad.0
                
                
                1 Reply Last reply Reply Quote 0
                • A
                  Andrei34 last edited by

                  @Bluefox:

                  Ничего не пойму.

                  Не буду пока версию делать можешь выполнить в консоли:

                  cd /opt/iobroker
                  iobroker stop megad.0
                  npm install https://github.com/ioBroker/ioBroker.megad/tarball/master
                  iobroker start megad.0
                  
                  ```` `  
                  

                  Спасибо ОГРОМНЕЙШЕЕ всё опять заработало 😄 😄 😄

                  1 Reply Last reply Reply Quote 0
                  • M
                    MSapogov last edited by

                    Что-то у меня голова не соображает, куда нужно что прописать, чтобы об нажатии кнопки, выключателя или изменении выхода - IoBroker об этом получал информацию.

                    У меня после записи конфига в устройство, автоматом прописалось только поле SRV - 192.168.11.3:80 и Script - /0/

                    Может нужно в настройках порта в поле Net тоже что-то указывать?

                    Научите правильному 🙂

                    1 Reply Last reply Reply Quote 0
                    • V
                      vtec last edited by

                      Все правильно, единственное что скрипт должен быть 0/, без первого слеша, т.к. мега сама подставляет.

                      А дальше скрипты писать. Или драйверу выставить режим отладки debug и смотреть логи.

                      1 Reply Last reply Reply Quote 0
                      • Bluefox
                        Bluefox last edited by

                        @vtec:

                        Все правильно, единственное что скрипт должен быть 0/, без первого слеша, т.к. мега сама подставляет.

                        А дальше скрипты писать. Или драйверу выставить режим отладки debug и смотреть логи. `
                        Точно "0/", а не "/0/" ?

                        Я сейчас прописываю "/0/"

                        1 Reply Last reply Reply Quote 0
                        • M
                          MSapogov last edited by

                          @vtec:

                          Все правильно, единственное что скрипт должен быть 0/, без первого слеша, т.к. мега сама подставляет.

                          А дальше скрипты писать. Или драйверу выставить режим отладки debug и смотреть логи. `
                          Спасибо.

                          Теперь в логах есть инфа об нажатии кнопок.

                          Но перестали выполняться скрипты из поля Act на этих портах.

                          Получается или поле выполняем что в поле Act или скрипт на сервере?

                          1 Reply Last reply Reply Quote 0
                          • Bluefox
                            Bluefox last edited by

                            @MSapogov:

                            @vtec:

                            Все правильно, единственное что скрипт должен быть 0/, без первого слеша, т.к. мега сама подставляет.

                            А дальше скрипты писать. Или драйверу выставить режим отладки debug и смотреть логи. `
                            Спасибо.

                            Теперь в логах есть инфа об нажатии кнопок.

                            Но перестали выполняться скрипты из поля Act на этих портах.

                            Получается или поле выполняем что в поле Act или скрипт на сервере? В документации по мега указано: > Action (Act) - действие, которое необходимо произвести, в случае, когда сервер не указан или не отвечает. `

                            1 Reply Last reply Reply Quote 0
                            • V
                              vtec last edited by

                              @Bluefox:

                              Точно "0/", а не "/0/" ?

                              Я сейчас прописываю "/0/" `

                              У меня прописано 0/ и работает. Следовательно верно, т.к. без этого слеша получился бы корявый адрес.

                              А у тебя получается http://ip//0/ Браузер если не ошибаюсь просто проглатывает такое.

                              1 Reply Last reply Reply Quote 0
                              • B
                                Bosya last edited by

                                Две абсолютно одинаковые меги.

                                0 работает как положено, а 2 как-то глючит - нажимаеш кнопку загорается и тухнет.

                                Скрипты одинаковые. Настройки одинаковые. Лог разный:

                                root@Cubian:/opt/iobroker/log# tail -f iobroker.log.2015-09-21 | grep megad.0

                                2015-09-21 22:35:58.508 - debug: megad.0 reported new value for port 1, request actual value

                                2015-09-21 22:35:58.511 - debug: megad.0 getPortState http://192.168.15.20/sec/?pt=1&cmd=get

                                2015-09-21 22:35:58.535 - debug: megad.0 response for 192.168.15.20[1]: ON/27

                                2015-09-21 22:35:58.538 - debug: megad.0 detected new state on port [1]: 1

                                2015-09-21 22:35:58.540 - debug: megad.0 Start timer for 600ms to detect double click on 1

                                2015-09-21 22:35:58.745 - debug: megad.0 reported new value for port 1, request actual value

                                2015-09-21 22:35:58.748 - debug: megad.0 getPortState http://192.168.15.20/sec/?pt=1&cmd=get

                                2015-09-21 22:35:58.763 - debug: megad.0 response for 192.168.15.20[1]: OFF/27

                                2015-09-21 22:35:58.765 - debug: megad.0 detected new state on port [1]: 0

                                2015-09-21 22:37:26.755 - info: megad.0 sendTo "send" to system.adapter.megad.2 from system.adapter.megad.0: 2

                                2015-09-21 22:37:26.775 - debug: inMem message messagebox.system.adapter.megad.2 messagebox.system.adapter.megad.2 command=send, message=2, from=system.adapter.megad.0, _id=72

                                2015-09-21 22:37:26.778 - debug: megad.2 reported new value for port 2, request actual value

                                2015-09-21 22:37:26.779 - debug: megad.2 getPortState http://192.168.15.22/sec/?pt=2&cmd=get

                                2015-09-21 22:37:26.792 - debug: megad.2 response for 192.168.15.22[2]: ON/72

                                2015-09-21 22:37:26.794 - debug: megad.2 detected new state on port [2]: 1

                                2015-09-21 22:37:26.795 - debug: megad.2 Start timer for 600ms to detect double click on 2

                                2015-09-21 22:37:26.941 - info: megad.0 sendTo "send" to system.adapter.megad.2 from system.adapter.megad.0: 2

                                2015-09-21 22:37:26.960 - debug: inMem message messagebox.system.adapter.megad.2 messagebox.system.adapter.megad.2 command=send, message=2, from=system.adapter.megad.0, _id=73

                                2015-09-21 22:37:26.963 - debug: megad.2 reported new value for port 2, request actual value

                                2015-09-21 22:37:26.964 - debug: megad.2 getPortState http://192.168.15.22/sec/?pt=2&cmd=get

                                2015-09-21 22:37:26.980 - debug: megad.2 response for 192.168.15.22[2]: OFF/72

                                2015-09-21 22:37:26.982 - debug: megad.2 detected new state on port [2]: 0

                                2015-09-21 22:37:27.005 - debug: inMem message * megad.2.p2_P2 val=false, ack=true, ts=1442864247, from=system.adapter.megad.2, lc=1442864233

                                2015-09-21 22:37:27.014 - debug: inMem message * megad.2.p2_P2 val=false, ack=true, ts=1442864247, from=system.adapter.megad.2, lc=1442864233

                                2015-09-21 22:37:27.017 - debug: inMem message megad.2.* megad.2.p2_P2 val=false, ack=true, ts=1442864247, from=system.adapter.megad.2, lc=1442864233

                                2015-09-21 22:37:27.397 - debug: megad.2 Generate short click on port 2

                                1 Reply Last reply Reply Quote 0
                                • Bluefox
                                  Bluefox last edited by

                                  @Bosya:

                                  Две абсолютно одинаковые меги.

                                  0 работает как положено, а 2 как-то глючит - нажимаеш кнопку загорается и тухнет.

                                  Скрипты одинаковые. Настройки одинаковые. Лог разный:

                                  root@Cubian:/opt/iobroker/log# tail -f iobroker.log.2015-09-21 | grep megad.0

                                  2015-09-21 22:35:58.508 - debug: megad.0 reported new value for port 1, request actual value

                                  2015-09-21 22:35:58.511 - debug: megad.0 getPortState http://192.168.15.20/sec/?pt=1&cmd=get

                                  2015-09-21 22:35:58.535 - debug: megad.0 response for 192.168.15.20[1]: ON/27

                                  2015-09-21 22:35:58.538 - debug: megad.0 detected new state on port [1]: 1

                                  2015-09-21 22:35:58.540 - debug: megad.0 Start timer for 600ms to detect double click on 1

                                  2015-09-21 22:35:58.745 - debug: megad.0 reported new value for port 1, request actual value

                                  2015-09-21 22:35:58.748 - debug: megad.0 getPortState http://192.168.15.20/sec/?pt=1&cmd=get

                                  2015-09-21 22:35:58.763 - debug: megad.0 response for 192.168.15.20[1]: OFF/27

                                  2015-09-21 22:35:58.765 - debug: megad.0 detected new state on port [1]: 0

                                  2015-09-21 22:37:26.755 - info: megad.0 sendTo "send" to system.adapter.megad.2 from system.adapter.megad.0: 2

                                  2015-09-21 22:37:26.775 - debug: inMem message messagebox.system.adapter.megad.2 messagebox.system.adapter.megad.2 command=send, message=2, from=system.adapter.megad.0, _id=72

                                  2015-09-21 22:37:26.778 - debug: megad.2 reported new value for port 2, request actual value

                                  2015-09-21 22:37:26.779 - debug: megad.2 getPortState http://192.168.15.22/sec/?pt=2&cmd=get

                                  2015-09-21 22:37:26.792 - debug: megad.2 response for 192.168.15.22[2]: ON/72

                                  2015-09-21 22:37:26.794 - debug: megad.2 detected new state on port [2]: 1

                                  2015-09-21 22:37:26.795 - debug: megad.2 Start timer for 600ms to detect double click on 2

                                  2015-09-21 22:37:26.941 - info: megad.0 sendTo "send" to system.adapter.megad.2 from system.adapter.megad.0: 2

                                  2015-09-21 22:37:26.960 - debug: inMem message messagebox.system.adapter.megad.2 messagebox.system.adapter.megad.2 command=send, message=2, from=system.adapter.megad.0, _id=73

                                  2015-09-21 22:37:26.963 - debug: megad.2 reported new value for port 2, request actual value

                                  2015-09-21 22:37:26.964 - debug: megad.2 getPortState http://192.168.15.22/sec/?pt=2&cmd=get

                                  2015-09-21 22:37:26.980 - debug: megad.2 response for 192.168.15.22[2]: OFF/72

                                  2015-09-21 22:37:26.982 - debug: megad.2 detected new state on port [2]: 0

                                  2015-09-21 22:37:27.005 - debug: inMem message * megad.2.p2_P2 val=false, ack=true, ts=1442864247, from=system.adapter.megad.2, lc=1442864233

                                  2015-09-21 22:37:27.014 - debug: inMem message * megad.2.p2_P2 val=false, ack=true, ts=1442864247, from=system.adapter.megad.2, lc=1442864233

                                  2015-09-21 22:37:27.017 - debug: inMem message megad.2.* megad.2.p2_P2 val=false, ack=true, ts=1442864247, from=system.adapter.megad.2, lc=1442864233

                                  2015-09-21 22:37:27.397 - debug: megad.2 Generate short click on port 2 `
                                  А что загорается и тухнет?

                                  По логам всё верно. Т.к. слушает на порту 80 только mega.0, то она пересылает все сообщения от 192.168.15.22 на mega.2. И там видно, что кнопка нажимается и сразу отжимается. Ещё висит распознавание double click на 2.
                                  4720_heigung2.jpg
                                  4720_heizung.jpg

                                  1 Reply Last reply Reply Quote 0
                                  • Bluefox
                                    Bluefox last edited by

                                    Заработало? Мне важно знать, что бы написать на ab-log форуме, что драйвер готов.

                                    (Проблему с поиском устройств я ещё решу)

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      Bosya last edited by

                                      Вчера поставил третью мегу - сегодня буду тестить… Может я где-то провтыкал....
                                      6305_hm_tuersensor.png

                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        Bosya last edited by

                                        Третья мега пока не заработала - проблемы коммутации.
                                        @Bluefox:

                                        А что загорается и тухнет? `
                                        Разобрался - сначала сама мега переключает выход (11:2) - потом аналогичная команда приходит от сервера… Убираешь команду в поле Action - все отлично работает через сервер. Возвращаешь Action и убираешь настройки сервера - все работает через контролер. Теперь вопрос - почему мега не ждет выполнения команды от сервера? Может он ей что-то не так отвечает? На 0 меге все отлично. Проблемы на 2 (1 пока не работает).

                                        PS. Решил симитировать запросы меги (192.168.15.15 - сервер)

                                        Отправил команду http://192.168.15.15/0/?pt=3

                                        Ответ: OK

                                        Отправил команду http://192.168.15.15/1/?pt=3

                                        Ответ: OK->

                                        Отправил команду http://192.168.15.15/2/?pt=3

                                        Ответ: OK->

                                        Таким образом проблема в драйвере - он некорректно отвечает не 0 меге.

                                        1 Reply Last reply Reply Quote 0
                                        • Bluefox
                                          Bluefox last edited by

                                          Ты имеешь ввиду

                                          OK****->****

                                          ?

                                          1 Reply Last reply Reply Quote 0
                                          • Bluefox
                                            Bluefox last edited by

                                            Поправил

                                            ### 0.2.10 (2015-09-26)
                                            * (bluefox) return "OK" and not "OK->" to other than 0 instances
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            888
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            28
                                            430
                                            115568
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo