This document explains how to test the ioBroker Discovergy adapter with the provided demo credentials.
The Discovergy/Inexogy service provides demo credentials for testing purposes:
- Username:
demo@inexogy.com - Password:
demo
✅ Status: These demo credentials are confirmed to be working and provide access to multiple test meters.
To test the adapter with demo credentials:
npm run test:integration-demoThis will:
- Configure the adapter with demo credentials (using proper password encryption)
- Start the adapter
- Connect to the Inexogy API at
api.inexogy.com - Initialize multiple test meters
- Verify the expected success message is logged
The demo credentials are currently working and the adapter will:
- ✅ Successfully connect to the API
- ✅ Retrieve meter information from multiple demo meters
- ✅ Initialize all meters
- ✅ Log the message: "All meters initialized, polling data every 30 seconds"
- ✅ Begin polling meter data at the configured interval
- ✅ Set
info.connectionstate totrue
The test implements proper password encryption using ioBroker's encryption algorithm:
- Reads the system secret from
system.config - Encrypts the password using XOR cipher with the secret
- Stores the encrypted password in the adapter configuration
- This matches how passwords are handled in the real ioBroker admin interface
The test runs automatically as part of the CI pipeline:
- Runs separately from other tests on
ubuntu-22.04 - Uses Node.js 20.x
- Successfully validates full API connectivity and meter initialization
- Required to pass for complete validation
For manual testing with real credentials:
- Install and configure the adapter in your ioBroker instance
- Set your actual Discovergy/Inexogy credentials in the admin interface
- Start the adapter
- Check the logs for the expected initialization message
Recent test run shows successful operation:
- ✅ Password encryption working correctly
- ✅ API connection established (
connection: true) - ✅ Multiple meters discovered and initialized
- ✅ Expected log message: "All meters initialized, polling data every 30 seconds"
- ✅ Continuous meter data polling working
This test verifies the fix for the credentials validation bug where settings.user was incorrectly used instead of settings.Username in the adapter code. The test ensures:
- ✅ Credentials are properly loaded from config
- ✅ Password encryption/decryption works correctly
- ✅ API connection is established successfully
- ✅ No "credentials missing" errors with valid config
- ✅ Full meter initialization and data polling functionality