Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Русский
  3. ioBroker
  4. ioBroker драйвера
  5. MegaD 328

NEWS

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

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

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

MegaD 328

Scheduled Pinned Locked Moved ioBroker драйвера
430 Posts 28 Posters 135.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Andrei34
    wrote on last edited by
    #161

    После обновления перестал ШИМ работать 😞

    1 Reply Last reply
    0
    • BluefoxB Offline
      BluefoxB Offline
      Bluefox
      wrote on last edited by
      #162

      @Andrei34:

      После обновления перестал ШИМ работать 😞 `
      Что говорит debug?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Andrei34
        wrote on last edited by
        #163

        @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
        0
        • BluefoxB Offline
          BluefoxB Offline
          Bluefox
          wrote on last edited by
          #164

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

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Andrei34
            wrote on last edited by
            #165

            @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
            0
            • BluefoxB Offline
              BluefoxB Offline
              Bluefox
              wrote on last edited by
              #166

              @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
              0
              • A Offline
                A Offline
                Andrei34
                wrote on last edited by
                #167

                @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
                0
                • BluefoxB Offline
                  BluefoxB Offline
                  Bluefox
                  wrote on last edited by
                  #168

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

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

                  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
                  0
                  • A Offline
                    A Offline
                    Andrei34
                    wrote on last edited by
                    #169

                    @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
                    0
                    • M Offline
                      M Offline
                      MSapogov
                      wrote on last edited by
                      #170

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

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

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

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

                      1 Reply Last reply
                      0
                      • V Offline
                        V Offline
                        vtec
                        wrote on last edited by
                        #171

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

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

                        1 Reply Last reply
                        0
                        • BluefoxB Offline
                          BluefoxB Offline
                          Bluefox
                          wrote on last edited by
                          #172

                          @vtec:

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

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

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

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            MSapogov
                            wrote on last edited by
                            #173

                            @vtec:

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

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

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

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

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

                            1 Reply Last reply
                            0
                            • BluefoxB Offline
                              BluefoxB Offline
                              Bluefox
                              wrote on last edited by
                              #174

                              @MSapogov:

                              @vtec:

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

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

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

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

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

                              1 Reply Last reply
                              0
                              • V Offline
                                V Offline
                                vtec
                                wrote on last edited by
                                #175

                                @Bluefox:

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

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

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

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

                                1 Reply Last reply
                                0
                                • B Offline
                                  B Offline
                                  Bosya
                                  wrote on last edited by
                                  #176

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

                                  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
                                  0
                                  • BluefoxB Offline
                                    BluefoxB Offline
                                    Bluefox
                                    wrote on last edited by
                                    #177

                                    @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
                                    0
                                    • BluefoxB Offline
                                      BluefoxB Offline
                                      Bluefox
                                      wrote on last edited by
                                      #178

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

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

                                      1 Reply Last reply
                                      0
                                      • B Offline
                                        B Offline
                                        Bosya
                                        wrote on last edited by
                                        #179

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

                                        1 Reply Last reply
                                        0
                                        • B Offline
                                          B Offline
                                          Bosya
                                          wrote on last edited by
                                          #180

                                          Третья мега пока не заработала - проблемы коммутации.
                                          @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
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          494

                                          Online

                                          32.4k

                                          Users

                                          81.4k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe