Skip to content

v1.1.7

Latest
Compare
Choose a tag to compare
@kreso975 kreso975 released this 10 Dec 00:05

Enhancements:
Switch Http Read Status (On/Off) from JSON:

  • Support for Multiple Data Types: Implemented support for values that can be String, Boolean, or Number.
  • Boolean Handling: For Boolean values, the system now correctly interprets true as "On" and false as "Off".
  • Type Conversion: Added logic to convert statusOnCheck and statusOffCheck to the appropriate type based on the value type received from the JSON response.
    • If the value type is Boolean, it converts the strings 'true' and 'false' to boolean values.
    • If the value type is Number, it converts the strings to floating-point numbers.
    • Otherwise, it treats them as strings.
  • Backward Compatibility: Ensured that the changes are backward compatible with existing configurations.

Thanks to @RaZiegler