Skip to content

v0.3.4

Choose a tag to compare

@Felliglanz Felliglanz released this 09 Feb 20:40
· 16 commits to main since this release

v0.3.4 - String Handling Fix for State Machine

Fixed

  • State Machine now properly handles string inputs: Non-numeric strings (e.g., "Idle", "Charging", "Discharging") are now preserved as strings instead of being converted to numbers
  • This fixes string comparisons in rule conditions like status == 'Idle'
  • Numeric strings (e.g., "123") are still converted to numbers as before
  • Enables proper mapping of system status codes to human-readable text

Technical Details

  • Modified lib/stateMachine.js to preserve string values in input processing
  • String type detection added before automatic number conversion
  • Backward compatible - numeric inputs continue to work as expected

Full Changelog: v0.3.3...v0.3.4