Fix Viessmann API hostname and harden test propagation waits

- Update apiBase: api.viessmann.com → api.viessmann-climatesolutions.com
  (Viessmann renamed their IoT API host; old domain is NXDOMAIN)
- Extend --test-viessmann context to 120s
- Add 30s propagation wait before read-back in both Stage 3 and Restore:
  cloud accepts writes immediately but gateway polls on its own schedule,
  so GET returns the last confirmed device value with ~30s lag

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-06 11:05:33 +02:00
parent 8ba86f8fc8
commit 56710b4328
2 changed files with 10 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ import (
const (
tokenEndpoint = "https://iam.viessmann-climatesolutions.com/idp/v3/token"
apiBase = "https://api.viessmann.com/iot/v2"
apiBase = "https://api.viessmann-climatesolutions.com/iot/v2"
)
// tokenFile mirrors the JSON structure stored on disk.