UNPKG

homebridge-solar-monitor-ivk

Version:

Solar production monitor for Homebridge with Pushover notifications

89 lines (71 loc) โ€ข 2.36 kB
# ๐Ÿ”ง **CORRECT CONFIG.JSON FORMAT** ## ๐Ÿšจ **The Issue:** ``` No plugin was found for the accessory "Solar Monitor" in your config.json ``` ## โœ… **CORRECT CONFIG.JSON FORMAT:** Your `config.json` should have this structure: ```json { "bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:30", "port": 51826, "pin": "031-45-154" }, "accessories": [ { "accessory": "SolarMonitor", "name": "Solar Monitor", "username": "314", "password": "solgen314", "updateInterval": 15, "pushoverUserKey": "YOUR_ACTUAL_USER_KEY", "pushoverAppToken": "YOUR_ACTUAL_APP_TOKEN", "secondUserKey": "us5sg9aqb2i7iqbjmmocr7p2df1ymp" } ], "platforms": [] } ``` ## ๐Ÿ” **KEY POINTS:** 1. **Accessory Type**: Must be `"SolarMonitor"` (not "Solar Monitor") 2. **Name**: Can be `"Solar Monitor"` (this is the display name) 3. **Plugin**: Must be `homebridge-solar-monitor-ivk` ## ๐Ÿ”ง **HOW TO FIX:** ### **Option 1: Via Homebridge UI (Recommended)** 1. Go to http://192.168.0.192:8581 2. Login with username: `admin`, password: `admin` 3. Go to "Accessories" tab 4. Click "+" to add new accessory 5. Select "Solar Monitor" from the list 6. Configure with your credentials 7. Save and restart ### **Option 2: Manual Config Edit** ```bash # SSH to RPi ssh pi@192.168.0.192 # Password: admin # Backup current config sudo cp /var/lib/homebridge/config.json /var/lib/homebridge/config.json.backup # Edit config sudo nano /var/lib/homebridge/config.json # Add the accessory section as shown above # Make sure "accessory": "SolarMonitor" (not "Solar Monitor") # Restart Homebridge sudo systemctl restart homebridge ``` ## ๐Ÿงช **VERIFY FIX:** After fixing, you should see in logs: ``` [20/07/2025, 11:XX:XX] Loaded plugin: homebridge-solar-monitor-ivk@1.0.4 [20/07/2025, 11:XX:XX] Registering accessory 'homebridge-solar-monitor-ivk.SolarMonitor' [20/07/2025, 11:XX:XX] [Solar Monitor] Starting solar monitoring... [20/07/2025, 11:XX:XX] [Solar Monitor] Scraping REAL solar data from e-SenZ website... ``` ## โŒ **COMMON MISTAKES:** - โŒ `"accessory": "Solar Monitor"` (wrong - should be "SolarMonitor") - โŒ Missing accessory in config.json - โŒ Wrong plugin name in config - โŒ Incorrect JSON syntax **The key is: `"accessory": "SolarMonitor"` (no space, exact match)** โœ