Git Product home page Git Product logo

hass-motioneye's People

Contributors

dependabot[bot] avatar dermotduffy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hass-motioneye's Issues

Multiple motion events (how to differentiate)

I am running the latest core version of the motioneye integration component. I am aware that the core version does not support binary sensors by default, but I am required to manually turn an event into a binary sensor.

Just wondering, how to differentiate motion events from multiple cameras in motioneye since the event_type will be the same for the motion events, event_type: "motioneye.motion_detected"?

Media in media browser listed but empty

custom_component v0.0.17
home assistant os 6.5, core-2021.10.5
motioneye add-on 0.15.1

Describe the bug

Using this custom component alongside with the add-on, configured as described here (http://localhost:28765): in ha media browser the files recorded by motioneye add-on are listed but empty respectively cannot be found and be shown. Perhaps, the provided links are wrong.

The link provided by the motioneye add-on is "http://IP:8123/api/hassio_ingress/iDB5QusbLldmMd9prHTLDmQPbjUuEG_IExHsFrVtOzo/picture/1/preview/2021-10-15/15-13-16.jpg?_username=admin&_signature=4a6d3febaeee74b2be907b2bd033be06fb5d7073" while the link to the same picture offered by ha media browser is "http://localhost:28765/picture/1/download/2021-10-15/15-13-16.jpg?_username=admin&_signature=4fdbe4d26c37c2f0720a82e41af2f4d6beb47e73".

Medien-Browser - Home Assistant 2021-10-16 11-13-01

How to detect motion?

Hi,

I'm currently stuggeling to enable motion detection with the integration. So far, I have both "Home Assistant Community Add-on: motionEye" and this "Add-on MotionEye" integration installed (confusing names, btw). I added a bunch of entities to lovelace

  - binary_sensor.livingroom_file_stored
  - binary_sensor.livingroom_motion
  - switch.livingroom_motion_detection
  - switch.livingroom_movies
  - switch.livingroom_still_images

motionEye has motion detection enabled and shows detected motion nicely with a square. I can turn detection on and off in lovelace. Motion Notifications is configured to call a web hook

http://homeassistant-eth.local:8123/api/motioneye/device/fdefe9c73721d9319c69131c474ba711/motion_detected?camera_id=%t&changed_pixels=%D&despeckle_labels=%Q&event=%v&fps=%{fps}&frame_number=%q&height=%h&host=%{host}&motion_center_x=%K&motion_center_y=%L&motion_height=%J&motion_version=%{ver}&motion_width=%i&noise_level=%N&threshold=%o&width=%w&src=hass-motioneye

However, binary_sensor.livingroom_motion never changes and if I listen to events (motioneye.motion_detected) using HA's Developer Tools it never fires.

Any idea, what I am missing?

Admin level credentials used where not needed

Version of the custom_component

v0.0.17

Describe the bug

The file_url field contains admin account credentials (at least hashed) but i'm sure that for file download purposes is more that enough user level account

Debug log


{
   "payload":{
      "event_type":"motioneye.file_stored",
      "event":{
         "device_id":"7900c194a82bc11dd42654b1efa51310",
         "name":"DoorCam",
         "camera_id":"1",
         "event":"03",
         "file_path":"/share/motioneye/DoorCam/2021-11-03/09-30-50.jpg",
         "file_type":"2",
         "fps":"2",
         "frame_number":"00",
         "height":"720",
         "host":"a0d7b954-motioneye",
         "motion_version":"4.3.2",
         "noise_level":"11",
         "threshold":"9216",
         "width":"1280",
         "src":"hass-motioneye",
         "media_content_id":"media-source://motioneye/a988e81aa4ac9f2cd4c86fb8de90b359#7900c194a82bc11dd42654b1efa51310#images#/2021-11-03/09-30-50.jpg",
         "file_url":"http://{!irrelevant}/picture/2/download/2021-11-03/09-30-50.jpg?_username=admin&_signature={!who_cares}"
      },
      "origin":"LOCAL",
      "time_fired":"2021-11-03T04:30:50.632407+00:00",
      "context":{
         "id":"e7e7c7d1612e9161261c0adaa2554b75",
         "parent_id":null,
         "user_id":null
      }
   },
   "topic":"motioneye.file_stored",
   "_msgid":"9d4213e77ff707ea"
}




Entity Camera. and Services not working

motionEye Version | 0.42.1
Motion Version | 4.2.2
OS Version | Ubuntu 20.04

I tried this new integration with my motioneye, switch and sensors seem to work fine, except for the camera. entity , is unavailable.
Screenshot_3

Screenshot_5

I also tried to use motion service but there's no effects..

Screenshot_4

any suggestion?

Motion Entity

I have enabled motion detection in the add on, but the integration does not seem to include binary sensor for the motion detection. Do I need to enable web hook in the add on, if so, where should the web hook point to?

Webhooks not triggering reliably

Version of the custom_component

v0.0.17

Describe the bug

A clear and concise description of what the bug is.
Motion webhooks are not being sent all the time. I can walk into a room and watch the motioneye camera show me in lovelace, but the motion sensor does not turn on. I know motion detection is working because motioneye records me walking in, it just doesn't update the binary sensor. Testing the webhook, I can enter the url into my browser and the sensor triggers so the communication between the two works fine. It just seems that sometimes the webhook doesn't get sent.

Option to explicitly set the callback URL for webhooks

Is your feature request related to a problem? Please describe.
I run Home Assistant with two network interfaces: one for connecting to an isolated IoT network, and another one for the outside world. It would be really hard for Home Assistant or this component to guess which one of those is the right one for MotionEye to send API calls to. In fact the call to homeassistant.helpers.network.get_url actually returns a third address which doesn't even exist on my system, but that's another problem. The point is, webhooks configured in MotionEye for things like Motion Notification don't point to the correct address of my Home Assistant instance.

Describe the solution you'd like
An option to manually configure the address that will be used in webhooks from config file or UI

Describe alternatives you've considered
Getting get_url fixed in core might help some, but because of the multiple network interfaces it's probably not a complete solution. Only one of the interfaces can be used to dial out to the MotionEye instance, so there might be some way to use that to determine which of the multiple interfaces is the correct one, but as mentioned above, automatically working out the correct interface and address seems like more of a "nice to have" feature.

Additional context
Add any other context or screenshots about the feature request here.

Audio in recordings

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
There is no audio in motioneye recordings or live streams

Describe the solution you'd like
A clear and concise description of what you want to happen.
There to be audio in motioneye recordings or live streams

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.
I use Wyze v2 Cameras with the RTSP firmware but there doesn't seem to be any audio in either the motioneye dashboard or in HA.

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.