• Register
    • Login
    • Search

    Unsolved Screen off with ext-pir applied

    EXT-Screen
    2
    6
    32
    Loading More Posts
    • 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
      ain last edited by

      According to the ext-pir and screen documentation, I think I can apply this to make a system that turns on when something is detected by the pir via pir sensor mode. I have authorized mode 6, but it does not go to sleep when it is not detected, and vice versa.

        module: 'EXT-Screen',
        position: 'top_left',
        config: {
          autoDimmer: true,
          delay: 2 * 60 * 10,
          mode: 6,
          gpio: 20,
          clearGpioValue: true,
          ON: [
        {
          dayOfWeek: [0,1,2,3,4,5,6],
          hour: 00,
          minute: 00
        }
      ],
          OFF: [
        {
          dayOfWeek: [0,1,2,3,4,5,6],
          hour: 00,
          minute: 00
        }
      ]
        }
      },
        module: 'EXT-Pir',
        config: {
          debug: false,
          gpio: 2,
          reverseValue: false
        }
      },
      

      cb7ea822-39e1-456f-b121-795c8cfbdcfa-image.png

      These images don’t come up either

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by bugsounet

        HI,

        1. what’s happening is you’re breaking the rules with ON/OFF
          actually you are asking to turn it on and off at the same time

        2. If you use a pir sensor with EXT-Pir
          Best way is not using ON/OFF
          Why? just because it’s EXT-Pir Job

        3. ON/OFF feature is only used if you don’t have a pir sensor
          So… just delete ON:[] and OFF:[] feature and it will works like you want 🙂

        My place in France Top committers of Github:
        committers.top badge

        A 1 Reply Last reply Reply Quote 0
        • A
          ain @bugsounet last edited by

          @bugsounet
          I modified the code according to your advice, but it still doesn’t work

          {
            module: 'EXT-Pir',
            config: {
              debug: true,
              gpio: 20,
              reverseValue: false
            }
          },
          {
            module: 'EXT-Screen',
            position: 'top_left',
            config: {
              delay: 2 * 60 * 1000
            }
          },
          

          I changed it to the default format only, and I think that ext-pir sends a wakeup alarm, so I don’t need to turn it on or off. However, even though I opened a new pir sensor and checked the GPIO settings, the screen does not show the sleep mode or timer picture.
          696ea2ec-4489-481b-a38d-0cbbb64d5d4b-image.png

          Here’s what it looks like, the non-English ones are my local settings

          1 Reply Last reply Reply Quote 0
          • bugsounet
            bugsounet Main Coder last edited by

            Don’t forget this rule:

            An EXT plug-in is not a module.
            You can’t use it without MMM-GoogleAssistant and Gateway

            So… Do you use it?

            My place in France Top committers of Github:
            committers.top badge

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

              Yes I use gateway and I also use mmm - google assistant but as per your advice I just updated node.js to version 20.04 and then I tried reinstalling gateway,assistant and mirror with npm rebulid command and now it works! Maybe the mirror was not working because it was a lower version that I installed a few months ago.
              Thanks for your help in checking my mistake

              1 Reply Last reply Reply Quote 0
              • bugsounet
                bugsounet Main Coder last edited by

                Sure all have to be up to date because I change some internal API(Assistant, Gateway and EXTs a few month ago)

                If works, it’s perfect

                My place in France Top committers of Github:
                committers.top badge

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB | @bugsounet ©2023