Using shell_commands in switches

How can I use shell_commands in a switch and how do I combine different platforms in my configuration.yaml (below I only use platform: command_line)

switch:
  platform: command_line
  switches:
    house_schedule_switch:
      command_on: "/usr/bin/curl -X GET http://192.168.1.111/api/lights/v1/schedule/?on"
      command_off: "/usr/bin/curl -X GET http://192.168.1.111/api/lights/v1/schedule/?off"
    433_lamp_switch:
      command_on: shell_command.smappee_switch_1_on
      command_off: shell_command.smappee_switch_1_off

shell_commands:
  smappee_switch_1_on: 'sh /home/hass/.homeassistant/scripts/smappee_socket_switch.sh 1 1'
  smappee_switch_1_off: 'sh /home/hass/.homeassistant/scripts/smappee_socket_switch.sh 1 0'

//Tonkin

Might be worth going through a library. Maybe we can collaborate here: Smappee custom component