Repository navigation
v0.3.4
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.jsto 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