Url as Entity Problem sience HA Core 2023.12

beforre HA Core i used this config in Configuration.yaml to use URLs als Entity…

switch:
  - platform: command_line
    switches:
      vswitch1:
        command_on: "/usr/bin/curl -X GET http://192.168.178.47/socket1On"
        command_off: "/usr/bin/curl -X GET http://192.168.178.47/socket1Off"
        friendly_name: Switch 1
      vswitch2:
        command_on: "/usr/bin/curl -X GET http://192.168.178.47/socket2On"
        command_off: "/usr/bin/curl -X GET http://192.168.178.47/socket2Off"
        friendly_name: Switch 2
      vswitch3:
        command_on: "/usr/bin/curl -X GET http://192.168.178.47/socket3On"
        command_off: "/usr/bin/curl -X GET http://192.168.178.47/socket3Off"
        friendly_name: Switch 3
      vswitch4:
        command_on: "/usr/bin/curl -X GET http://192.168.178.47/socket4On"
        command_off: "/usr/bin/curl -X GET http://192.168.178.47/socket4Off"
        friendly_name: Switch 4

this working fine.

But after update to HA Core 2023.12 its stop working and the Entitys vswitch1 - 4 are unavailable

whats wrong?

After downgrade to 2023.11.3 all working again

any Idea?

You’ve had 6 months to implement this change that was introduced in v2023.06

https://www.home-assistant.io/blog/2023/06/07/release-20236/#backward-incompatible-changes

See the switch examples here:

The depreciation after 6 months may have been missed as a breaking change in the 2023.12 release notes though.

1 Like