โ† Back to Smart Home & IoT
Smart Home & IoT by @florianbeer

netatmo

Netatmo thermostat control and weather station

0
Source Code

Netatmo

Control Netatmo smart home devices via netatmo CLI.

Setup

Credentials in ~/.config/netatmo/:

  • credentials.json: {"client_id": "...", "client_secret": "..."}
  • tokens.json: OAuth tokens (auto-refreshed)

Commands

netatmo status              # Full overview (thermostat + all sensors)
netatmo thermostat          # Thermostat details only
netatmo weather             # All sensors including Office
netatmo history             # 7-day temperature history with sparklines
netatmo history --days 14   # Custom period
netatmo set 21              # Set target temp (7-30ยฐC, 3h manual mode)
netatmo mode schedule       # Resume schedule
netatmo mode away           # Away mode (12ยฐC)
netatmo mode hg             # Frost guard (7ยฐC)
netatmo <cmd> --json        # JSON output for any command

Available Data

Location Temp Humidity COโ‚‚ Noise Pressure Battery
Bedroom (main) โœ“ โœ“ โœ“ โœ“ โœ“ โ€”
Outdoor โœ“ โœ“ โ€” โ€” โœ“* โœ“
Living Room โœ“ โœ“ โœ“ โ€” โ€” โœ“
Office โœ“ โ€” โ€” โ€” โ€” โ€”

*Pressure displayed with Outdoor (sensor in main station)

Notes

  • COโ‚‚ >1000 ppm = poor ventilation
  • set uses manual mode for 3h, then reverts to schedule
  • Tokens auto-refresh on expiry
  • History shows ASCII sparklines for temperature trends