iobroker.motioneye
v0.3.2
Published
Connect MotionEye cameras to ioBroker for motion detection, snapshots, and live streams
Readme

ioBroker adapter for MotionEye
What this adapter does
Connect MotionEye cameras to ioBroker for motion detection, snapshots, and live streams. Control detection modes (off / still / sharp) from ioBroker or VIS and provide streamUrl HTML for any HTML-capable widget — no simple-api required for webhooks.
Status: Phase 2 — snapshot, stream, streamPulse, and
streamUrlHTML for dashboards. Phase 1 covers modes, webhooks, and MotionEye sync.
Features
- User-defined camera names in ioBroker (independent of MotionEye labels)
- Dynamic channels under
motioneye.0.<name>.*(lowercase folder names) - Built-in webhook server — no simple-api dependency
- MotionEye Config API sync for modes and webhook URLs
_info.connection— instance shows when MotionEye is unreachable- Stream sibling relink after VIS re-render (multi-camera dashboards)
Data Points
Per camera (motioneye.0.<name>.*)
Channel folder names are lowercase (e.g. innenhof_ii, auffahrt).
| State | Type | Read | Write | Description |
|-------|------|------|-------|-------------|
| mode | value | yes | yes | off / still / sharp |
| motion | indicator | yes | yes | Motion detected (auto-reset) |
| snapshot | button | no | yes | Trigger snapshot |
| stream | switch | yes | yes | Live MJPEG stream on/off |
| streamPulse | button | no | yes | Stream on briefly (auto-off) |
| streamUrl | text | yes | no | HTML <img> for html widget |
| status | text | yes | no | Last sync status |
| lastAction | text | yes | no | Last API action |
| webhookUrl | url | yes | no | URL written to MotionEye |
| motionEyeId | value | yes | no | MotionEye camera ID |
| motionEyeName | text | yes | no | Original name in MotionEye |
Instance (motioneye.0._info.*)
| State | Type | Description |
|-------|------|-------------|
| _info.connection | boolean | MotionEye reachable |
| _info.camerasOnline | number | Enabled cameras found in MotionEye |
| _info.lastSync | text | Last status poll timestamp |
| _info.motionEyeVersion | text | MotionEye server version |
| _info.motionVersion | text | Motion daemon version |
Installation
- Install the adapter from the ioBroker admin interface (or clone this repo and use the dev-server)
- Create a new instance
- Configure Settings: MotionEye host, ports, credentials (optional), webhook host
- Add cameras on the Cameras tab (display name, MotionEye ID, optional media folder)
- Save and restart the instance — datapoints are created and webhook URLs are written to MotionEye
Camera modes
| Mode | Motion detection | Video recording | Webhook |
|------|------------------|-----------------|---------|
| off | no | no | no |
| still | yes | no | yes |
| sharp | yes | motion-triggered MP4 | yes |
Configuration
| Option | Default | Description |
|--------|---------|-------------|
| motionHost | (empty) | MotionEye server hostname or IP (required) |
| motionPort | 7999 | Motion HTTP API (snapshots) |
| motionEyePort | 8765 | MotionEye config API |
| motionEyeUser | admin | MotionEye login user |
| motionEyePassword | (empty) | MotionEye password (plain text, stored encrypted) |
| webhookHost | (required) | ioBroker host IP or hostname reachable from MotionEye (used in webhook URLs) |
| webhookPort | 8090 | Built-in webhook listener port |
| motionResetMs | 15000 | Auto-reset for .motion after webhook |
| statusPollIntervalSec | 300 | MotionEye status poll interval |
| useMotionEyeConfig | true | Write mode, webhook URLs, and stream on/off to MotionEye (leave enabled for normal use) |
Per camera (Cameras tab): optional Media folder name under /var/lib/motioneye (e.g. Bambu instead of default Camera8). Applied on adapter start when config sync is enabled. Does not rename existing folders on disk.
Support
If you like our work and would like to support us, we appreciate any donation. (This link leads to our PayPal account and is not affiliated with ioBroker.)
Changelog
0.3.2 (2026-06-22)
- (skvarel) Modified config/help
0.3.1 (2026-06-22)
- (skvarel) Changed repo icon
0.3.0 (2026-06-22)
- (skvarel) Camera channel folders are now lowercase (e.g.
innenhof_iiinstead ofInnenhof_II) — aligned with other ioBroker adapters - (skvarel) Info states moved from
0_infoto_info - (skvarel) Existing datapoint values are migrated automatically on adapter start — please check VIS, scripts, and automations that use fixed state paths
0.2.1 (2026-06-22)
- (skvarel) Fixed adapter checker errors and warnings
0.2.0 (2026-06-22)
- (skvarel) Added optional per-camera media folder name under
/var/lib/motioneye(written to MotionEye on adapter start) - (skvarel) Added camera load from MotionEye (merges
/config/listinto camera table) - (skvarel) Added Help-Tab with setup guide, modes, datapoints, and stream/inventwo notes
Older changes
License
MIT License
Copyright (c) 2026 skvarel [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

