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.
    • M
      MSapogov last edited by

      Вот это дисскуссия! Истинна где-то рядом 🙂

      1. Логи просто обрезаются наверное, но если подвести мышку к нужной строке но можно увидеть полную комманду. Вот пример скриншота…
      643_megad-save-iot-debug.png
      2. Для Р14 и Р15 режим только ADC с возможностью выбора режима Mode и Action.

      Комманда http://192.168.11.206/sec/?pn=14&m=0&misc=0&ecmd=

      Воспринимается нормально. (Back. MegaD is restarted)

      3. Для цифровых датчиков Поле Action и Mode может быть только у 1W!

      PS: Нашел что убивает Р13. Это комманда http://192.168.11.206/sec/?pn=14&pty=2& … 1%3A4&eth= - из скриншота

      Если подать комманду без pty, то порт не оживает.

      Но если подать комманду http://192.168.11.206/sec/?pn=14&pty=25 ... 1%3A4&eth= - То все оживает

      Такое ощущение что для портов Р14 и Р15 комманда pty=2 Вообще не нужна. Или Нужна комманда pty=255.

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

        @Bluefox:

        > Команды возможны , но они по уровню в поле Val и можно выбрать (Norm , < , > , <> )
        Речь шла о DHT11(22). Вопрос остаётся открытым. `
        Нет в DHT11(22) менять ничего нельзя .
        546_1.png

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

          Отлично. У меня есть вся инфа. Спасибо

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

            @Bluefox:

            Отлично. У меня есть вся инфа. Спасибо `
            Ждем версию драйвера 0.2.6 с этими исправлениями.

            А при нажатии "Find devices" у меня ничего не находит…

            Но когда из линукса набираю

            php megad-cfg.php --scan --local-ip 192.168.11.1

            Обязательно с параметром --local-ip 192.168.11.1

            192.168.11.1 - адресс компьютера с которого зпускаю комманду, то в ответ

            Радостно прилетает 192.168.11.206

            root@router:/var/www/desk# php megad-cfg.php --scan --local-ip 192.168.11.1
            192.168.11.206
            

            Может у Вас не хватает параметра –local-ip ?

            PS: Программатор в шкаф пока не убираю 🙂

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

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

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

                @Andrei34:

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

                1 Reply Last reply Reply Quote 0
                • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            862
                                            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