Kodi is not working reliable since a few weeks

When I restart HA when kodi is offline it just bugs and stays offline in UI all the time.
Sometimes it is “idle” when it is long time offline. It was working 3-4 versions before.
Scripts what worked from Kodi status just went crazy, had to turn off them.

  - platform: kodi
    host: 192.168.0.120
    port: 8081
    name: Kodi
    username: username
    password: !secret password
    turn_on_action:
      service: wake_on_lan.send_magic_packet
      data:
        mac: !secret kodimac
        broadcast_address: 192.168.0.255
    turn_off_action:
      service: media_player.kodi_call_method
      data:
        entity_id: media_player.kodi
        method: System.Suspend