secubox-openwrt/package/secubox/luci-app-domoticz/README.md
CyberMind-FR f2f24afe12 feat(domoticz): Rewrite from Docker to LXC Debian container
- Switch from Docker to LXC with Debian bookworm rootfs and native
  Domoticz binary from GitHub releases (latest/download pattern)
- Fix LXC cgroup2 terminal allocation: add lxc.tty.max, lxc.pty.max,
  cgroup2 device permissions for standard char devices, disable seccomp
- Fix PID 1 issue: run domoticz as child process with signal forwarding
- Use quoted heredoc with sed placeholders for start script generation
- Update LuCI view: Docker → LXC references, add memory usage display
- Remove Docker image UCI option, update catalog runtime to "lxc"
- Fix streamlit LXC config: same cgroup2/terminal/seccomp fixes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 22:05:39 +01:00

58 lines
1.8 KiB
Markdown

# luci-app-domoticz
LuCI web interface for managing the Domoticz home automation platform on SecuBox.
## Installation
```bash
opkg install luci-app-domoticz
```
Requires `secubox-app-domoticz` (installed as dependency).
## Features
- **Service Status**: Container status, LXC availability, memory/disk usage, USB devices
- **IoT Integration**: Mosquitto broker status, Zigbee2MQTT status, MQTT bridge configuration
- **MQTT Auto-Setup**: One-click Mosquitto installation and broker configuration
- **Network**: HAProxy reverse proxy integration, WAN access control, domain configuration
- **Mesh P2P**: Register Domoticz in the SecuBox P2P mesh for multi-node discovery
- **Actions**: Install, start, stop, restart, update, backup, uninstall
- **Logs**: Live container log viewer
## RPCD Methods
| Method | Params | Description |
|--------|--------|-------------|
| `status` | — | Container, MQTT, Z2M, HAProxy, mesh status |
| `start` | — | Start Domoticz service |
| `stop` | — | Stop Domoticz service |
| `restart` | — | Restart Domoticz service |
| `install` | — | Create LXC container and download Domoticz |
| `uninstall` | — | Remove container (preserves data) |
| `update` | — | Download latest Domoticz and restart |
| `configure_mqtt` | — | Auto-configure Mosquitto and MQTT bridge |
| `configure_haproxy` | — | Register HAProxy vhost |
| `backup` | — | Create data backup |
| `restore` | path | Restore from backup file |
| `logs` | lines | Fetch container logs |
## Menu Location
Services > Domoticz
## Files
- `/usr/libexec/rpcd/luci.domoticz` — RPCD handler
- `/usr/share/rpcd/acl.d/luci-app-domoticz.json` — ACL permissions
- `/usr/share/luci/menu.d/luci-app-domoticz.json` — Menu entry
- `/www/luci-static/resources/view/domoticz/overview.js` — LuCI view
## Dependencies
- `secubox-app-domoticz`
## License
Apache-2.0