Files
arnaudne 941abd98d5 feat: initial myprimal MQTT bridge service
Dynamic MySolem/MyIndygo IoT bridge with MQTT, Home Assistant
autodiscovery, and Homebridge EasyMQTT compatibility.

- Device discovery via MySolem API on startup (all modules/inputs/outputs)
- Configurable poll engine (fast/normal/slow buckets, per-input overrides)
- MQTT retained state publishing + HA autodiscovery payloads
- Unified manual command routing (linesControl vs sendManualModuleCommand)
- Runtime config via MQTT $config/set, persisted to config.json
- Expression override system (API-provided > hardcoded > passthrough)
- Minimal REST API: /health, /state, /control, /rediscover
- Docker deployment (Dockerfile + docker-compose.yml)
- 38 unit tests

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 01:05:24 +02:00

80 lines
1.8 KiB
Markdown

# LR2IPECO — IP ECO Controller (LR2IPECO-0C9282)
**Module ID**: `6516ca57b7c098e6807cb332`
**Serial**: `3802020C92820001`
**Type**: `lr-ip-eco`
**Role**: 2-station irrigation controller with flow meter input
---
## Input
| Input ID | Name | Type | Unit | Notes |
|---|---|---|---|---|
| `6516ca57b7c098e6807cb334` | *(unnamed)* | 33 (flow) | L | Flow meter — cumulative per minute |
### Flow meter — recent readings (2026-06-04)
```
06:12 0 L/min
06:11 2.12 L/min
06:10 0 L/min
06:09 0 L/min
06:08 1.97 L/min
```
Pulse-based flow meter, alternates between values and 0 (on/off pattern suggests short irrigation bursts).
---
## Outputs
| Output ID | Name | Index |
|---|---|---|
| `6516ca57b7c098e6807cb336` | Station 1 | 0 |
| `6516ca57b7c098e6807cb337` | Station 2 | 1 |
No flow rates configured (useSensor: false).
---
## Programs
3 programs: Programme A (index 0), Programme B (index 1), Programme C (index 2).
All have **no active windows** (unconfigured).
```
GET /programs/modules?moduleIds=6516ca57b7c098e6807cb332
```
---
## Remote state
```
GET /remote/module/state?moduleId=6516ca57b7c098e6807cb332
```
- Primary battery: 89%
- Secondary battery: 3200 mV (`secondaryBatteryVoltage`) — secondary power state: 0
- Last radio contact: 2026-06-04T19:43:08Z
- Relay: `60ca4276ad69dac1558f7c61` (LRMB10)
Live watering status (`state.watering`):
```json
{
"origin": 0,
"runningProgram": 0,
"runningStation": 0,
"time": "00:00",
"state": 1
}
```
`state: 1` = currently running / active (irrigation in progress at last poll).
---
## Notes
- Remote config returns `module_not_reachable` — LoRa-only communication
- The `secondaryBatteryVoltage` field is unique to this module (likely a backup/solar battery)
- Output events endpoint returns no historical records — watering history only inferrable from flow meter data