Switching My Go Control sensors from Wink

I am finally leaving Wink…. I have moved my locks and water sensors/valve control. But I want to connect my Go Control sensor (Door and Motion) and want to set up some automations… ie. if a door is opened turn on light or if there is motion (or no motion) that lights can be turned on or off. I am using the IOS version of Home Assistant and not very savvy with programming but willing to try things. Any Help would be appreciated.

Below is an automation I use to turn on and off closet and room lighting from a single automation.

Trigger - If sensor goes from closed to open OR open to closed
Action
Choose: if open then on
Else: if closed then off

  alias: Pantry - Turn on-off Light when door is open-closed
  description: 'Control Light based on Door condition'
  trigger:
  - platform: state
    entity_id: binary_sensor.pantry_door_sensor  <--The sensor Remove this
    from: 'off'
    to: 'on'
  - platform: state
    entity_id: binary_sensor.pantry_door_sensor
    from: 'on'
    to: 'off'
  condition: []
  action:
  - choose:
    - conditions:
      - condition: state
        entity_id: binary_sensor.pantry_door_sensor
        state: 'on'
      sequence:
      - service: switch.turn_on
        target:
          entity_id: switch.pantry_light  <-- The switch --remove this
    - conditions:
      - condition: state
        entity_id: binary_sensor.pantry_door_sensor
        state: 'off'
      sequence:
      - service: switch.turn_off
        target:
          entity_id: switch.pantry_light
    default: []
  mode: single

You can create this in Configuration–> Automations using the gui. You can also change to yaml mode and cut and paste. The ← starts a comment and should be removed.