Git Product home page Git Product logo

homebridge-smtp-motion's People

Contributors

dependabot[bot] avatar sunoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

homebridge-smtp-motion's Issues

Not an Issue - Just a massive THANK YOU

I have set up this system with my HikVision camera's in association with Camera-ffmpeg and I've managed to get it to work flawlessly for all three of my camera's so I can use my Philips motion sensor somewhere else.

Thank you so much for this

Camera is not able to connect

Where do I start troubleshooting?

{
            "platform": "smtpMotion",
            "plugin_map": {
                "plugin_name": "homebridge-smtp-motion"
            },
            "name": "SMTP Motion",
            "smtp_port": 5000,
            "http_port": 8089
        }

In the homebridge-ffmpeg-camera config, "porthttp": 8089 and camera "name": "Gate Camera"

Screen Shot 2020-07-31 at 12 20 26 PM

Motion sensor not turning on

I've got homebridge-smtp-motion and homebridge-camera-ffmpeg both running. Here is my config:

{
            "name": "Camera FFmpeg",
            "porthttp": 8080,
            "cameras": [
                {
                    "name": "DrivewayCam",
                    "manufacturer": "xxxx",
                    "model": "xxxx",
                    "motion": true,
                    "doorbell": true,
                    "switches": true,
                    "motionTimeout": 60,
                    "motionDoorbell": true,
                    "unbridge": true,
                    "videoConfig": {
                        "source": "-i rtsp://[email protected]:88:554/videoMain",
                        "maxWidth": 0,
                        "maxHeight": 0,
                        "maxFPS": 0,
                        "vcodec": "copy"
                    }
                },
                {
                    "name": "Door Test",
                    "manufacturer": "xxxx",
                    "model": "xxxx",
                    "motion": true,
                    "doorbell": true,
                    "switches": true,
                    "motionDoorbell": true,
                    "unbridge": true,
                    "videoConfig": {
                        "source": "-i rtsp://[email protected]:88:554/videoMain",
                        "maxWidth": 0,
                        "maxHeight": 0,
                        "maxFPS": 0,
                        "vcodec": "copy"
                    }
                }
            ],
            "platform": "Camera-ffmpeg"
        },
        {
            "name": "SMTP Motion",
            "log_emails": true,
            "platform": "smtpMotion"
        }

When the cameras detect motion, they send the email (homebridge shows the email received).

I set up the automation in Home to trigger motion (and also tried doorbell) if the motion sensor is toggled on. But the motion sensor never toggles on.

Am I missing a step somewhere?

smtp-motion causes crash of homebridge

Hi guys!

I'm running homebridge on a MacMini (late 2012) with only 2 Plugins:

  1. homebridge-camera-ffmpeg (running fine since 2 years)
  2. homebridge-smtp-motion (since some month)

All version are latest minus 1...

Since installing and using "smtp-motion" my 2 cameras are randomly "not reachable". I'll take a look into the logs, but I guess there was nothing to see. I suspect, when emails from the cams coming at "high" frequency... but I think that the frequency is not too high or like Spam. I would say after frequency raise up to round about 10 mails per minute.

edit: todays evening I'll deliver precise version numbers

Greetz!

TypeError: Cannot set property closed of #<Writable> which has only a getter

After updating to Node 18.xx with Homebridge v1.5.1 (HAP v0.10.4), I get a crash on receipt of an email:
previously this was all working well:

/usr/lib/node_modules/homebridge-smtp-motion/node_modules/smtp-server/lib/smtp-stream.js:34
this.closed = false;
^
TypeError: Cannot set property closed of # which has only a getter
at new SMTPStream (/usr/lib/node_modules/homebridge-smtp-motion/node_modules/smtp-server/lib/smtp-stream.js:34:21)
at new SMTPConnection (/usr/lib/node_modules/homebridge-smtp-motion/node_modules/smtp-server/lib/smtp-connection.js:55:24)
at SMTPServer.connect (/usr/lib/node_modules/homebridge-smtp-motion/node_modules/smtp-server/lib/smtp-server.js:93:26)
at /usr/lib/node_modules/homebridge-smtp-motion/node_modules/smtp-server/lib/smtp-server.js:84:26
at Immediate. (/usr/lib/node_modules/homebridge-smtp-motion/node_modules/smtp-server/lib/smtp-server.js:345:39)
at processImmediate (node:internal/timers:471:21)
[31/10/2022, 19:58:35] [SMTP Motion] Child bridge process ended
[31/10/2022, 19:58:35] [SMTP Motion] Process Ended. Code: 1, Signal: null
[31/10/2022, 19:58:42] [SMTP Motion] Restarting Process...
[31/10/2022, 19:58:43] [SMTP Motion] Launched child bridge with PID 1945966
[31/10/2022, 19:58:43] Registering platform 'homebridge-smtp-motion.smtpMotion'
[31/10/2022, 19:58:43] [SMTP Motion] Loaded homebridge-smtp-motion v1.2.1 child bridge successfully
[31/10/2022, 19:58:43] Loaded 0 cached accessories from cachedAccessories.0EDE28255D8B.
[31/10/2022, 19:58:43] Homebridge v1.5.1 (HAP v0.10.4) (SMTP Motion) is running on port 39693.

Question about camera image

Hi,

First of all, thanks for creating this plugin, this is exactly what I'm looking for to convert Reolink motion notifications to Homekit motion events. Awesome!

I'm hoping you could clarify the following statement included in the Readme, though, which I found faily ambiguous:

"... currently only triggers alerts after uploading an image into the folder with the same name as your camera. The image is not currently stored anywhere."

Do I need to upload an image somewhere in order for the plugin to work or is this referring to how the image included in the e-mail content itself is handled by the plugin? What does it mean that the image is uploaded to a folder but is not stored anywhere?

I really appreciate if you can clarify the instructions in the Readme.
Thanks!

How to read message content

Thank you for providing this plugin.

I have 3 cameras connected to the NVR.
When the motion-triggered the NVR sends the message to all camera name.

What I want to do is reading the message content and extract the camera name from it then I can run the HTTP-based Automation.

Can you please help me with reading the message content.

Feature request: define "space" character in config

Hello, I have a camera that does not allow the "+" character as a recipient email address. Could a configurable option in this plugin be added that allows me to define another character besides "+"?

For example, my camera does allow "_" to be used in the recipient email address, so if this plugin could replace "_" (or any other defined character) with " " that would be excellent!

Email received, but no home app notification

Hey,

I followed your guide and manage to get the following in the logs: [19/01/2021, 13:35:18] [smtpMotion] [Door] Email received.

Only issue is I don't get home app notifications. I'm sending the email to [email protected]

My config file is like this:

{
   "platform": "smtpMotion",
   "smtp_port": 2525,
   "http_port": 8581
},
{
   "name": "Camera FFmpeg",
    "cameras": [
        {
          "name": "Door",
           "manufacturer": "Reolink",
           "model": "RLC-410",
           "motion": true,
         }
      ]
}

Thanks

Possibility to expose smtp sensor as a dummy switch?

First of all - this is an awesome plugin! I'm loving it! - Basically all my cameras with smtp-capabilities are motion sensors now!

I would like to ask if its possible to expose the smtp sensor as a dummy switch instead of automatically triggering the motion switch on the ffmpeg plugin.

The reason for this is I'm looking for a way to include an OR condition for my notification (There may be a better way to do this - if so kindly advise?). I'm looking to trigger motion alerts rich notifications when, using homekit standard conditions..

  1. No one's at home
  2. Specific time after sunset (eg. midnight to sunrise)
    I'm looking for an "OR" condition for both the above to trigger my rich notification.

Currently with the SMTP motion plugin - it directly triggers the ffmpeg motion switches - but based on only one of the conditions, not when either one of them is triggered. (My cameras are set to send emails on motion detect 24/7).

I was thinking if this was exposed as a dummy switch, I could use two automation that would check for either conditions, and manually triggering the ffmpeg motion switch(?) - does this make sense?

Thanks!

Incompatible with node 18.x

This plugin seems to be incompatible with node 18.x

[20/04/2023, 23:13:13] Error: connect ECONNREFUSED 127.0.0.1:8080 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) [20/04/2023, 23:13:13] Got SIGTERM, shutting down Homebridge... [20/04/2023, 23:13:18] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null [20/04/2023, 23:13:23] [HB Supervisor] Restarting Homebridge... [20/04/2023, 23:13:23] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution

I confirmed this installing a fresh version of the Homebridge SD card image "Raspbian-Homebridge-v1.0.39.zip" and only installed the plugin "homebridge-smtp-motion".
Upon motion detection or sending a test Mail the homebridge service is restarting instantly.

MotionEyeOS camera not able to connect

I have a camera on a pi running MotionEyeOS connected to my homebridge using the FFMPEG plugin. Trying to expose the motion sensor.

Using this plugin, I get an error from MotionEye that “Notification Email Failed: Check SMTP port!”

See attached image. I am using the IP address of my homebridge installation as the SMTP server. Any idea what I am doing wrong?

Appreciate any assistance. Thanks!

![C6570DEF-C3CF-45FB-8FAB-587B914F59CA](https://user- images.githubusercontent.com/41488348/112475175-2432ee00-8d36-11eb-9380-b7688c0280d1.png)

camera having troubles with authentication

I have everything setup and working through an email client however when I try to setup the details in the camera it returns a failed authentication request invalid username or password. Unfortunately my cameras will not allow for no user/password. Is there anything that can be done to return a valid auth request?

Connection closed

Hello! Thank you for your job!

When motion in Homebridge debug log see this messages:
[28/12/2020, 11:23:14] [SMTP Motion] [SMTP Server] Connection closed to 192.168.1.152
[28/12/2020, 11:23:14] [SMTP Motion] [SMTP Server] Reverse resolve for 192.168.1.152: getHostByAddr ENOTFOUND 192.168.1.152

Where 192.168.1.152 - it's a IP of a cam (IPC Dahua).

Reaction is visible in log. But doesn't work for trigger.

Raspbian: only binding to IPv6

Plugin is only binding to IPv6 loopback. Not listening on IPv4. I've removed the plugin, disabled IPv6 to get the results of ifconfig is seen below and reinstalled, but still it only listens on ipv6.

This is running homebridge on the raspbian image.

pi@homebridge:~ $ sudo netstat -tulpn | grep 2525
tcp6 0 0 :::2525 :::* LISTEN 1124/homebridge

pi@homebridge:~ $ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet x.x.x.x netmask 255.255.255.0 broadcast x.x.x.x
ether b8:27:eb:7b:22:39 txqueuelen 1000 (Ethernet)
RX packets 1353 bytes 550359 (537.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1403 bytes 597650 (583.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Local Loopback)
RX packets 990 bytes 402271 (392.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 990 bytes 402271 (392.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Can't get to work with Hoobs

I have Camera FFmpeg set up on Hoops working fine.

I set this up on Hoobs but upon start up I receive the log error

1/19/2022, 3:57:30 PMSmtp Motion BridgeSMTP MotionERRORThe homebridge-camera-ffmpeg plugin must be installed and configured.

Seems like setup may be different on Hoobs vs Homebridge. Any help is appreciated.

Idea : Trigger a dummy switch instead of sending http to homebridge-camera-ffmpeg?

Hi there - this isn't really an issue but an idea/suggestion

I am trying to make a switch that will let me control my camera rich notification better. Right now, I am able to arm/disarm the rich notifications by means of using the homekit built in "when nobody/somebody is home" condition. However I want to take it one step further, such that when I am in a particular room (eg. my study room), I still want rich notification to come from certain cameras. The condition of "when nobody/somebody is home" is nice but too limiting. There are some cameras that I still want notification from even if I am home (though not all)

I was hoping to do something like this by means of having this smtp motion trigger a dummy switch instead of going directly to homebridge-camera-ffmpeg http port. I would therefore be able to make an automation that if that dummy switch is triggered, i can make an additional check (eg. via another stateful dummy switch say ...called "Enable Camera 1 Notification") - to see if i want to trigger the switch associated with the camera that sends the rich notification. Is something like this possible ?

Alternatively - is it possible for enable homebridge-camera-ffmpeg to create sourceless dummy switch? That way, I can make this plugin trigger those dummy switch instead to achieve the same effect.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.