- Firmware: energy.c/h tracks relay ON-time and uptime via k_uptime_get,
load_watts (default 400W) persistent via Zephyr Settings API
- Payload extended from 7 to 15 bytes (backwards compatible):
relay ON-time (uint24), uptime (uint24), load in watts (uint16)
- New 'w' downlink for load configuration
- Fix downlink handler: 'i'/'w' commands now checked before combined packet
- Server: g2h_rs_energy_tracking table for lifetime power_consumption_wh,
reboot detection via uptime vs real elapsed time
- Decoder/encoder and docs updated
Previously relais would stay on if only one threshold was exceeded.
Now relais turns off correctly when room temp OR floor temp reaches threshold.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add separate thresholds for room temp (21°C) and floor temp (22°C)
- Use t1/t2 downlink commands for setting thresholds
- Automatically disable floor temp monitoring if MLX sensor fails
- Relay turns off if either temperature threshold is exceeded
- Robust operation with or without floor temperature sensor
- Replace PowerShell Set-Content with native batch commands
- Use type, findstr, echo and move for file processing
- Should work on all Windows systems without PowerShell restrictions
- Replace printf with printk using integer formatting for floats
- Add stdio.h include for proper printf support
- Fix SHT4X sensor value display issues
- Temperature and humidity values now display correctly
- Add setup_framework.bat for classic Windows batch support
- Add setup_framework.ps1 for PowerShell with better error handling
- Both scripts handle STM32WL LoRaMAC-Node framework conflicts
- Switch from OTAA to ABP for reliable network joining
- Use SHT4X temperature sensor instead of MLX90614 internal temp
- Add automatic relay control based on 21°C threshold
- Add manual override capability via downlink commands
- Update device tree for Rev 2.1 board compatibility
- Improve logging configuration to prevent message drops