Availability 2025.5.x

after updating the kernel version to 2025.5.x, command stopped working:availability: ‘{{ value.split(“\r\n” )[1] in [“1”,“0”] }}’, on version 2025.4.4 everything worked fine

Without knowing what value you are trying to split and where it comes from, no one can help you.

previously the status check command had 2 states - true and false, now instead of false I need to get the number 0 from the device. Where will I get it if the device is unavailable?
Here is an example of such a device:

  - switch:
        name: AV
        command_on: 'curl -X GET -G "http://192.168.0.53:8080" -d "command=2&channel=1&value=1"'
        command_off: 'curl -X GET -G "http://192.168.0.53:8080" -d "command=2&channel=1&value=0"'
        command_state: 'curl -X GET -G "http://192.168.0.53:8080" -d "command=1&channel=1"'
        value_template: '{{ value.split("\r\n")[1] == "1" }}'
        unique_id: 'av'
        scan_interval: 10
        availability: '{{ value.split("\r\n")[1] in ["1","0"] }}'