Moduł przekaźników z ESP Home

Moja stara konfiguracja

# przekazniki anita espswitch1
- platform: command_line
  switches:
  
    espswitch0:
      command_on: "curl -X GET 'http://192.168.1.58/control?cmd=relay,0,1'"
      command_off: "curl -X GET 'http://192.168.1.58/control?cmd=relay,0,0'"
      #command_state: "curl -X GET 'http://192.168.1.58/control?cmd=relay/'"
      value_template: "{{ value_json.status == '1' }}"
      #value_template: '{{ value_json["espswitch0"]["state"] == "on" }}'
      #friendly_name: espswitch0
    
    espswitch1:
      command_on: "curl -X GET 'http://192.168.1.58/control?cmd=relay,1,1'"
      command_off: "curl -X GET 'http://192.168.1.58/control?cmd=relay,1,0'"
     # command_state: "curl -X GET 'http://192.168.1.58/control?cmd=relay/'"
      value_template: "{{ value_json.status == '1' }}"
      #value_template: '{{ value_json["espswitch1"]["state"] == "on" }}'
      #friendly_name: espswitch1

    espswitch2:
      command_on: "curl -X GET 'http://192.168.1.58/control?cmd=relay,2,1'"
      command_off: "curl -X GET 'http://192.168.1.58/control?cmd=relay,2,0'"
     # command_state: "curl -X GET 'http://192.168.1.58/control?cmd=relay/'"
      value_template: "{{ value_json.status == '1' }}"
      #value_template: '{{ value_json["espswitch2"]["state"] == "on" }}'
      #friendly_name: espswitch2

    espswitch3:
      command_on: "curl -X GET 'http://192.168.1.58/control?cmd=relay,3,1'"
      command_off: "curl -X GET 'http://192.168.1.58/control?cmd=relay,3,0'"
    # command_state: "curl -X GET 'http://192.168.1.58/control?cmd=relay/'"
      value_template: "{{ value_json.status == '1' }}"
      #value_template: '{{ value_json["espswitch3"]["state"] == "on" }}'
      #friendly_name: espswitch3

Inny Temat : https://forum.arturhome.pl/t/przelacznik-mqtt/1042/19
Do tych modułów można wgrać tasmote o ile pamiętam

Install ESP Easy on LCTech Wifi Relay

https://www.youtube.com/watch?v=i_CnBcQgdGk